@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ThrottlingException extends AmazonDevOpsGuruException
The request was denied due to a 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()
The code of the quota that was exceeded, causing the throttling exception.
|
Integer |
getRetryAfterSeconds()
The number of seconds after which the action that caused the throttling exception can be retried.
|
String |
getServiceCode()
The code of the service that caused the throttling exception.
|
void |
setQuotaCode(String quotaCode)
The code of the quota that was exceeded, causing the throttling exception.
|
void |
setRetryAfterSeconds(Integer retryAfterSeconds)
The number of seconds after which the action that caused the throttling exception can be retried.
|
void |
setServiceCode(String serviceCode)
The code of the service that caused the throttling exception.
|
ThrottlingException |
withQuotaCode(String quotaCode)
The code of the quota that was exceeded, causing the throttling exception.
|
ThrottlingException |
withRetryAfterSeconds(Integer retryAfterSeconds)
The number of seconds after which the action that caused the throttling exception can be retried.
|
ThrottlingException |
withServiceCode(String serviceCode)
The code of the service that caused the throttling exception.
|
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)
The code of the quota that was exceeded, causing the throttling exception.
quotaCode
- The code of the quota that was exceeded, causing the throttling exception.public String getQuotaCode()
The code of the quota that was exceeded, causing the throttling exception.
public ThrottlingException withQuotaCode(String quotaCode)
The code of the quota that was exceeded, causing the throttling exception.
quotaCode
- The code of the quota that was exceeded, causing the throttling exception.public void setServiceCode(String serviceCode)
The code of the service that caused the throttling exception.
serviceCode
- The code of the service that caused the throttling exception.public String getServiceCode()
The code of the service that caused the throttling exception.
public ThrottlingException withServiceCode(String serviceCode)
The code of the service that caused the throttling exception.
serviceCode
- The code of the service that caused the throttling exception.public void setRetryAfterSeconds(Integer retryAfterSeconds)
The number of seconds after which the action that caused the throttling exception can be retried.
retryAfterSeconds
- The number of seconds after which the action that caused the throttling exception can be retried.public Integer getRetryAfterSeconds()
The number of seconds after which the action that caused the throttling exception can be retried.
public ThrottlingException withRetryAfterSeconds(Integer retryAfterSeconds)
The number of seconds after which the action that caused the throttling exception can be retried.
retryAfterSeconds
- The number of seconds after which the action that caused the throttling exception can be retried.