public class ChatMessage
extends java.lang.Object
implements java.io.Serializable
A chat message.
Constructor and Description |
---|
ChatMessage() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getContent()
The content of the chat message.
|
java.lang.String |
getContentType()
The type of the content.
|
int |
hashCode() |
void |
setContent(java.lang.String content)
The content of the chat message.
|
void |
setContentType(java.lang.String contentType)
The type of the content.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ChatMessage |
withContent(java.lang.String content)
The content of the chat message.
|
ChatMessage |
withContentType(java.lang.String contentType)
The type of the content.
|
public java.lang.String getContentType()
The type of the content. Supported types are text/plain.
Constraints:
Length: 1 - 100
The type of the content. Supported types are text/plain.
public void setContentType(java.lang.String contentType)
The type of the content. Supported types are text/plain.
Constraints:
Length: 1 - 100
contentType
- The type of the content. Supported types are text/plain.
public ChatMessage withContentType(java.lang.String contentType)
The type of the content. Supported types are text/plain.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
contentType
- The type of the content. Supported types are text/plain.
public java.lang.String getContent()
The content of the chat message.
Constraints:
Length: 1 - 1024
The content of the chat message.
public void setContent(java.lang.String content)
The content of the chat message.
Constraints:
Length: 1 - 1024
content
- The content of the chat message.
public ChatMessage withContent(java.lang.String content)
The content of the chat message.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1024
content
- The content of the chat message.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.