@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TooManyRequestsException extends AWSLambdaException
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, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 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
- ThrottleReason
public String getReason()
ThrottleReason
public TooManyRequestsException withReason(String reason)
reason
- ThrottleReason
public void setReason(ThrottleReason reason)
reason
- ThrottleReason
public TooManyRequestsException withReason(ThrottleReason reason)
reason
- ThrottleReason
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.