@Generated(value="software.amazon.awssdk:codegen") public 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 |
referenceTypeString()
Returns the value of the ReferenceType property for this object.
|
static Class<? extends ResourceInUseException.Builder> |
serializableBuilderClass() |
ResourceInUseException.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
errorCode, errorCode, errorMessage, errorMessage, errorType, errorType, getMessage, headers, headers, rawResponse, rawResponse, requestId, requestId, serviceName, serviceName, statusCode, 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()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ResourceInUseException.Builder,ResourceInUseException>
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
referenceTypeString()
.
ReferenceType
public String referenceTypeString()
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
referenceTypeString()
.
ReferenceType
public ResourceReference exampleReference()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.