Class ChatMessage
- java.lang.Object
-
- software.amazon.awssdk.services.connect.model.ChatMessage
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ChatMessage.Builder,ChatMessage>
@Generated("software.amazon.awssdk:codegen") public final class ChatMessage extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ChatMessage.Builder,ChatMessage>
A chat message.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceChatMessage.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChatMessage.Builderbuilder()Stringcontent()The content of the chat message.StringcontentType()The type of the content.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends ChatMessage.Builder>serializableBuilderClass()ChatMessage.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
contentType
public final String contentType()
The type of the content. Supported types are
text/plain,text/markdown,application/json, andapplication/vnd.amazonaws.connect.message.interactive.response.- Returns:
- The type of the content. Supported types are
text/plain,text/markdown,application/json, andapplication/vnd.amazonaws.connect.message.interactive.response.
-
content
public final String content()
The content of the chat message.
-
For
text/plainandtext/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.
- Returns:
- The content of the chat message.
-
For
text/plainandtext/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.
-
-
-
toBuilder
public ChatMessage.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ChatMessage.Builder,ChatMessage>
-
builder
public static ChatMessage.Builder builder()
-
serializableBuilderClass
public static Class<? extends ChatMessage.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-