@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AccessDeniedException extends AmazonLightsailException
Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
AmazonServiceException.ErrorType| Constructor and Description |
|---|
AccessDeniedException(String message)
Constructs a new AccessDeniedException with the specified error message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCode() |
String |
getDocs() |
String |
getTip() |
void |
setCode(String code) |
void |
setDocs(String docs) |
void |
setTip(String tip) |
AccessDeniedException |
withCode(String code) |
AccessDeniedException |
withDocs(String docs) |
AccessDeniedException |
withTip(String tip) |
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 setCode(String code)
code - public String getCode()
public AccessDeniedException withCode(String code)
code - public void setDocs(String docs)
docs - public String getDocs()
public AccessDeniedException withDocs(String docs)
docs - public void setTip(String tip)
tip - public String getTip()
public AccessDeniedException withTip(String tip)
tip -