@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Message extends Object implements Serializable, Cloneable, StructuredPojo
| Constructor and Description |
|---|
Message() |
| Modifier and Type | Method and Description |
|---|---|
Message |
clone() |
boolean |
equals(Object obj) |
List<ContentBlock> |
getContent()
The message content.
|
String |
getRole()
The role that the message plays in the message.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setContent(Collection<ContentBlock> content)
The message content.
|
void |
setRole(String role)
The role that the message plays in the message.
|
String |
toString()
Returns a string representation of this object.
|
Message |
withContent(Collection<ContentBlock> content)
The message content.
|
Message |
withContent(ContentBlock... content)
The message content.
|
Message |
withRole(ConversationRole role)
The role that the message plays in the message.
|
Message |
withRole(String role)
The role that the message plays in the message.
|
public void setRole(String role)
The role that the message plays in the message.
role - The role that the message plays in the message.ConversationRolepublic String getRole()
The role that the message plays in the message.
ConversationRolepublic Message withRole(String role)
The role that the message plays in the message.
role - The role that the message plays in the message.ConversationRolepublic Message withRole(ConversationRole role)
The role that the message plays in the message.
role - The role that the message plays in the message.ConversationRolepublic List<ContentBlock> getContent()
The message content.
public void setContent(Collection<ContentBlock> content)
The message content.
content - The message content.public Message withContent(ContentBlock... content)
The message content.
NOTE: This method appends the values to the existing list (if any). Use
setContent(java.util.Collection) or withContent(java.util.Collection) if you want to override
the existing values.
content - The message content.public Message withContent(Collection<ContentBlock> content)
The message content.
content - The message content.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2024. All rights reserved.