@Generated(value="software.amazon.awssdk:codegen") public final class ResourceInUseException extends LexModelBuildingException implements ToCopyableBuilder<ResourceInUseException.Builder,ResourceInUseException>
The resource that you are attempting to delete is referred to by another resource. Use this information to remove references to the resource that you are trying to delete.
The body of the exception contains a JSON object that describes the resource.
{ "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT,
"resourceReference": {
"name": string, "version": string } }
Modifier and Type | Class and Description |
---|---|
static interface |
ResourceInUseException.Builder |
Modifier and Type | Method and Description |
---|---|
static ResourceInUseException.Builder |
builder() |
ResourceReference |
exampleReference()
Returns the value of the ExampleReference property for this object.
|
ReferenceType |
referenceType()
Returns the value of the ReferenceType property for this object.
|
String |
referenceTypeAsString()
Returns the value of the ReferenceType property for this object.
|
static Class<? extends ResourceInUseException.Builder> |
serializableBuilderClass() |
ResourceInUseException.Builder |
toBuilder()
Create a
AwsServiceException.Builder initialized with the properties of this AwsServiceException . |
awsErrorDetails, getMessage, isClockSkewException, isThrottlingException
requestId, statusCode
retryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy
public ResourceInUseException.Builder toBuilder()
AwsServiceException
AwsServiceException.Builder
initialized with the properties of this AwsServiceException
.toBuilder
in interface ToCopyableBuilder<ResourceInUseException.Builder,ResourceInUseException>
toBuilder
in class LexModelBuildingException
public static ResourceInUseException.Builder builder()
public static Class<? extends ResourceInUseException.Builder> serializableBuilderClass()
public ReferenceType referenceType()
If the service returns an enum value that is not available in the current SDK version, referenceType
will return ReferenceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
referenceTypeAsString()
.
ReferenceType
public String referenceTypeAsString()
If the service returns an enum value that is not available in the current SDK version, referenceType
will return ReferenceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
referenceTypeAsString()
.
ReferenceType
public ResourceReference exampleReference()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.