@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ThrottlingException extends AWSGreengrassV2Exception
Your request exceeded a request rate quota. For example, you might have exceeded the amount of times that you can retrieve device or deployment status per second.
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 for the quota in Service
Quotas.
|
Integer |
getRetryAfterSeconds()
The amount of time to wait before you retry the request.
|
String |
getServiceCode()
The code for the service in Service Quotas.
|
void |
setQuotaCode(String quotaCode)
The code for the quota in Service
Quotas.
|
void |
setRetryAfterSeconds(Integer retryAfterSeconds)
The amount of time to wait before you retry the request.
|
void |
setServiceCode(String serviceCode)
The code for the service in Service Quotas.
|
ThrottlingException |
withQuotaCode(String quotaCode)
The code for the quota in Service
Quotas.
|
ThrottlingException |
withRetryAfterSeconds(Integer retryAfterSeconds)
The amount of time to wait before you retry the request.
|
ThrottlingException |
withServiceCode(String serviceCode)
The code for the service in Service Quotas.
|
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 for the quota in Service Quotas.
quotaCode
- The code for the quota in Service Quotas.public String getQuotaCode()
The code for the quota in Service Quotas.
public ThrottlingException withQuotaCode(String quotaCode)
The code for the quota in Service Quotas.
quotaCode
- The code for the quota in Service Quotas.public void setServiceCode(String serviceCode)
The code for the service in Service Quotas.
serviceCode
- The code for the service in Service Quotas.public String getServiceCode()
The code for the service in Service Quotas.
public ThrottlingException withServiceCode(String serviceCode)
The code for the service in Service Quotas.
serviceCode
- The code for the service in Service Quotas.public void setRetryAfterSeconds(Integer retryAfterSeconds)
The amount of time to wait before you retry the request.
retryAfterSeconds
- The amount of time to wait before you retry the request.public Integer getRetryAfterSeconds()
The amount of time to wait before you retry the request.
public ThrottlingException withRetryAfterSeconds(Integer retryAfterSeconds)
The amount of time to wait before you retry the request.
retryAfterSeconds
- The amount of time to wait before you retry the request.