@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ErrorResponse extends Object implements Serializable, Cloneable, StructuredPojo
Error associated with a resource returned for a Get or List resource response.
Constructor and Description |
---|
ErrorResponse() |
Modifier and Type | Method and Description |
---|---|
ErrorResponse |
addAdditionalDetailsEntry(String key,
String value)
Add a single AdditionalDetails entry
|
ErrorResponse |
clearAdditionalDetailsEntries()
Removes all the entries added into AdditionalDetails.
|
ErrorResponse |
clone() |
boolean |
equals(Object obj) |
String |
getAccountId()
The Amazon Web Services account ID of the resource owner.
|
Map<String,String> |
getAdditionalDetails()
Additional details about the error.
|
String |
getCode()
The error code associated with the error.
|
String |
getMessage()
The message associated with the error.
|
String |
getResourceIdentifier()
The ID of the resource.
|
String |
getResourceType()
The type of resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccountId(String accountId)
The Amazon Web Services account ID of the resource owner.
|
void |
setAdditionalDetails(Map<String,String> additionalDetails)
Additional details about the error.
|
void |
setCode(String code)
The error code associated with the error.
|
void |
setMessage(String message)
The message associated with the error.
|
void |
setResourceIdentifier(String resourceIdentifier)
The ID of the resource.
|
void |
setResourceType(String resourceType)
The type of resource.
|
String |
toString()
Returns a string representation of this object.
|
ErrorResponse |
withAccountId(String accountId)
The Amazon Web Services account ID of the resource owner.
|
ErrorResponse |
withAdditionalDetails(Map<String,String> additionalDetails)
Additional details about the error.
|
ErrorResponse |
withCode(ErrorCode code)
The error code associated with the error.
|
ErrorResponse |
withCode(String code)
The error code associated with the error.
|
ErrorResponse |
withMessage(String message)
The message associated with the error.
|
ErrorResponse |
withResourceIdentifier(String resourceIdentifier)
The ID of the resource.
|
ErrorResponse |
withResourceType(ErrorResourceType resourceType)
The type of resource.
|
ErrorResponse |
withResourceType(String resourceType)
The type of resource.
|
public void setAccountId(String accountId)
The Amazon Web Services account ID of the resource owner.
accountId
- The Amazon Web Services account ID of the resource owner.public String getAccountId()
The Amazon Web Services account ID of the resource owner.
public ErrorResponse withAccountId(String accountId)
The Amazon Web Services account ID of the resource owner.
accountId
- The Amazon Web Services account ID of the resource owner.public Map<String,String> getAdditionalDetails()
Additional details about the error.
public void setAdditionalDetails(Map<String,String> additionalDetails)
Additional details about the error.
additionalDetails
- Additional details about the error.public ErrorResponse withAdditionalDetails(Map<String,String> additionalDetails)
Additional details about the error.
additionalDetails
- Additional details about the error.public ErrorResponse addAdditionalDetailsEntry(String key, String value)
public ErrorResponse clearAdditionalDetailsEntries()
public void setCode(String code)
The error code associated with the error.
code
- The error code associated with the error.ErrorCode
public String getCode()
The error code associated with the error.
ErrorCode
public ErrorResponse withCode(String code)
The error code associated with the error.
code
- The error code associated with the error.ErrorCode
public ErrorResponse withCode(ErrorCode code)
The error code associated with the error.
code
- The error code associated with the error.ErrorCode
public void setMessage(String message)
The message associated with the error.
message
- The message associated with the error.public String getMessage()
The message associated with the error.
public ErrorResponse withMessage(String message)
The message associated with the error.
message
- The message associated with the error.public void setResourceIdentifier(String resourceIdentifier)
The ID of the resource.
resourceIdentifier
- The ID of the resource.public String getResourceIdentifier()
The ID of the resource.
public ErrorResponse withResourceIdentifier(String resourceIdentifier)
The ID of the resource.
resourceIdentifier
- The ID of the resource.public void setResourceType(String resourceType)
The type of resource.
resourceType
- The type of resource.ErrorResourceType
public String getResourceType()
The type of resource.
ErrorResourceType
public ErrorResponse withResourceType(String resourceType)
The type of resource.
resourceType
- The type of resource.ErrorResourceType
public ErrorResponse withResourceType(ErrorResourceType resourceType)
The type of resource.
resourceType
- The type of resource.ErrorResourceType
public String toString()
toString
in class Object
Object.toString()
public ErrorResponse clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.