@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ErrorReason extends Object implements Serializable, Cloneable, StructuredPojo
An error that explains why an action did not succeed.
Constructor and Description |
---|
ErrorReason() |
Modifier and Type | Method and Description |
---|---|
ErrorReason |
clone() |
boolean |
equals(Object obj) |
String |
getErrorCode()
Service Quotas returns the following error values:
|
String |
getErrorMessage()
The error message.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setErrorCode(String errorCode)
Service Quotas returns the following error values:
|
void |
setErrorMessage(String errorMessage)
The error message.
|
String |
toString()
Returns a string representation of this object.
|
ErrorReason |
withErrorCode(ErrorCode errorCode)
Service Quotas returns the following error values:
|
ErrorReason |
withErrorCode(String errorCode)
Service Quotas returns the following error values:
|
ErrorReason |
withErrorMessage(String errorMessage)
The error message.
|
public void setErrorCode(String errorCode)
Service Quotas returns the following error values:
DEPENDENCY_ACCESS_DENIED_ERROR
- The caller does not have the required permissions to complete the
action. To resolve the error, you must have permission to access the Amazon Web Service or quota.
DEPENDENCY_THROTTLING_ERROR
- The Amazon Web Service is throttling Service Quotas.
DEPENDENCY_SERVICE_ERROR
- The Amazon Web Service is not available.
SERVICE_QUOTA_NOT_AVAILABLE_ERROR
- There was an error in Service Quotas.
errorCode
- Service Quotas returns the following error values:
DEPENDENCY_ACCESS_DENIED_ERROR
- The caller does not have the required permissions to
complete the action. To resolve the error, you must have permission to access the Amazon Web Service or
quota.
DEPENDENCY_THROTTLING_ERROR
- The Amazon Web Service is throttling Service Quotas.
DEPENDENCY_SERVICE_ERROR
- The Amazon Web Service is not available.
SERVICE_QUOTA_NOT_AVAILABLE_ERROR
- There was an error in Service Quotas.
ErrorCode
public String getErrorCode()
Service Quotas returns the following error values:
DEPENDENCY_ACCESS_DENIED_ERROR
- The caller does not have the required permissions to complete the
action. To resolve the error, you must have permission to access the Amazon Web Service or quota.
DEPENDENCY_THROTTLING_ERROR
- The Amazon Web Service is throttling Service Quotas.
DEPENDENCY_SERVICE_ERROR
- The Amazon Web Service is not available.
SERVICE_QUOTA_NOT_AVAILABLE_ERROR
- There was an error in Service Quotas.
DEPENDENCY_ACCESS_DENIED_ERROR
- The caller does not have the required permissions to
complete the action. To resolve the error, you must have permission to access the Amazon Web Service or
quota.
DEPENDENCY_THROTTLING_ERROR
- The Amazon Web Service is throttling Service Quotas.
DEPENDENCY_SERVICE_ERROR
- The Amazon Web Service is not available.
SERVICE_QUOTA_NOT_AVAILABLE_ERROR
- There was an error in Service Quotas.
ErrorCode
public ErrorReason withErrorCode(String errorCode)
Service Quotas returns the following error values:
DEPENDENCY_ACCESS_DENIED_ERROR
- The caller does not have the required permissions to complete the
action. To resolve the error, you must have permission to access the Amazon Web Service or quota.
DEPENDENCY_THROTTLING_ERROR
- The Amazon Web Service is throttling Service Quotas.
DEPENDENCY_SERVICE_ERROR
- The Amazon Web Service is not available.
SERVICE_QUOTA_NOT_AVAILABLE_ERROR
- There was an error in Service Quotas.
errorCode
- Service Quotas returns the following error values:
DEPENDENCY_ACCESS_DENIED_ERROR
- The caller does not have the required permissions to
complete the action. To resolve the error, you must have permission to access the Amazon Web Service or
quota.
DEPENDENCY_THROTTLING_ERROR
- The Amazon Web Service is throttling Service Quotas.
DEPENDENCY_SERVICE_ERROR
- The Amazon Web Service is not available.
SERVICE_QUOTA_NOT_AVAILABLE_ERROR
- There was an error in Service Quotas.
ErrorCode
public ErrorReason withErrorCode(ErrorCode errorCode)
Service Quotas returns the following error values:
DEPENDENCY_ACCESS_DENIED_ERROR
- The caller does not have the required permissions to complete the
action. To resolve the error, you must have permission to access the Amazon Web Service or quota.
DEPENDENCY_THROTTLING_ERROR
- The Amazon Web Service is throttling Service Quotas.
DEPENDENCY_SERVICE_ERROR
- The Amazon Web Service is not available.
SERVICE_QUOTA_NOT_AVAILABLE_ERROR
- There was an error in Service Quotas.
errorCode
- Service Quotas returns the following error values:
DEPENDENCY_ACCESS_DENIED_ERROR
- The caller does not have the required permissions to
complete the action. To resolve the error, you must have permission to access the Amazon Web Service or
quota.
DEPENDENCY_THROTTLING_ERROR
- The Amazon Web Service is throttling Service Quotas.
DEPENDENCY_SERVICE_ERROR
- The Amazon Web Service is not available.
SERVICE_QUOTA_NOT_AVAILABLE_ERROR
- There was an error in Service Quotas.
ErrorCode
public void setErrorMessage(String errorMessage)
The error message.
errorMessage
- The error message.public String getErrorMessage()
The error message.
public ErrorReason withErrorMessage(String errorMessage)
The error message.
errorMessage
- The error message.public String toString()
toString
in class Object
Object.toString()
public ErrorReason clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.