@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AccessDeniedException extends AmazonEBSException
You do not have sufficient access to perform this action.
AmazonServiceException.ErrorType| Constructor and Description |
|---|
AccessDeniedException(String message)
Constructs a new AccessDeniedException with the specified error message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getReason()
The reason for the exception.
|
void |
setReason(String reason)
The reason for the exception.
|
AccessDeniedException |
withReason(AccessDeniedExceptionReason reason)
The reason for the exception.
|
AccessDeniedException |
withReason(String reason)
The reason for the exception.
|
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCodeisRetryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic AccessDeniedException(String message)
message - Describes the error encountered.public void setReason(String reason)
The reason for the exception.
reason - The reason for the exception.AccessDeniedExceptionReasonpublic String getReason()
The reason for the exception.
AccessDeniedExceptionReasonpublic AccessDeniedException withReason(String reason)
The reason for the exception.
reason - The reason for the exception.AccessDeniedExceptionReasonpublic AccessDeniedException withReason(AccessDeniedExceptionReason reason)
The reason for the exception.
reason - The reason for the exception.AccessDeniedExceptionReason