@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TooManyRequestsException extends AWSLambdaException
Request throughput limit exceeded
AmazonServiceException.ErrorType| Constructor and Description |
|---|
TooManyRequestsException(String message)
Constructs a new TooManyRequestsException with the specified error message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getReason() |
String |
getRetryAfterSeconds()
The number of seconds the caller should wait before retrying.
|
String |
getType() |
void |
setReason(String reason) |
void |
setReason(ThrottleReason reason) |
void |
setRetryAfterSeconds(String retryAfterSeconds)
The number of seconds the caller should wait before retrying.
|
void |
setType(String type) |
TooManyRequestsException |
withReason(String reason) |
TooManyRequestsException |
withReason(ThrottleReason reason) |
TooManyRequestsException |
withRetryAfterSeconds(String retryAfterSeconds)
The number of seconds the caller should wait before retrying.
|
TooManyRequestsException |
withType(String type) |
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCodeisRetryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic TooManyRequestsException(String message)
message - Describes the error encountered.public void setRetryAfterSeconds(String retryAfterSeconds)
The number of seconds the caller should wait before retrying.
retryAfterSeconds - The number of seconds the caller should wait before retrying.public String getRetryAfterSeconds()
The number of seconds the caller should wait before retrying.
public TooManyRequestsException withRetryAfterSeconds(String retryAfterSeconds)
The number of seconds the caller should wait before retrying.
retryAfterSeconds - The number of seconds the caller should wait before retrying.public void setType(String type)
type - public String getType()
public TooManyRequestsException withType(String type)
type - public void setReason(String reason)
reason - ThrottleReasonpublic String getReason()
ThrottleReasonpublic TooManyRequestsException withReason(String reason)
reason - ThrottleReasonpublic void setReason(ThrottleReason reason)
reason - ThrottleReasonpublic TooManyRequestsException withReason(ThrottleReason reason)
reason - ThrottleReasonCopyright © 2018. All rights reserved.