@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class IntentConfirmationSetting extends Object implements Serializable, Cloneable, StructuredPojo
Provides a prompt for making sure that the user is ready for the intent to be fulfilled.
Constructor and Description |
---|
IntentConfirmationSetting() |
Modifier and Type | Method and Description |
---|---|
IntentConfirmationSetting |
clone() |
boolean |
equals(Object obj) |
Boolean |
getActive()
Specifies whether the intent's confirmation is sent to the user.
|
ResponseSpecification |
getDeclinationResponse()
When the user answers "no" to the question defined in
promptSpecification , Amazon Lex responds with
this response to acknowledge that the intent was canceled. |
PromptSpecification |
getPromptSpecification()
Prompts the user to confirm the intent.
|
int |
hashCode() |
Boolean |
isActive()
Specifies whether the intent's confirmation is sent to the user.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setActive(Boolean active)
Specifies whether the intent's confirmation is sent to the user.
|
void |
setDeclinationResponse(ResponseSpecification declinationResponse)
When the user answers "no" to the question defined in
promptSpecification , Amazon Lex responds with
this response to acknowledge that the intent was canceled. |
void |
setPromptSpecification(PromptSpecification promptSpecification)
Prompts the user to confirm the intent.
|
String |
toString()
Returns a string representation of this object.
|
IntentConfirmationSetting |
withActive(Boolean active)
Specifies whether the intent's confirmation is sent to the user.
|
IntentConfirmationSetting |
withDeclinationResponse(ResponseSpecification declinationResponse)
When the user answers "no" to the question defined in
promptSpecification , Amazon Lex responds with
this response to acknowledge that the intent was canceled. |
IntentConfirmationSetting |
withPromptSpecification(PromptSpecification promptSpecification)
Prompts the user to confirm the intent.
|
public void setPromptSpecification(PromptSpecification promptSpecification)
Prompts the user to confirm the intent. This question should have a yes or no answer.
Amazon Lex uses this prompt to ensure that the user acknowledges that the intent is ready for fulfillment. For
example, with the OrderPizza
intent, you might want to confirm that the order is correct before
placing it. For other intents, such as intents that simply respond to user questions, you might not need to ask
the user for confirmation before providing the information.
promptSpecification
- Prompts the user to confirm the intent. This question should have a yes or no answer.
Amazon Lex uses this prompt to ensure that the user acknowledges that the intent is ready for fulfillment.
For example, with the OrderPizza
intent, you might want to confirm that the order is correct
before placing it. For other intents, such as intents that simply respond to user questions, you might not
need to ask the user for confirmation before providing the information.
public PromptSpecification getPromptSpecification()
Prompts the user to confirm the intent. This question should have a yes or no answer.
Amazon Lex uses this prompt to ensure that the user acknowledges that the intent is ready for fulfillment. For
example, with the OrderPizza
intent, you might want to confirm that the order is correct before
placing it. For other intents, such as intents that simply respond to user questions, you might not need to ask
the user for confirmation before providing the information.
Amazon Lex uses this prompt to ensure that the user acknowledges that the intent is ready for
fulfillment. For example, with the OrderPizza
intent, you might want to confirm that the
order is correct before placing it. For other intents, such as intents that simply respond to user
questions, you might not need to ask the user for confirmation before providing the information.
public IntentConfirmationSetting withPromptSpecification(PromptSpecification promptSpecification)
Prompts the user to confirm the intent. This question should have a yes or no answer.
Amazon Lex uses this prompt to ensure that the user acknowledges that the intent is ready for fulfillment. For
example, with the OrderPizza
intent, you might want to confirm that the order is correct before
placing it. For other intents, such as intents that simply respond to user questions, you might not need to ask
the user for confirmation before providing the information.
promptSpecification
- Prompts the user to confirm the intent. This question should have a yes or no answer.
Amazon Lex uses this prompt to ensure that the user acknowledges that the intent is ready for fulfillment.
For example, with the OrderPizza
intent, you might want to confirm that the order is correct
before placing it. For other intents, such as intents that simply respond to user questions, you might not
need to ask the user for confirmation before providing the information.
public void setDeclinationResponse(ResponseSpecification declinationResponse)
When the user answers "no" to the question defined in promptSpecification
, Amazon Lex responds with
this response to acknowledge that the intent was canceled.
declinationResponse
- When the user answers "no" to the question defined in promptSpecification
, Amazon Lex
responds with this response to acknowledge that the intent was canceled.public ResponseSpecification getDeclinationResponse()
When the user answers "no" to the question defined in promptSpecification
, Amazon Lex responds with
this response to acknowledge that the intent was canceled.
promptSpecification
, Amazon Lex
responds with this response to acknowledge that the intent was canceled.public IntentConfirmationSetting withDeclinationResponse(ResponseSpecification declinationResponse)
When the user answers "no" to the question defined in promptSpecification
, Amazon Lex responds with
this response to acknowledge that the intent was canceled.
declinationResponse
- When the user answers "no" to the question defined in promptSpecification
, Amazon Lex
responds with this response to acknowledge that the intent was canceled.public void setActive(Boolean active)
Specifies whether the intent's confirmation is sent to the user. When this field is false, confirmation and
declination responses aren't sent. If the active
field isn't specified, the default is true.
active
- Specifies whether the intent's confirmation is sent to the user. When this field is false, confirmation
and declination responses aren't sent. If the active
field isn't specified, the default is
true.public Boolean getActive()
Specifies whether the intent's confirmation is sent to the user. When this field is false, confirmation and
declination responses aren't sent. If the active
field isn't specified, the default is true.
active
field isn't specified, the default is
true.public IntentConfirmationSetting withActive(Boolean active)
Specifies whether the intent's confirmation is sent to the user. When this field is false, confirmation and
declination responses aren't sent. If the active
field isn't specified, the default is true.
active
- Specifies whether the intent's confirmation is sent to the user. When this field is false, confirmation
and declination responses aren't sent. If the active
field isn't specified, the default is
true.public Boolean isActive()
Specifies whether the intent's confirmation is sent to the user. When this field is false, confirmation and
declination responses aren't sent. If the active
field isn't specified, the default is true.
active
field isn't specified, the default is
true.public String toString()
toString
in class Object
Object.toString()
public IntentConfirmationSetting clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.