#[non_exhaustive]pub struct IntentConfirmationSetting { /* private fields */ }Expand description
Provides a prompt for making sure that the user is ready for the intent to be fulfilled.
Implementations§
source§impl IntentConfirmationSetting
impl IntentConfirmationSetting
sourcepub fn prompt_specification(&self) -> Option<&PromptSpecification>
pub fn prompt_specification(&self) -> Option<&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.
sourcepub fn declination_response(&self) -> Option<&ResponseSpecification>
pub fn declination_response(&self) -> Option<&ResponseSpecification>
When the user answers "no" to the question defined in promptSpecification, Amazon Lex responds with this response to acknowledge that the intent was canceled.
sourcepub fn active(&self) -> Option<bool>
pub fn active(&self) -> Option<bool>
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.
sourcepub fn confirmation_response(&self) -> Option<&ResponseSpecification>
pub fn confirmation_response(&self) -> Option<&ResponseSpecification>
Specifies a list of message groups that Amazon Lex uses to respond the user input.
sourcepub fn confirmation_next_step(&self) -> Option<&DialogState>
pub fn confirmation_next_step(&self) -> Option<&DialogState>
Specifies the next step that the bot executes when the customer confirms the intent.
sourcepub fn confirmation_conditional(&self) -> Option<&ConditionalSpecification>
pub fn confirmation_conditional(&self) -> Option<&ConditionalSpecification>
A list of conditional branches to evaluate after the intent is closed.
sourcepub fn declination_next_step(&self) -> Option<&DialogState>
pub fn declination_next_step(&self) -> Option<&DialogState>
Specifies the next step that the bot executes when the customer declines the intent.
sourcepub fn declination_conditional(&self) -> Option<&ConditionalSpecification>
pub fn declination_conditional(&self) -> Option<&ConditionalSpecification>
A list of conditional branches to evaluate after the intent is declined.
sourcepub fn failure_response(&self) -> Option<&ResponseSpecification>
pub fn failure_response(&self) -> Option<&ResponseSpecification>
Specifies a list of message groups that Amazon Lex uses to respond the user input.
sourcepub fn failure_next_step(&self) -> Option<&DialogState>
pub fn failure_next_step(&self) -> Option<&DialogState>
The next step to take in the conversation if the confirmation step fails.
sourcepub fn failure_conditional(&self) -> Option<&ConditionalSpecification>
pub fn failure_conditional(&self) -> Option<&ConditionalSpecification>
Provides a list of conditional branches. Branches are evaluated in the order that they are entered in the list. The first branch with a condition that evaluates to true is executed. The last branch in the list is the default branch. The default branch should not have any condition expression. The default branch is executed if no other branch has a matching condition.
sourcepub fn code_hook(&self) -> Option<&DialogCodeHookInvocationSetting>
pub fn code_hook(&self) -> Option<&DialogCodeHookInvocationSetting>
The DialogCodeHookInvocationSetting object associated with intent's confirmation step. The dialog code hook is triggered based on these invocation settings when the confirmation next step or declination next step or failure next step is InvokeDialogCodeHook.
sourcepub fn elicitation_code_hook(
&self
) -> Option<&ElicitationCodeHookInvocationSetting>
pub fn elicitation_code_hook(
&self
) -> Option<&ElicitationCodeHookInvocationSetting>
The DialogCodeHookInvocationSetting used when the code hook is invoked during confirmation prompt retries.
source§impl IntentConfirmationSetting
impl IntentConfirmationSetting
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture IntentConfirmationSetting.
Trait Implementations§
source§impl Clone for IntentConfirmationSetting
impl Clone for IntentConfirmationSetting
source§fn clone(&self) -> IntentConfirmationSetting
fn clone(&self) -> IntentConfirmationSetting
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for IntentConfirmationSetting
impl Debug for IntentConfirmationSetting
source§impl PartialEq<IntentConfirmationSetting> for IntentConfirmationSetting
impl PartialEq<IntentConfirmationSetting> for IntentConfirmationSetting
source§fn eq(&self, other: &IntentConfirmationSetting) -> bool
fn eq(&self, other: &IntentConfirmationSetting) -> bool
self and other values to be equal, and is used
by ==.