@Generated(value="software.amazon.awssdk:codegen") public final class ChatMessage extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ChatMessage.Builder,ChatMessage>
A chat message.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ChatMessage.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ChatMessage.Builder |
builder() |
String |
content()
The content of the chat message.
|
String |
contentType()
The type of the content.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ChatMessage.Builder> |
serializableBuilderClass() |
ChatMessage.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String contentType()
The type of the content. Supported types are text/plain, text/markdown, and
application/json.
text/plain, text/markdown, and
application/json.public final 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 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.
public ChatMessage.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ChatMessage.Builder,ChatMessage>public static ChatMessage.Builder builder()
public static Class<? extends ChatMessage.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.