@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, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ResourceInUseException(String message)
message
- Describes the error encountered.public void setReferenceType(String referenceType)
referenceType
- ReferenceType
public String getReferenceType()
ReferenceType
public ResourceInUseException withReferenceType(String referenceType)
referenceType
- ReferenceType
public void setReferenceType(ReferenceType referenceType)
referenceType
- ReferenceType
public ResourceInUseException withReferenceType(ReferenceType referenceType)
referenceType
- ReferenceType
public void setExampleReference(ResourceReference exampleReference)
exampleReference
- public ResourceReference getExampleReference()
public ResourceInUseException withExampleReference(ResourceReference exampleReference)
exampleReference
- Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.