@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AccessDeniedException extends AmazonDetectiveException
The request issuer does not have permission to access this resource or perform this operation.
AmazonServiceException.ErrorType
Constructor and Description |
---|
AccessDeniedException(String message)
Constructs a new AccessDeniedException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
String |
getErrorCode()
The SDK default error code associated with the access denied exception.
|
String |
getErrorCodeReason()
The SDK default explanation of why access was denied.
|
String |
getSubErrorCode()
The error code associated with the access denied exception.
|
String |
getSubErrorCodeReason()
An explanation of why access was denied.
|
void |
setErrorCode(String errorCode)
The SDK default error code associated with the access denied exception.
|
void |
setErrorCodeReason(String errorCodeReason)
The SDK default explanation of why access was denied.
|
void |
setSubErrorCode(String subErrorCode)
The error code associated with the access denied exception.
|
void |
setSubErrorCodeReason(String subErrorCodeReason)
An explanation of why access was denied.
|
AccessDeniedException |
withErrorCode(ErrorCode errorCode)
The SDK default error code associated with the access denied exception.
|
AccessDeniedException |
withErrorCode(String errorCode)
The SDK default error code associated with the access denied exception.
|
AccessDeniedException |
withErrorCodeReason(String errorCodeReason)
The SDK default explanation of why access was denied.
|
AccessDeniedException |
withSubErrorCode(ErrorCode subErrorCode)
The error code associated with the access denied exception.
|
AccessDeniedException |
withSubErrorCode(String subErrorCode)
The error code associated with the access denied exception.
|
AccessDeniedException |
withSubErrorCodeReason(String subErrorCodeReason)
An explanation of why access was denied.
|
getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AccessDeniedException(String message)
message
- Describes the error encountered.public void setErrorCode(String errorCode)
The SDK default error code associated with the access denied exception.
setErrorCode
in class AmazonServiceException
errorCode
- The SDK default error code associated with the access denied exception.ErrorCode
public String getErrorCode()
The SDK default error code associated with the access denied exception.
getErrorCode
in class AmazonServiceException
ErrorCode
public AccessDeniedException withErrorCode(String errorCode)
The SDK default error code associated with the access denied exception.
errorCode
- The SDK default error code associated with the access denied exception.ErrorCode
public AccessDeniedException withErrorCode(ErrorCode errorCode)
The SDK default error code associated with the access denied exception.
errorCode
- The SDK default error code associated with the access denied exception.ErrorCode
public void setErrorCodeReason(String errorCodeReason)
The SDK default explanation of why access was denied.
errorCodeReason
- The SDK default explanation of why access was denied.public String getErrorCodeReason()
The SDK default explanation of why access was denied.
public AccessDeniedException withErrorCodeReason(String errorCodeReason)
The SDK default explanation of why access was denied.
errorCodeReason
- The SDK default explanation of why access was denied.public void setSubErrorCode(String subErrorCode)
The error code associated with the access denied exception.
subErrorCode
- The error code associated with the access denied exception.ErrorCode
public String getSubErrorCode()
The error code associated with the access denied exception.
ErrorCode
public AccessDeniedException withSubErrorCode(String subErrorCode)
The error code associated with the access denied exception.
subErrorCode
- The error code associated with the access denied exception.ErrorCode
public AccessDeniedException withSubErrorCode(ErrorCode subErrorCode)
The error code associated with the access denied exception.
subErrorCode
- The error code associated with the access denied exception.ErrorCode
public void setSubErrorCodeReason(String subErrorCodeReason)
An explanation of why access was denied.
subErrorCodeReason
- An explanation of why access was denied.public String getSubErrorCodeReason()
An explanation of why access was denied.
public AccessDeniedException withSubErrorCodeReason(String subErrorCodeReason)
An explanation of why access was denied.
subErrorCodeReason
- An explanation of why access was denied.