@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AccessDeniedException extends AWSBackupGatewayException
The operation cannot proceed because you have insufficient permissions.
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()
A description of why you have insufficient permissions.
|
void |
setErrorCode(String errorCode)
A description of why you have insufficient permissions.
|
AccessDeniedException |
withErrorCode(String errorCode)
A description of why you have insufficient permissions.
|
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)
A description of why you have insufficient permissions.
setErrorCode
in class AmazonServiceException
errorCode
- A description of why you have insufficient permissions.public String getErrorCode()
A description of why you have insufficient permissions.
getErrorCode
in class AmazonServiceException
public AccessDeniedException withErrorCode(String errorCode)
A description of why you have insufficient permissions.
errorCode
- A description of why you have insufficient permissions.