@Generated(value="software.amazon.awssdk:codegen") public final class AccessDeniedException extends DetectiveException implements ToCopyableBuilder<AccessDeniedException.Builder,AccessDeniedException>
The request issuer does not have permission to access this resource or perform this operation.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AccessDeniedException.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AccessDeniedException.Builder |
builder() |
ErrorCode |
errorCode()
The SDK default error code associated with the access denied exception.
|
String |
errorCodeAsString()
The SDK default error code associated with the access denied exception.
|
String |
errorCodeReason()
The SDK default explanation of why access was denied.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AccessDeniedException.Builder> |
serializableBuilderClass() |
ErrorCode |
subErrorCode()
The error code associated with the access denied exception.
|
String |
subErrorCodeAsString()
The error code associated with the access denied exception.
|
String |
subErrorCodeReason()
An explanation of why access was denied.
|
AccessDeniedException.Builder |
toBuilder() |
awsErrorDetails, getMessage, isClockSkewException, isThrottlingExceptionextendedRequestId, requestId, statusCodecreate, retryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcopyequalsBySdkFieldspublic AccessDeniedException.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AccessDeniedException.Builder,AccessDeniedException>toBuilder in class DetectiveExceptionpublic static AccessDeniedException.Builder builder()
public static Class<? extends AccessDeniedException.Builder> serializableBuilderClass()
public ErrorCode errorCode()
The SDK default error code associated with the access denied exception.
If the service returns an enum value that is not available in the current SDK version, errorCode will
return ErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
errorCodeAsString().
ErrorCodepublic String errorCodeAsString()
The SDK default error code associated with the access denied exception.
If the service returns an enum value that is not available in the current SDK version, errorCode will
return ErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
errorCodeAsString().
ErrorCodepublic String errorCodeReason()
The SDK default explanation of why access was denied.
public ErrorCode subErrorCode()
The error code associated with the access denied exception.
If the service returns an enum value that is not available in the current SDK version, subErrorCode will
return ErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
subErrorCodeAsString().
ErrorCodepublic String subErrorCodeAsString()
The error code associated with the access denied exception.
If the service returns an enum value that is not available in the current SDK version, subErrorCode will
return ErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
subErrorCodeAsString().
ErrorCodepublic String subErrorCodeReason()
An explanation of why access was denied.
Copyright © 2023. All rights reserved.