@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourceInUseException extends AmazonLexModelBuildingException
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 } }
AmazonServiceException.ErrorType| Constructor and Description |
|---|
ResourceInUseException(String message)
Constructs a new ResourceInUseException with the specified error message.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceReference |
getExampleReference() |
String |
getReferenceType() |
void |
setExampleReference(ResourceReference exampleReference) |
void |
setReferenceType(ReferenceType referenceType) |
void |
setReferenceType(String referenceType) |
ResourceInUseException |
withExampleReference(ResourceReference exampleReference) |
ResourceInUseException |
withReferenceType(ReferenceType referenceType) |
ResourceInUseException |
withReferenceType(String referenceType) |
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCodeisRetryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ResourceInUseException(String message)
message - Describes the error encountered.public void setReferenceType(String referenceType)
referenceType - ReferenceTypepublic String getReferenceType()
ReferenceTypepublic ResourceInUseException withReferenceType(String referenceType)
referenceType - ReferenceTypepublic void setReferenceType(ReferenceType referenceType)
referenceType - ReferenceTypepublic ResourceInUseException withReferenceType(ReferenceType referenceType)
referenceType - ReferenceTypepublic void setExampleReference(ResourceReference exampleReference)
exampleReference - public ResourceReference getExampleReference()
public ResourceInUseException withExampleReference(ResourceReference exampleReference)
exampleReference - Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.