@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ChatMessage extends Object implements Serializable, Cloneable, StructuredPojo
A chat message.
Constructor and Description |
---|
ChatMessage() |
Modifier and Type | Method and Description |
---|---|
ChatMessage |
clone() |
boolean |
equals(Object obj) |
String |
getContent()
The content of the chat message.
|
String |
getContentType()
The type of the content.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContent(String content)
The content of the chat message.
|
void |
setContentType(String contentType)
The type of the content.
|
String |
toString()
Returns a string representation of this object.
|
ChatMessage |
withContent(String content)
The content of the chat message.
|
ChatMessage |
withContentType(String contentType)
The type of the content.
|
public void setContentType(String contentType)
The type of the content. Supported types are text and plain.
contentType
- The type of the content. Supported types are text and plain.public String getContentType()
The type of the content. Supported types are text and plain.
public ChatMessage withContentType(String contentType)
The type of the content. Supported types are text and plain.
contentType
- The type of the content. Supported types are text and plain.public void setContent(String content)
The content of the chat message.
content
- The content of the chat message.public String getContent()
The content of the chat message.
public ChatMessage withContent(String content)
The content of the chat message.
content
- The content of the chat message.public String toString()
toString
in class Object
Object.toString()
public ChatMessage clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.