@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ThrottlingException extends AmazonPrometheusException
The 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 code for the originating quota.
|
Integer |
getRetryAfterSeconds()
Advice to clients on when the call can be safely retried.
|
String |
getServiceCode()
Service quotas code for the originating service.
|
void |
setQuotaCode(String quotaCode)
Service quotas code for the originating quota.
|
void |
setRetryAfterSeconds(Integer retryAfterSeconds)
Advice to clients on when the call can be safely retried.
|
void |
setServiceCode(String serviceCode)
Service quotas code for the originating service.
|
ThrottlingException |
withQuotaCode(String quotaCode)
Service quotas code for the originating quota.
|
ThrottlingException |
withRetryAfterSeconds(Integer retryAfterSeconds)
Advice to clients on when the call can be safely retried.
|
ThrottlingException |
withServiceCode(String serviceCode)
Service quotas code for the 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 code for the originating quota.
quotaCode
- Service quotas code for the originating quota.public String getQuotaCode()
Service quotas code for the originating quota.
public ThrottlingException withQuotaCode(String quotaCode)
Service quotas code for the originating quota.
quotaCode
- Service quotas code for the 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 code for the originating service.
serviceCode
- Service quotas code for the originating service.public String getServiceCode()
Service quotas code for the originating service.
public ThrottlingException withServiceCode(String serviceCode)
Service quotas code for the originating service.
serviceCode
- Service quotas code for the originating service.