/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace LexModelsV2 { namespace Model { /** *

Provides a prompt for making sure that the user is ready for the intent to be * fulfilled.

See Also:

AWS * API Reference

*/ class AWS_LEXMODELSV2_API IntentConfirmationSetting { public: IntentConfirmationSetting(); IntentConfirmationSetting(Aws::Utils::Json::JsonView jsonValue); IntentConfirmationSetting& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

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.

*/ inline const PromptSpecification& GetPromptSpecification() const{ return m_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.

*/ inline bool PromptSpecificationHasBeenSet() const { return m_promptSpecificationHasBeenSet; } /** *

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.

*/ inline void SetPromptSpecification(const PromptSpecification& value) { m_promptSpecificationHasBeenSet = true; m_promptSpecification = value; } /** *

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.

*/ inline void SetPromptSpecification(PromptSpecification&& value) { m_promptSpecificationHasBeenSet = true; m_promptSpecification = std::move(value); } /** *

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.

*/ inline IntentConfirmationSetting& WithPromptSpecification(const PromptSpecification& value) { SetPromptSpecification(value); return *this;} /** *

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.

*/ inline IntentConfirmationSetting& WithPromptSpecification(PromptSpecification&& value) { SetPromptSpecification(std::move(value)); return *this;} /** *

When the user answers "no" to the question defined in * promptSpecification, Amazon Lex responds with this response to * acknowledge that the intent was canceled.

*/ inline const ResponseSpecification& GetDeclinationResponse() const{ return m_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.

*/ inline bool DeclinationResponseHasBeenSet() const { return m_declinationResponseHasBeenSet; } /** *

When the user answers "no" to the question defined in * promptSpecification, Amazon Lex responds with this response to * acknowledge that the intent was canceled.

*/ inline void SetDeclinationResponse(const ResponseSpecification& value) { m_declinationResponseHasBeenSet = true; m_declinationResponse = value; } /** *

When the user answers "no" to the question defined in * promptSpecification, Amazon Lex responds with this response to * acknowledge that the intent was canceled.

*/ inline void SetDeclinationResponse(ResponseSpecification&& value) { m_declinationResponseHasBeenSet = true; m_declinationResponse = std::move(value); } /** *

When the user answers "no" to the question defined in * promptSpecification, Amazon Lex responds with this response to * acknowledge that the intent was canceled.

*/ inline IntentConfirmationSetting& WithDeclinationResponse(const ResponseSpecification& value) { SetDeclinationResponse(value); return *this;} /** *

When the user answers "no" to the question defined in * promptSpecification, Amazon Lex responds with this response to * acknowledge that the intent was canceled.

*/ inline IntentConfirmationSetting& WithDeclinationResponse(ResponseSpecification&& value) { SetDeclinationResponse(std::move(value)); return *this;} /** *

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.

*/ inline bool GetActive() const{ return m_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.

*/ inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; } /** *

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.

*/ inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; } /** *

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.

*/ inline IntentConfirmationSetting& WithActive(bool value) { SetActive(value); return *this;} private: PromptSpecification m_promptSpecification; bool m_promptSpecificationHasBeenSet; ResponseSpecification m_declinationResponse; bool m_declinationResponseHasBeenSet; bool m_active; bool m_activeHasBeenSet; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws