@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AttachmentError extends Object implements Serializable, Cloneable, StructuredPojo
Describes the error associated with an attachment request.
| Constructor and Description |
|---|
AttachmentError() |
| Modifier and Type | Method and Description |
|---|---|
AttachmentError |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
The error code for the attachment request.
|
String |
getMessage()
The message associated with the error
code. |
String |
getRequestId()
The ID of the attachment request.
|
String |
getResourceArn()
The ARN of the requested attachment resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCode(String code)
The error code for the attachment request.
|
void |
setMessage(String message)
The message associated with the error
code. |
void |
setRequestId(String requestId)
The ID of the attachment request.
|
void |
setResourceArn(String resourceArn)
The ARN of the requested attachment resource.
|
String |
toString()
Returns a string representation of this object.
|
AttachmentError |
withCode(AttachmentErrorCode code)
The error code for the attachment request.
|
AttachmentError |
withCode(String code)
The error code for the attachment request.
|
AttachmentError |
withMessage(String message)
The message associated with the error
code. |
AttachmentError |
withRequestId(String requestId)
The ID of the attachment request.
|
AttachmentError |
withResourceArn(String resourceArn)
The ARN of the requested attachment resource.
|
public void setCode(String code)
The error code for the attachment request.
code - The error code for the attachment request.AttachmentErrorCodepublic String getCode()
The error code for the attachment request.
AttachmentErrorCodepublic AttachmentError withCode(String code)
The error code for the attachment request.
code - The error code for the attachment request.AttachmentErrorCodepublic AttachmentError withCode(AttachmentErrorCode code)
The error code for the attachment request.
code - The error code for the attachment request.AttachmentErrorCodepublic void setMessage(String message)
The message associated with the error code.
message - The message associated with the error code.public String getMessage()
The message associated with the error code.
code.public AttachmentError withMessage(String message)
The message associated with the error code.
message - The message associated with the error code.public void setResourceArn(String resourceArn)
The ARN of the requested attachment resource.
resourceArn - The ARN of the requested attachment resource.public String getResourceArn()
The ARN of the requested attachment resource.
public AttachmentError withResourceArn(String resourceArn)
The ARN of the requested attachment resource.
resourceArn - The ARN of the requested attachment resource.public void setRequestId(String requestId)
The ID of the attachment request.
requestId - The ID of the attachment request.public String getRequestId()
The ID of the attachment request.
public AttachmentError withRequestId(String requestId)
The ID of the attachment request.
requestId - The ID of the attachment request.public String toString()
toString in class ObjectObject.toString()public AttachmentError clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.