@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ConversationMessage extends Object implements Serializable, Cloneable, StructuredPojo
A message in a conversation, used as input for generating an Amazon Q App definition.
| Constructor and Description |
|---|
ConversationMessage() |
| Modifier and Type | Method and Description |
|---|---|
ConversationMessage |
clone() |
boolean |
equals(Object obj) |
String |
getBody()
The text content of the conversation message.
|
String |
getType()
The type of the conversation message.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setBody(String body)
The text content of the conversation message.
|
void |
setType(String type)
The type of the conversation message.
|
String |
toString()
Returns a string representation of this object.
|
ConversationMessage |
withBody(String body)
The text content of the conversation message.
|
ConversationMessage |
withType(Sender type)
The type of the conversation message.
|
ConversationMessage |
withType(String type)
The type of the conversation message.
|
public void setBody(String body)
The text content of the conversation message.
body - The text content of the conversation message.public String getBody()
The text content of the conversation message.
public ConversationMessage withBody(String body)
The text content of the conversation message.
body - The text content of the conversation message.public void setType(String type)
The type of the conversation message.
type - The type of the conversation message.Senderpublic String getType()
The type of the conversation message.
Senderpublic ConversationMessage withType(String type)
The type of the conversation message.
type - The type of the conversation message.Senderpublic ConversationMessage withType(Sender type)
The type of the conversation message.
type - The type of the conversation message.Senderpublic String toString()
toString in class ObjectObject.toString()public ConversationMessage clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.