@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourceNotFoundException extends AmazonCodeGuruSecurityException
The resource specified in the request was not found.
AmazonServiceException.ErrorType
Constructor and Description |
---|
ResourceNotFoundException(String message)
Constructs a new ResourceNotFoundException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
String |
getErrorCode()
The identifier for the error.
|
String |
getResourceId()
The identifier for the resource that was not found.
|
String |
getResourceType()
The type of resource that was not found.
|
void |
setErrorCode(String errorCode)
The identifier for the error.
|
void |
setResourceId(String resourceId)
The identifier for the resource that was not found.
|
void |
setResourceType(String resourceType)
The type of resource that was not found.
|
ResourceNotFoundException |
withErrorCode(String errorCode)
The identifier for the error.
|
ResourceNotFoundException |
withResourceId(String resourceId)
The identifier for the resource that was not found.
|
ResourceNotFoundException |
withResourceType(String resourceType)
The type of resource that was not found.
|
getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ResourceNotFoundException(String message)
message
- Describes the error encountered.public void setErrorCode(String errorCode)
The identifier for the error.
setErrorCode
in class AmazonServiceException
errorCode
- The identifier for the error.public String getErrorCode()
The identifier for the error.
getErrorCode
in class AmazonServiceException
public ResourceNotFoundException withErrorCode(String errorCode)
The identifier for the error.
errorCode
- The identifier for the error.public void setResourceId(String resourceId)
The identifier for the resource that was not found.
resourceId
- The identifier for the resource that was not found.public String getResourceId()
The identifier for the resource that was not found.
public ResourceNotFoundException withResourceId(String resourceId)
The identifier for the resource that was not found.
resourceId
- The identifier for the resource that was not found.public void setResourceType(String resourceType)
The type of resource that was not found.
resourceType
- The type of resource that was not found.public String getResourceType()
The type of resource that was not found.
public ResourceNotFoundException withResourceType(String resourceType)
The type of resource that was not found.
resourceType
- The type of resource that was not found.