Class ConversationMessage
- java.lang.Object
-
- software.amazon.awssdk.services.qapps.model.ConversationMessage
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ConversationMessage.Builder,ConversationMessage>
@Generated("software.amazon.awssdk:codegen") public final class ConversationMessage extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ConversationMessage.Builder,ConversationMessage>
A message in a conversation, used as input for generating an Amazon Q App definition.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceConversationMessage.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbody()The text content of the conversation message.static ConversationMessage.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends ConversationMessage.Builder>serializableBuilderClass()ConversationMessage.BuildertoBuilder()StringtoString()Returns a string representation of this object.Sendertype()The type of the conversation message.StringtypeAsString()The type of the conversation message.-
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
-
body
public final String body()
The text content of the conversation message.
- Returns:
- The text content of the conversation message.
-
type
public final Sender type()
The type of the conversation message.
If the service returns an enum value that is not available in the current SDK version,
typewill returnSender.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of the conversation message.
- See Also:
Sender
-
typeAsString
public final String typeAsString()
The type of the conversation message.
If the service returns an enum value that is not available in the current SDK version,
typewill returnSender.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of the conversation message.
- See Also:
Sender
-
toBuilder
public ConversationMessage.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ConversationMessage.Builder,ConversationMessage>
-
builder
public static ConversationMessage.Builder builder()
-
serializableBuilderClass
public static Class<? extends ConversationMessage.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.
-
-