Class ResourceInUseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- software.amazon.awssdk.core.exception.SdkException
-
- software.amazon.awssdk.core.exception.SdkServiceException
-
- software.amazon.awssdk.awscore.exception.AwsServiceException
-
- software.amazon.awssdk.services.lexmodelbuilding.model.LexModelBuildingException
-
- software.amazon.awssdk.services.lexmodelbuilding.model.ResourceInUseException
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResourceInUseException.Builder,ResourceInUseException>
@Generated("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 } }- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceResourceInUseException.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceInUseException.Builderbuilder()ResourceReferenceexampleReference()Returns the value of the ExampleReference property for this object.ReferenceTypereferenceType()Returns the value of the ReferenceType property for this object.StringreferenceTypeAsString()Returns the value of the ReferenceType property for this object.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ResourceInUseException.Builder>serializableBuilderClass()ResourceInUseException.BuildertoBuilder()-
Methods inherited from class software.amazon.awssdk.awscore.exception.AwsServiceException
awsErrorDetails, getMessage, isClockSkewException, isThrottlingException
-
Methods inherited from class software.amazon.awssdk.core.exception.SdkServiceException
extendedRequestId, isRetryableException, requestId, statusCode
-
Methods inherited from class software.amazon.awssdk.core.exception.SdkException
create, retryable
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
toBuilder
public ResourceInUseException.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResourceInUseException.Builder,ResourceInUseException>- Overrides:
toBuilderin classLexModelBuildingException
-
builder
public static ResourceInUseException.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResourceInUseException.Builder> serializableBuilderClass()
-
referenceType
public ReferenceType referenceType()
Returns the value of the ReferenceType property for this object.If the service returns an enum value that is not available in the current SDK version,
referenceTypewill returnReferenceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreferenceTypeAsString().- Returns:
- The value of the ReferenceType property for this object.
- See Also:
ReferenceType
-
referenceTypeAsString
public String referenceTypeAsString()
Returns the value of the ReferenceType property for this object.If the service returns an enum value that is not available in the current SDK version,
referenceTypewill returnReferenceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreferenceTypeAsString().- Returns:
- The value of the ReferenceType property for this object.
- See Also:
ReferenceType
-
exampleReference
public ResourceReference exampleReference()
Returns the value of the ExampleReference property for this object.- Returns:
- The value of the ExampleReference property for this object.
-
sdkFields
public final List<SdkField<?>> sdkFields()
- Specified by:
sdkFieldsin interfaceSdkPojo- Overrides:
sdkFieldsin classSdkServiceException
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-