@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FailureInfo extends Object implements Serializable, Cloneable, StructuredPojo
Details of the common errors that all actions return.
| Constructor and Description |
|---|
FailureInfo() |
| Modifier and Type | Method and Description |
|---|---|
FailureInfo |
clone() |
boolean |
equals(Object obj) |
String |
getErrorCode()
The code of the common error.
|
String |
getErrorMessage()
The message of the common error.
|
Integer |
getStatusCode()
The HTTP status code of the common error.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setErrorCode(ErrorCode errorCode)
The code of the common error.
|
void |
setErrorCode(String errorCode)
The code of the common error.
|
void |
setErrorMessage(String errorMessage)
The message of the common error.
|
void |
setStatusCode(Integer statusCode)
The HTTP status code of the common error.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
FailureInfo |
withErrorCode(ErrorCode errorCode)
The code of the common error.
|
FailureInfo |
withErrorCode(String errorCode)
The code of the common error.
|
FailureInfo |
withErrorMessage(String errorMessage)
The message of the common error.
|
FailureInfo |
withStatusCode(Integer statusCode)
The HTTP status code of the common error.
|
public void setStatusCode(Integer statusCode)
The HTTP status code of the common error.
statusCode - The HTTP status code of the common error.public Integer getStatusCode()
The HTTP status code of the common error.
public FailureInfo withStatusCode(Integer statusCode)
The HTTP status code of the common error.
statusCode - The HTTP status code of the common error.public void setErrorCode(String errorCode)
The code of the common error. Valid values include InternalServiceException,
InvalidParameterException, and any valid error code returned by the AWS service that hosts the
resource that you want to tag.
errorCode - The code of the common error. Valid values include InternalServiceException,
InvalidParameterException, and any valid error code returned by the AWS service that hosts
the resource that you want to tag.ErrorCodepublic String getErrorCode()
The code of the common error. Valid values include InternalServiceException,
InvalidParameterException, and any valid error code returned by the AWS service that hosts the
resource that you want to tag.
InternalServiceException,
InvalidParameterException, and any valid error code returned by the AWS service that hosts
the resource that you want to tag.ErrorCodepublic FailureInfo withErrorCode(String errorCode)
The code of the common error. Valid values include InternalServiceException,
InvalidParameterException, and any valid error code returned by the AWS service that hosts the
resource that you want to tag.
errorCode - The code of the common error. Valid values include InternalServiceException,
InvalidParameterException, and any valid error code returned by the AWS service that hosts
the resource that you want to tag.ErrorCodepublic void setErrorCode(ErrorCode errorCode)
The code of the common error. Valid values include InternalServiceException,
InvalidParameterException, and any valid error code returned by the AWS service that hosts the
resource that you want to tag.
errorCode - The code of the common error. Valid values include InternalServiceException,
InvalidParameterException, and any valid error code returned by the AWS service that hosts
the resource that you want to tag.ErrorCodepublic FailureInfo withErrorCode(ErrorCode errorCode)
The code of the common error. Valid values include InternalServiceException,
InvalidParameterException, and any valid error code returned by the AWS service that hosts the
resource that you want to tag.
errorCode - The code of the common error. Valid values include InternalServiceException,
InvalidParameterException, and any valid error code returned by the AWS service that hosts
the resource that you want to tag.ErrorCodepublic void setErrorMessage(String errorMessage)
The message of the common error.
errorMessage - The message of the common error.public String getErrorMessage()
The message of the common error.
public FailureInfo withErrorMessage(String errorMessage)
The message of the common error.
errorMessage - The message of the common error.public String toString()
toString in class ObjectObject.toString()public FailureInfo clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.