@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FailureInfo extends Object implements Serializable, Cloneable, StructuredPojo
Information about the errors that are returned for each failed resource. This information can include
InternalServiceException and InvalidParameterException errors. It can also include any
valid error code returned by the AWS service that hosts the resource that the ARN key represents.
The following are common error codes that you might receive from other AWS services:
InternalServiceException – This can mean that the Resource Groups Tagging API didn't receive a response from another AWS service. It can also mean the the resource type in the request is not supported by the Resource Groups Tagging API. In these cases, it's safe to retry the request and then call GetResources to verify the changes.
AccessDeniedException – This can mean that you need permission to calling tagging operations in the AWS
service that contains the resource. For example, to use the Resource Groups Tagging API to tag a CloudWatch alarm
resource, you need permission to call
TagResources and TagResource
in the CloudWatch API.
For more information on errors that are generated from other AWS services, see the documentation for that service.
| 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.
|
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.