@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Message extends Object implements Serializable, Cloneable, StructuredPojo
The message object that provides the message text and its type.
Constructor and Description |
---|
Message() |
Modifier and Type | Method and Description |
---|---|
Message |
clone() |
boolean |
equals(Object obj) |
String |
getContent()
The text of the message.
|
String |
getContentType()
The content type of the message string.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContent(String content)
The text of the message.
|
void |
setContentType(ContentType contentType)
The content type of the message string.
|
void |
setContentType(String contentType)
The content type of the message string.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Message |
withContent(String content)
The text of the message.
|
Message |
withContentType(ContentType contentType)
The content type of the message string.
|
Message |
withContentType(String contentType)
The content type of the message string.
|
public void setContentType(String contentType)
The content type of the message string.
contentType
- The content type of the message string.ContentType
public String getContentType()
The content type of the message string.
ContentType
public Message withContentType(String contentType)
The content type of the message string.
contentType
- The content type of the message string.ContentType
public void setContentType(ContentType contentType)
The content type of the message string.
contentType
- The content type of the message string.ContentType
public Message withContentType(ContentType contentType)
The content type of the message string.
contentType
- The content type of the message string.ContentType
public void setContent(String content)
The text of the message.
content
- The text of the message.public String getContent()
The text of the message.
public Message withContent(String content)
The text of the message.
content
- The text of the message.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.