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,
text/markdown, application/json, and
application/vnd.amazonaws.connect.message.interactive.response
.
Constraints:
Length: 1 - 100
The type of the content. Supported types are
text/plain, text/markdown,
application/json, and
application/vnd.amazonaws.connect.message.interactive.response
.
public void setContentType(java.lang.String contentType)
The type of the content. Supported types are text/plain,
text/markdown, application/json, and
application/vnd.amazonaws.connect.message.interactive.response
.
Constraints:
Length: 1 - 100
contentType -
The type of the content. Supported types are
text/plain, text/markdown,
application/json, and
application/vnd.amazonaws.connect.message.interactive.response
.
public ChatMessage withContentType(java.lang.String contentType)
The type of the content. Supported types are text/plain,
text/markdown, application/json, and
application/vnd.amazonaws.connect.message.interactive.response
.
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, text/markdown,
application/json, and
application/vnd.amazonaws.connect.message.interactive.response
.
public java.lang.String getContent()
The content of the chat message.
For text/plain and text/markdown, the Length
Constraints are Minimum of 1, Maximum of 1024.
For application/json, the Length Constraints are Minimum of
1, Maximum of 12000.
For
application/vnd.amazonaws.connect.message.interactive.response
, the Length Constraints are Minimum of 1, Maximum of 12288.
Constraints:
Length: 1 - 16384
The content of the chat message.
For text/plain and text/markdown, the
Length Constraints are Minimum of 1, Maximum of 1024.
For application/json, the Length Constraints are
Minimum of 1, Maximum of 12000.
For
application/vnd.amazonaws.connect.message.interactive.response
, the Length Constraints are Minimum of 1, Maximum of 12288.
public void setContent(java.lang.String content)
The content of the chat message.
For text/plain and text/markdown, the Length
Constraints are Minimum of 1, Maximum of 1024.
For application/json, the Length Constraints are Minimum of
1, Maximum of 12000.
For
application/vnd.amazonaws.connect.message.interactive.response
, the Length Constraints are Minimum of 1, Maximum of 12288.
Constraints:
Length: 1 - 16384
content - The content of the chat message.
For text/plain and text/markdown,
the Length Constraints are Minimum of 1, Maximum of 1024.
For application/json, the Length Constraints are
Minimum of 1, Maximum of 12000.
For
application/vnd.amazonaws.connect.message.interactive.response
, the Length Constraints are Minimum of 1, Maximum of 12288.
public ChatMessage withContent(java.lang.String content)
The content of the chat message.
For text/plain and text/markdown, the Length
Constraints are Minimum of 1, Maximum of 1024.
For application/json, the Length Constraints are Minimum of
1, Maximum of 12000.
For
application/vnd.amazonaws.connect.message.interactive.response
, the Length Constraints are Minimum of 1, Maximum of 12288.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 16384
content - The content of the chat message.
For text/plain and text/markdown,
the Length Constraints are Minimum of 1, Maximum of 1024.
For application/json, the Length Constraints are
Minimum of 1, Maximum of 12000.
For
application/vnd.amazonaws.connect.message.interactive.response
, the Length Constraints are Minimum of 1, Maximum of 12288.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object