@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ErrorReason extends Object implements Serializable, Cloneable, StructuredPojo
Returns an error that explains why the 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 that provides more detail.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setErrorCode(String errorCode)
Service Quotas returns the following error values.
|
void |
setErrorMessage(String errorMessage)
The error message that provides more detail.
|
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 that provides more detail.
|
public void setErrorCode(String errorCode)
Service Quotas returns the following error values.
DEPENDENCY_ACCESS_DENIED_ERROR is returned when the caller does not have permission to call the
service or service quota. To resolve the error, you need permission to access the service or service quota.
DEPENDENCY_THROTTLING_ERROR is returned when the service being called is throttling Service Quotas.
DEPENDENCY_SERVICE_ERROR is returned when the service being called has availability issues.
SERVICE_QUOTA_NOT_AVAILABLE_ERROR is returned when there was an error in Service Quotas.
errorCode - Service Quotas returns the following error values.
DEPENDENCY_ACCESS_DENIED_ERROR is returned when the caller does not have permission to call
the service or service quota. To resolve the error, you need permission to access the service or service
quota.
DEPENDENCY_THROTTLING_ERROR is returned when the service being called is throttling Service
Quotas.
DEPENDENCY_SERVICE_ERROR is returned when the service being called has availability issues.
SERVICE_QUOTA_NOT_AVAILABLE_ERROR is returned when there was an error in Service Quotas.
ErrorCodepublic String getErrorCode()
Service Quotas returns the following error values.
DEPENDENCY_ACCESS_DENIED_ERROR is returned when the caller does not have permission to call the
service or service quota. To resolve the error, you need permission to access the service or service quota.
DEPENDENCY_THROTTLING_ERROR is returned when the service being called is throttling Service Quotas.
DEPENDENCY_SERVICE_ERROR is returned when the service being called has availability issues.
SERVICE_QUOTA_NOT_AVAILABLE_ERROR is returned when there was an error in Service Quotas.
DEPENDENCY_ACCESS_DENIED_ERROR is returned when the caller does not have permission to call
the service or service quota. To resolve the error, you need permission to access the service or service
quota.
DEPENDENCY_THROTTLING_ERROR is returned when the service being called is throttling Service
Quotas.
DEPENDENCY_SERVICE_ERROR is returned when the service being called has availability issues.
SERVICE_QUOTA_NOT_AVAILABLE_ERROR is returned when there was an error in Service Quotas.
ErrorCodepublic ErrorReason withErrorCode(String errorCode)
Service Quotas returns the following error values.
DEPENDENCY_ACCESS_DENIED_ERROR is returned when the caller does not have permission to call the
service or service quota. To resolve the error, you need permission to access the service or service quota.
DEPENDENCY_THROTTLING_ERROR is returned when the service being called is throttling Service Quotas.
DEPENDENCY_SERVICE_ERROR is returned when the service being called has availability issues.
SERVICE_QUOTA_NOT_AVAILABLE_ERROR is returned when there was an error in Service Quotas.
errorCode - Service Quotas returns the following error values.
DEPENDENCY_ACCESS_DENIED_ERROR is returned when the caller does not have permission to call
the service or service quota. To resolve the error, you need permission to access the service or service
quota.
DEPENDENCY_THROTTLING_ERROR is returned when the service being called is throttling Service
Quotas.
DEPENDENCY_SERVICE_ERROR is returned when the service being called has availability issues.
SERVICE_QUOTA_NOT_AVAILABLE_ERROR is returned when there was an error in Service Quotas.
ErrorCodepublic ErrorReason withErrorCode(ErrorCode errorCode)
Service Quotas returns the following error values.
DEPENDENCY_ACCESS_DENIED_ERROR is returned when the caller does not have permission to call the
service or service quota. To resolve the error, you need permission to access the service or service quota.
DEPENDENCY_THROTTLING_ERROR is returned when the service being called is throttling Service Quotas.
DEPENDENCY_SERVICE_ERROR is returned when the service being called has availability issues.
SERVICE_QUOTA_NOT_AVAILABLE_ERROR is returned when there was an error in Service Quotas.
errorCode - Service Quotas returns the following error values.
DEPENDENCY_ACCESS_DENIED_ERROR is returned when the caller does not have permission to call
the service or service quota. To resolve the error, you need permission to access the service or service
quota.
DEPENDENCY_THROTTLING_ERROR is returned when the service being called is throttling Service
Quotas.
DEPENDENCY_SERVICE_ERROR is returned when the service being called has availability issues.
SERVICE_QUOTA_NOT_AVAILABLE_ERROR is returned when there was an error in Service Quotas.
ErrorCodepublic void setErrorMessage(String errorMessage)
The error message that provides more detail.
errorMessage - The error message that provides more detail.public String getErrorMessage()
The error message that provides more detail.
public ErrorReason withErrorMessage(String errorMessage)
The error message that provides more detail.
errorMessage - The error message that provides more detail.public String toString()
toString in class ObjectObject.toString()public ErrorReason clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2019. All rights reserved.