Class ChatEvent
- java.lang.Object
-
- software.amazon.awssdk.services.connect.model.ChatEvent
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ChatEvent.Builder,ChatEvent>
@Generated("software.amazon.awssdk:codegen") public final class ChatEvent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ChatEvent.Builder,ChatEvent>
Chat integration event containing payload to perform different chat actions such as:
-
Sending a chat message
-
Sending a chat event, such as typing
-
Disconnecting from a chat
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceChatEvent.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChatEvent.Builderbuilder()Stringcontent()Content of the message or event.StringcontentType()Type of content.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends ChatEvent.Builder>serializableBuilderClass()ChatEvent.BuildertoBuilder()StringtoString()Returns a string representation of this object.ChatEventTypetype()Type of chat integration event.StringtypeAsString()Type of chat integration event.-
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
-
type
public final ChatEventType type()
Type of chat integration event.
If the service returns an enum value that is not available in the current SDK version,
typewill returnChatEventType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Type of chat integration event.
- See Also:
ChatEventType
-
typeAsString
public final String typeAsString()
Type of chat integration event.
If the service returns an enum value that is not available in the current SDK version,
typewill returnChatEventType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Type of chat integration event.
- See Also:
ChatEventType
-
contentType
public final String contentType()
Type of content. This is required when
TypeisMESSAGEorEVENT.-
For allowed message content types, see the
ContentTypeparameter in the SendMessage topic in the Amazon Connect Participant Service API Reference. -
For allowed event content types, see the
ContentTypeparameter in the SendEvent topic in the Amazon Connect Participant Service API Reference.
- Returns:
- Type of content. This is required when
TypeisMESSAGEorEVENT.-
For allowed message content types, see the
ContentTypeparameter in the SendMessage topic in the Amazon Connect Participant Service API Reference. -
For allowed event content types, see the
ContentTypeparameter in the SendEvent topic in the Amazon Connect Participant Service API Reference.
-
-
-
content
public final String content()
Content of the message or event. This is required when
TypeisMESSAGEand for certainContentTypeswhenTypeisEVENT.-
For allowed message content, see the
Contentparameter in the SendMessage topic in the Amazon Connect Participant Service API Reference. -
For allowed event content, see the
Contentparameter in the SendEvent topic in the Amazon Connect Participant Service API Reference.
- Returns:
- Content of the message or event. This is required when
TypeisMESSAGEand for certainContentTypeswhenTypeisEVENT.-
For allowed message content, see the
Contentparameter in the SendMessage topic in the Amazon Connect Participant Service API Reference. -
For allowed event content, see the
Contentparameter in the SendEvent topic in the Amazon Connect Participant Service API Reference.
-
-
-
toBuilder
public ChatEvent.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ChatEvent.Builder,ChatEvent>
-
builder
public static ChatEvent.Builder builder()
-
serializableBuilderClass
public static Class<? extends ChatEvent.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.
-
-