@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)
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 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.
ErrorCode
public 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.
ErrorCode
public 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.
ErrorCode
public 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.
ErrorCode
public 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 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.