@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourceNotFoundException extends AmazonVerifiedPermissionsException
The request failed because it references a resource that doesn't exist.
AmazonServiceException.ErrorType| Constructor and Description |
|---|
ResourceNotFoundException(String message)
Constructs a new ResourceNotFoundException with the specified error message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getResourceId()
The unique ID of the resource referenced in the failed request.
|
String |
getResourceType()
The resource type of the resource referenced in the failed request.
|
void |
setResourceId(String resourceId)
The unique ID of the resource referenced in the failed request.
|
void |
setResourceType(String resourceType)
The resource type of the resource referenced in the failed request.
|
ResourceNotFoundException |
withResourceId(String resourceId)
The unique ID of the resource referenced in the failed request.
|
ResourceNotFoundException |
withResourceType(ResourceType resourceType)
The resource type of the resource referenced in the failed request.
|
ResourceNotFoundException |
withResourceType(String resourceType)
The resource type of the resource referenced in the failed request.
|
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 ResourceNotFoundException(String message)
message - Describes the error encountered.public void setResourceId(String resourceId)
The unique ID of the resource referenced in the failed request.
resourceId - The unique ID of the resource referenced in the failed request.public String getResourceId()
The unique ID of the resource referenced in the failed request.
public ResourceNotFoundException withResourceId(String resourceId)
The unique ID of the resource referenced in the failed request.
resourceId - The unique ID of the resource referenced in the failed request.public void setResourceType(String resourceType)
The resource type of the resource referenced in the failed request.
resourceType - The resource type of the resource referenced in the failed request.ResourceTypepublic String getResourceType()
The resource type of the resource referenced in the failed request.
ResourceTypepublic ResourceNotFoundException withResourceType(String resourceType)
The resource type of the resource referenced in the failed request.
resourceType - The resource type of the resource referenced in the failed request.ResourceTypepublic ResourceNotFoundException withResourceType(ResourceType resourceType)
The resource type of the resource referenced in the failed request.
resourceType - The resource type of the resource referenced in the failed request.ResourceType