@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/plain
, text/markdown
,
application/json
, and application/vnd.amazonaws.connect.message.interactive.response
.
contentType
- The type of the content. Supported types are text/plain
, text/markdown
,
application/json
, and
application/vnd.amazonaws.connect.message.interactive.response
.public String getContentType()
The type of the content. Supported types are text/plain
, text/markdown
,
application/json
, and application/vnd.amazonaws.connect.message.interactive.response
.
text/plain
, text/markdown
,
application/json
, and
application/vnd.amazonaws.connect.message.interactive.response
.public ChatMessage withContentType(String contentType)
The type of the content. Supported types are text/plain
, text/markdown
,
application/json
, and application/vnd.amazonaws.connect.message.interactive.response
.
contentType
- The type of the content. Supported types are text/plain
, text/markdown
,
application/json
, and
application/vnd.amazonaws.connect.message.interactive.response
.public void setContent(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.
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 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.
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(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.
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 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.