Class DialogAction
- java.lang.Object
-
- software.amazon.awssdk.services.lexmodelsv2.model.DialogAction
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DialogAction.Builder,DialogAction>
@Generated("software.amazon.awssdk:codegen") public final class DialogAction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DialogAction.Builder,DialogAction>
Defines the action that the bot executes at runtime when the conversation reaches this step.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDialogAction.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DialogAction.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends DialogAction.Builder>serializableBuilderClass()StringslotToElicit()If the dialog action isElicitSlot, defines the slot to elicit from the user.BooleansuppressNextMessage()When true the next message for the intent is not used.DialogAction.BuildertoBuilder()StringtoString()Returns a string representation of this object.DialogActionTypetype()The action that the bot should execute.StringtypeAsString()The action that the bot should execute.-
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 DialogActionType type()
The action that the bot should execute.
If the service returns an enum value that is not available in the current SDK version,
typewill returnDialogActionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The action that the bot should execute.
- See Also:
DialogActionType
-
typeAsString
public final String typeAsString()
The action that the bot should execute.
If the service returns an enum value that is not available in the current SDK version,
typewill returnDialogActionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The action that the bot should execute.
- See Also:
DialogActionType
-
slotToElicit
public final String slotToElicit()
If the dialog action is
ElicitSlot, defines the slot to elicit from the user.- Returns:
- If the dialog action is
ElicitSlot, defines the slot to elicit from the user.
-
suppressNextMessage
public final Boolean suppressNextMessage()
When true the next message for the intent is not used.
- Returns:
- When true the next message for the intent is not used.
-
toBuilder
public DialogAction.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DialogAction.Builder,DialogAction>
-
builder
public static DialogAction.Builder builder()
-
serializableBuilderClass
public static Class<? extends DialogAction.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.
-
-