@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ForbiddenException extends AmazonChimeSDKMediaPipelinesException
The client is permanently forbidden from making the request.
AmazonServiceException.ErrorType| Constructor and Description |
|---|
ForbiddenException(String message)
Constructs a new ForbiddenException with the specified error message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCode() |
String |
getRequestId()
The request id associated with the call responsible for the exception.
|
void |
setCode(String code) |
void |
setRequestId(String requestId)
The request id associated with the call responsible for the exception.
|
ForbiddenException |
withCode(ErrorCode code) |
ForbiddenException |
withCode(String code) |
ForbiddenException |
withRequestId(String requestId)
The request id associated with the call responsible for the exception.
|
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setServiceName, setStatusCodeisRetryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ForbiddenException(String message)
message - Describes the error encountered.public ForbiddenException withCode(String code)
code - ErrorCodepublic ForbiddenException withCode(ErrorCode code)
code - ErrorCodepublic void setRequestId(String requestId)
The request id associated with the call responsible for the exception.
setRequestId in class AmazonServiceExceptionrequestId - The request id associated with the call responsible for the exception.public String getRequestId()
The request id associated with the call responsible for the exception.
getRequestId in class AmazonServiceExceptionpublic ForbiddenException withRequestId(String requestId)
The request id associated with the call responsible for the exception.
requestId - The request id associated with the call responsible for the exception.