Class ZoneRateLimits


  • public class ZoneRateLimits
    extends com.ibm.cloud.sdk.core.service.BaseService
    Zone Rate Limits.
    Version:
    v1
    • Constructor Detail

      • ZoneRateLimits

        public ZoneRateLimits​(String crn,
                              String zoneIdentifier,
                              String serviceName,
                              com.ibm.cloud.sdk.core.security.Authenticator authenticator)
        Constructs an instance of the `ZoneRateLimits` client. The specified service name and authenticator are used to configure the client instance.
        Parameters:
        crn - Full crn of the service instance.
        zoneIdentifier - Zone identifier (zone id).
        serviceName - the service name to be used when configuring the client instance
        authenticator - the Authenticator instance to be configured for this client
    • Method Detail

      • newInstance

        public static ZoneRateLimits newInstance​(String crn,
                                                 String zoneIdentifier)
        Class method which constructs an instance of the `ZoneRateLimits` client. The default service name is used to configure the client instance.
        Parameters:
        crn - Full crn of the service instance.
        zoneIdentifier - Zone identifier (zone id).
        Returns:
        an instance of the `ZoneRateLimits` client using external configuration
      • newInstance

        public static ZoneRateLimits newInstance​(String crn,
                                                 String zoneIdentifier,
                                                 String serviceName)
        Class method which constructs an instance of the `ZoneRateLimits` client. The specified service name is used to configure the client instance.
        Parameters:
        crn - Full crn of the service instance.
        zoneIdentifier - Zone identifier (zone id).
        serviceName - the service name to be used when configuring the client instance
        Returns:
        an instance of the `ZoneRateLimits` client using external configuration
      • getCrn

        public String getCrn()
        Gets the crn. Full crn of the service instance.
        Returns:
        the crn
      • setCrn

        public void setCrn​(String crn)
        Sets the crn.
        Parameters:
        crn - the new crn
      • getZoneIdentifier

        public String getZoneIdentifier()
        Gets the zoneIdentifier. Zone identifier (zone id).
        Returns:
        the zoneIdentifier
      • setZoneIdentifier

        public void setZoneIdentifier​(String zoneIdentifier)
        Sets the zoneIdentifier.
        Parameters:
        zoneIdentifier - the new zoneIdentifier
      • listAllZoneRateLimits

        public com.ibm.cloud.sdk.core.http.ServiceCall<ListRatelimitResp> listAllZoneRateLimits()
        List all rate limits. The details of Rate Limit for a given zone under a given service instance.
        Returns:
        a ServiceCall with a result of type ListRatelimitResp
      • createZoneRateLimits

        public com.ibm.cloud.sdk.core.http.ServiceCall<RatelimitResp> createZoneRateLimits​(CreateZoneRateLimitsOptions createZoneRateLimitsOptions)
        Create rate limit. Create a new rate limit for a given zone under a service instance.
        Parameters:
        createZoneRateLimitsOptions - the CreateZoneRateLimitsOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type RatelimitResp
      • createZoneRateLimits

        public com.ibm.cloud.sdk.core.http.ServiceCall<RatelimitResp> createZoneRateLimits()
        Create rate limit. Create a new rate limit for a given zone under a service instance.
        Returns:
        a ServiceCall with a result of type RatelimitResp
      • getRateLimit

        public com.ibm.cloud.sdk.core.http.ServiceCall<RatelimitResp> getRateLimit​(GetRateLimitOptions getRateLimitOptions)
        Get a rate limit. Get the details of a rate limit for a given zone under a given service instance.
        Parameters:
        getRateLimitOptions - the GetRateLimitOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type RatelimitResp
      • updateRateLimit

        public com.ibm.cloud.sdk.core.http.ServiceCall<RatelimitResp> updateRateLimit​(UpdateRateLimitOptions updateRateLimitOptions)
        Update rate limit. Update an existing rate limit for a given zone under a service instance.
        Parameters:
        updateRateLimitOptions - the UpdateRateLimitOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type RatelimitResp