@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 Amazon Web Services service that hosts the resource that the ARN key represents.
The following are common error codes that you might receive from other Amazon Web Services services:
InternalServiceException – This can mean that the Resource Groups Tagging API didn't receive a response from another Amazon Web Services service. It can also mean that 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 call the tagging operations in the Amazon
Web Services service that contains the resource. For example, to use the Resource Groups Tagging API to tag a Amazon
CloudWatch alarm resource, you need permission to call both
TagResources
and
TagResource
in the CloudWatch API.
For more information on errors that are generated from other Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services
service that hosts the resource that you want to tag.ErrorCode
public String getErrorCode()
The code of the common error. Valid values include InternalServiceException
,
InvalidParameterException
, and any valid error code returned by the Amazon Web Services service that
hosts the resource that you want to tag.
InternalServiceException
,
InvalidParameterException
, and any valid error code returned by the Amazon Web Services
service that hosts the resource that you want to tag.ErrorCode
public FailureInfo withErrorCode(String errorCode)
The code of the common error. Valid values include InternalServiceException
,
InvalidParameterException
, and any valid error code returned by the Amazon Web Services 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 Amazon Web Services
service that hosts the resource that you want to tag.ErrorCode
public void setErrorCode(ErrorCode errorCode)
The code of the common error. Valid values include InternalServiceException
,
InvalidParameterException
, and any valid error code returned by the Amazon Web Services 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 Amazon Web Services
service that hosts the resource that you want to tag.ErrorCode
public FailureInfo withErrorCode(ErrorCode errorCode)
The code of the common error. Valid values include InternalServiceException
,
InvalidParameterException
, and any valid error code returned by the Amazon Web Services 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 Amazon Web Services
service that hosts the resource that you want to tag.ErrorCode
public 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 Object
Object.toString()
public FailureInfo clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.