@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MessageBody extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about an API request or response.
Constructor and Description |
---|
MessageBody() |
Modifier and Type | Method and Description |
---|---|
MessageBody |
clone() |
boolean |
equals(Object obj) |
String |
getMessage()
The message that's returned from the API.
|
String |
getRequestID()
The unique identifier for the request or response.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMessage(String message)
The message that's returned from the API.
|
void |
setRequestID(String requestID)
The unique identifier for the request or response.
|
String |
toString()
Returns a string representation of this object.
|
MessageBody |
withMessage(String message)
The message that's returned from the API.
|
MessageBody |
withRequestID(String requestID)
The unique identifier for the request or response.
|
public void setMessage(String message)
The message that's returned from the API.
message
- The message that's returned from the API.public String getMessage()
The message that's returned from the API.
public MessageBody withMessage(String message)
The message that's returned from the API.
message
- The message that's returned from the API.public void setRequestID(String requestID)
The unique identifier for the request or response.
requestID
- The unique identifier for the request or response.public String getRequestID()
The unique identifier for the request or response.
public MessageBody withRequestID(String requestID)
The unique identifier for the request or response.
requestID
- The unique identifier for the request or response.public String toString()
toString
in class Object
Object.toString()
public MessageBody clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.