/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.lexruntime.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Describes the next action that the bot should take in its interaction with the user and provides information about * the context in which the action takes place. Use the DialogAction data type to set the interaction to a * specific state, or to return the interaction to a previous state. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DialogAction implements Serializable, Cloneable, StructuredPojo { /** *

* The next action that the bot should take in its interaction with the user. The possible values are: *

* */ private String type; /** *

* The name of the intent. *

*/ private String intentName; /** *

* Map of the slots that have been gathered and their values. *

*/ private java.util.Map slots; /** *

* The name of the slot that should be elicited from the user. *

*/ private String slotToElicit; /** *

* The fulfillment state of the intent. The possible values are: *

* */ private String fulfillmentState; /** *

* The message that should be shown to the user. If you don't specify a message, Amazon Lex will use the message * configured for the intent. *

*/ private String message; /** * */ private String messageFormat; /** *

* The next action that the bot should take in its interaction with the user. The possible values are: *

* * * @param type * The next action that the bot should take in its interaction with the user. The possible values are:

*