@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ThrottlingException extends AmazonPrometheusException
Request was denied due to request throttling.
AmazonServiceException.ErrorType
Constructor and Description |
---|
ThrottlingException(String message)
Constructs a new ThrottlingException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
String |
getQuotaCode()
Service Quotas requirement to identify originating quota.
|
Integer |
getRetryAfterSeconds()
Advice to clients on when the call can be safely retried.
|
String |
getServiceCode()
Service Quotas requirement to identify originating service.
|
void |
setQuotaCode(String quotaCode)
Service Quotas requirement to identify originating quota.
|
void |
setRetryAfterSeconds(Integer retryAfterSeconds)
Advice to clients on when the call can be safely retried.
|
void |
setServiceCode(String serviceCode)
Service Quotas requirement to identify originating service.
|
ThrottlingException |
withQuotaCode(String quotaCode)
Service Quotas requirement to identify originating quota.
|
ThrottlingException |
withRetryAfterSeconds(Integer retryAfterSeconds)
Advice to clients on when the call can be safely retried.
|
ThrottlingException |
withServiceCode(String serviceCode)
Service Quotas requirement to identify originating service.
|
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ThrottlingException(String message)
message
- Describes the error encountered.public void setQuotaCode(String quotaCode)
Service Quotas requirement to identify originating quota.
quotaCode
- Service Quotas requirement to identify originating quota.public String getQuotaCode()
Service Quotas requirement to identify originating quota.
public ThrottlingException withQuotaCode(String quotaCode)
Service Quotas requirement to identify originating quota.
quotaCode
- Service Quotas requirement to identify originating quota.public void setRetryAfterSeconds(Integer retryAfterSeconds)
Advice to clients on when the call can be safely retried.
retryAfterSeconds
- Advice to clients on when the call can be safely retried.public Integer getRetryAfterSeconds()
Advice to clients on when the call can be safely retried.
public ThrottlingException withRetryAfterSeconds(Integer retryAfterSeconds)
Advice to clients on when the call can be safely retried.
retryAfterSeconds
- Advice to clients on when the call can be safely retried.public void setServiceCode(String serviceCode)
Service Quotas requirement to identify originating service.
serviceCode
- Service Quotas requirement to identify originating service.public String getServiceCode()
Service Quotas requirement to identify originating service.
public ThrottlingException withServiceCode(String serviceCode)
Service Quotas requirement to identify originating service.
serviceCode
- Service Quotas requirement to identify originating service.