@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourceInUseException extends AmazonConnectException
That resource is already in use. Please try another.
AmazonServiceException.ErrorType| Constructor and Description |
|---|
ResourceInUseException(String message)
Constructs a new ResourceInUseException with the specified error message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getResourceId()
The identifier for the resource.
|
String |
getResourceType()
The type of resource.
|
void |
setResourceId(String resourceId)
The identifier for the resource.
|
void |
setResourceType(String resourceType)
The type of resource.
|
ResourceInUseException |
withResourceId(String resourceId)
The identifier for the resource.
|
ResourceInUseException |
withResourceType(ResourceType resourceType)
The type of resource.
|
ResourceInUseException |
withResourceType(String resourceType)
The type of resource.
|
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, 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 setResourceType(String resourceType)
The type of resource.
resourceType - The type of resource.ResourceTypepublic String getResourceType()
The type of resource.
ResourceTypepublic ResourceInUseException withResourceType(String resourceType)
The type of resource.
resourceType - The type of resource.ResourceTypepublic ResourceInUseException withResourceType(ResourceType resourceType)
The type of resource.
resourceType - The type of resource.ResourceTypepublic void setResourceId(String resourceId)
The identifier for the resource.
resourceId - The identifier for the resource.public String getResourceId()
The identifier for the resource.
public ResourceInUseException withResourceId(String resourceId)
The identifier for the resource.
resourceId - The identifier for the resource.