Class ZoneRateLimits
- java.lang.Object
- 
- com.ibm.cloud.sdk.core.service.BaseService
- 
- com.ibm.cloud.networking.zone_rate_limits.v1.ZoneRateLimits
 
 
- 
 public class ZoneRateLimits extends com.ibm.cloud.sdk.core.service.BaseServiceZone Rate Limits.- Version:
- v1
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringDEFAULT_SERVICE_NAMEstatic StringDEFAULT_SERVICE_URL
 - 
Constructor SummaryConstructors Constructor Description ZoneRateLimits(String crn, String zoneIdentifier, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Constructs an instance of the `ZoneRateLimits` client.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ibm.cloud.sdk.core.http.ServiceCall<RatelimitResp>createZoneRateLimits()Create rate limit.com.ibm.cloud.sdk.core.http.ServiceCall<RatelimitResp>createZoneRateLimits(CreateZoneRateLimitsOptions createZoneRateLimitsOptions)Create rate limit.com.ibm.cloud.sdk.core.http.ServiceCall<DeleteRateLimitResp>deleteZoneRateLimit(DeleteZoneRateLimitOptions deleteZoneRateLimitOptions)Delete rate limit.StringgetCrn()Gets the crn.com.ibm.cloud.sdk.core.http.ServiceCall<RatelimitResp>getRateLimit(GetRateLimitOptions getRateLimitOptions)Get a rate limit.StringgetZoneIdentifier()Gets the zoneIdentifier.com.ibm.cloud.sdk.core.http.ServiceCall<ListRatelimitResp>listAllZoneRateLimits()List all rate limits.com.ibm.cloud.sdk.core.http.ServiceCall<ListRatelimitResp>listAllZoneRateLimits(ListAllZoneRateLimitsOptions listAllZoneRateLimitsOptions)List all rate limits.static ZoneRateLimitsnewInstance(String crn, String zoneIdentifier)Class method which constructs an instance of the `ZoneRateLimits` client.static ZoneRateLimitsnewInstance(String crn, String zoneIdentifier, String serviceName)Class method which constructs an instance of the `ZoneRateLimits` client.voidsetCrn(String crn)Sets the crn.voidsetZoneIdentifier(String zoneIdentifier)Sets the zoneIdentifier.com.ibm.cloud.sdk.core.http.ServiceCall<RatelimitResp>updateRateLimit(UpdateRateLimitOptions updateRateLimitOptions)Update rate limit.- 
Methods inherited from class com.ibm.cloud.sdk.core.service.BaseServiceconfigureClient, configureService, constructServiceUrl, constructServiceURL, disableRetries, enableGzipCompression, enableRetries, getAuthenticator, getClient, getDefaultHeaders, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setDefaultHeaders, setEndPoint, setServiceUrl, toString
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_SERVICE_NAMEpublic static final String DEFAULT_SERVICE_NAME - See Also:
- Constant Field Values
 
 - 
DEFAULT_SERVICE_URLpublic static final String DEFAULT_SERVICE_URL - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
ZoneRateLimitspublic 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- Authenticatorinstance to be configured for this client
 
 
- 
 - 
Method Detail- 
newInstancepublic 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
 
 - 
newInstancepublic 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
 
 - 
getCrnpublic String getCrn() Gets the crn. Full crn of the service instance.- Returns:
- the crn
 
 - 
setCrnpublic void setCrn(String crn) Sets the crn.- Parameters:
- crn- the new crn
 
 - 
getZoneIdentifierpublic String getZoneIdentifier() Gets the zoneIdentifier. Zone identifier (zone id).- Returns:
- the zoneIdentifier
 
 - 
setZoneIdentifierpublic void setZoneIdentifier(String zoneIdentifier) Sets the zoneIdentifier.- Parameters:
- zoneIdentifier- the new zoneIdentifier
 
 - 
listAllZoneRateLimitspublic com.ibm.cloud.sdk.core.http.ServiceCall<ListRatelimitResp> listAllZoneRateLimits(ListAllZoneRateLimitsOptions listAllZoneRateLimitsOptions) List all rate limits. The details of Rate Limit for a given zone under a given service instance.- Parameters:
- listAllZoneRateLimitsOptions- the- ListAllZoneRateLimitsOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeListRatelimitResp
 
 - 
listAllZoneRateLimitspublic 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 ServiceCallwith a result of typeListRatelimitResp
 
 - 
createZoneRateLimitspublic 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- CreateZoneRateLimitsOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeRatelimitResp
 
 - 
createZoneRateLimitspublic 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 ServiceCallwith a result of typeRatelimitResp
 
 - 
deleteZoneRateLimitpublic com.ibm.cloud.sdk.core.http.ServiceCall<DeleteRateLimitResp> deleteZoneRateLimit(DeleteZoneRateLimitOptions deleteZoneRateLimitOptions) Delete rate limit. Delete a rate limit given its id.- Parameters:
- deleteZoneRateLimitOptions- the- DeleteZoneRateLimitOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeDeleteRateLimitResp
 
 - 
getRateLimitpublic 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- GetRateLimitOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeRatelimitResp
 
 - 
updateRateLimitpublic 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- UpdateRateLimitOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeRatelimitResp
 
 
- 
 
-