@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.
|
Integer |
getGroupNumber()
Identifies the message group that the message belongs to.
|
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.
|
void |
setGroupNumber(Integer groupNumber)
Identifies the message group that the message belongs to.
|
String |
toString()
Returns a string representation of this object.
|
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.
|
Message |
withGroupNumber(Integer groupNumber)
Identifies the message group that the message belongs to.
|
public void setContentType(String contentType)
The content type of the message string.
contentType - The content type of the message string.ContentTypepublic String getContentType()
The content type of the message string.
ContentTypepublic Message withContentType(String contentType)
The content type of the message string.
contentType - The content type of the message string.ContentTypepublic void setContentType(ContentType contentType)
The content type of the message string.
contentType - The content type of the message string.ContentTypepublic Message withContentType(ContentType contentType)
The content type of the message string.
contentType - The content type of the message string.ContentTypepublic 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 void setGroupNumber(Integer groupNumber)
Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response.
groupNumber - Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon
Lex returns one message from each group in the response.public Integer getGroupNumber()
Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response.
public Message withGroupNumber(Integer groupNumber)
Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response.
groupNumber - Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon
Lex returns one message from each group in the response.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.