/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace LexModelsV2 { namespace Model { class UpdateBotLocaleResult { public: AWS_LEXMODELSV2_API UpdateBotLocaleResult(); AWS_LEXMODELSV2_API UpdateBotLocaleResult(const Aws::AmazonWebServiceResult& result); AWS_LEXMODELSV2_API UpdateBotLocaleResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The identifier of the bot that contains the updated locale.

*/ inline const Aws::String& GetBotId() const{ return m_botId; } /** *

The identifier of the bot that contains the updated locale.

*/ inline void SetBotId(const Aws::String& value) { m_botId = value; } /** *

The identifier of the bot that contains the updated locale.

*/ inline void SetBotId(Aws::String&& value) { m_botId = std::move(value); } /** *

The identifier of the bot that contains the updated locale.

*/ inline void SetBotId(const char* value) { m_botId.assign(value); } /** *

The identifier of the bot that contains the updated locale.

*/ inline UpdateBotLocaleResult& WithBotId(const Aws::String& value) { SetBotId(value); return *this;} /** *

The identifier of the bot that contains the updated locale.

*/ inline UpdateBotLocaleResult& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;} /** *

The identifier of the bot that contains the updated locale.

*/ inline UpdateBotLocaleResult& WithBotId(const char* value) { SetBotId(value); return *this;} /** *

The version of the bot that contains the updated locale.

*/ inline const Aws::String& GetBotVersion() const{ return m_botVersion; } /** *

The version of the bot that contains the updated locale.

*/ inline void SetBotVersion(const Aws::String& value) { m_botVersion = value; } /** *

The version of the bot that contains the updated locale.

*/ inline void SetBotVersion(Aws::String&& value) { m_botVersion = std::move(value); } /** *

The version of the bot that contains the updated locale.

*/ inline void SetBotVersion(const char* value) { m_botVersion.assign(value); } /** *

The version of the bot that contains the updated locale.

*/ inline UpdateBotLocaleResult& WithBotVersion(const Aws::String& value) { SetBotVersion(value); return *this;} /** *

The version of the bot that contains the updated locale.

*/ inline UpdateBotLocaleResult& WithBotVersion(Aws::String&& value) { SetBotVersion(std::move(value)); return *this;} /** *

The version of the bot that contains the updated locale.

*/ inline UpdateBotLocaleResult& WithBotVersion(const char* value) { SetBotVersion(value); return *this;} /** *

The language and locale of the updated bot locale.

*/ inline const Aws::String& GetLocaleId() const{ return m_localeId; } /** *

The language and locale of the updated bot locale.

*/ inline void SetLocaleId(const Aws::String& value) { m_localeId = value; } /** *

The language and locale of the updated bot locale.

*/ inline void SetLocaleId(Aws::String&& value) { m_localeId = std::move(value); } /** *

The language and locale of the updated bot locale.

*/ inline void SetLocaleId(const char* value) { m_localeId.assign(value); } /** *

The language and locale of the updated bot locale.

*/ inline UpdateBotLocaleResult& WithLocaleId(const Aws::String& value) { SetLocaleId(value); return *this;} /** *

The language and locale of the updated bot locale.

*/ inline UpdateBotLocaleResult& WithLocaleId(Aws::String&& value) { SetLocaleId(std::move(value)); return *this;} /** *

The language and locale of the updated bot locale.

*/ inline UpdateBotLocaleResult& WithLocaleId(const char* value) { SetLocaleId(value); return *this;} /** *

The updated locale name for the locale.

*/ inline const Aws::String& GetLocaleName() const{ return m_localeName; } /** *

The updated locale name for the locale.

*/ inline void SetLocaleName(const Aws::String& value) { m_localeName = value; } /** *

The updated locale name for the locale.

*/ inline void SetLocaleName(Aws::String&& value) { m_localeName = std::move(value); } /** *

The updated locale name for the locale.

*/ inline void SetLocaleName(const char* value) { m_localeName.assign(value); } /** *

The updated locale name for the locale.

*/ inline UpdateBotLocaleResult& WithLocaleName(const Aws::String& value) { SetLocaleName(value); return *this;} /** *

The updated locale name for the locale.

*/ inline UpdateBotLocaleResult& WithLocaleName(Aws::String&& value) { SetLocaleName(std::move(value)); return *this;} /** *

The updated locale name for the locale.

*/ inline UpdateBotLocaleResult& WithLocaleName(const char* value) { SetLocaleName(value); return *this;} /** *

The updated description of the locale.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The updated description of the locale.

*/ inline void SetDescription(const Aws::String& value) { m_description = value; } /** *

The updated description of the locale.

*/ inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } /** *

The updated description of the locale.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

The updated description of the locale.

*/ inline UpdateBotLocaleResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The updated description of the locale.

*/ inline UpdateBotLocaleResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The updated description of the locale.

*/ inline UpdateBotLocaleResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The updated confidence threshold for inserting the * AMAZON.FallbackIntent and AMAZON.KendraSearchIntent * intents in the list of possible intents for an utterance.

*/ inline double GetNluIntentConfidenceThreshold() const{ return m_nluIntentConfidenceThreshold; } /** *

The updated confidence threshold for inserting the * AMAZON.FallbackIntent and AMAZON.KendraSearchIntent * intents in the list of possible intents for an utterance.

*/ inline void SetNluIntentConfidenceThreshold(double value) { m_nluIntentConfidenceThreshold = value; } /** *

The updated confidence threshold for inserting the * AMAZON.FallbackIntent and AMAZON.KendraSearchIntent * intents in the list of possible intents for an utterance.

*/ inline UpdateBotLocaleResult& WithNluIntentConfidenceThreshold(double value) { SetNluIntentConfidenceThreshold(value); return *this;} /** *

The updated Amazon Polly voice to use for voice interaction with the * user.

*/ inline const VoiceSettings& GetVoiceSettings() const{ return m_voiceSettings; } /** *

The updated Amazon Polly voice to use for voice interaction with the * user.

*/ inline void SetVoiceSettings(const VoiceSettings& value) { m_voiceSettings = value; } /** *

The updated Amazon Polly voice to use for voice interaction with the * user.

*/ inline void SetVoiceSettings(VoiceSettings&& value) { m_voiceSettings = std::move(value); } /** *

The updated Amazon Polly voice to use for voice interaction with the * user.

*/ inline UpdateBotLocaleResult& WithVoiceSettings(const VoiceSettings& value) { SetVoiceSettings(value); return *this;} /** *

The updated Amazon Polly voice to use for voice interaction with the * user.

*/ inline UpdateBotLocaleResult& WithVoiceSettings(VoiceSettings&& value) { SetVoiceSettings(std::move(value)); return *this;} /** *

The current status of the locale. When the bot status is Built * the locale is ready for use.

*/ inline const BotLocaleStatus& GetBotLocaleStatus() const{ return m_botLocaleStatus; } /** *

The current status of the locale. When the bot status is Built * the locale is ready for use.

*/ inline void SetBotLocaleStatus(const BotLocaleStatus& value) { m_botLocaleStatus = value; } /** *

The current status of the locale. When the bot status is Built * the locale is ready for use.

*/ inline void SetBotLocaleStatus(BotLocaleStatus&& value) { m_botLocaleStatus = std::move(value); } /** *

The current status of the locale. When the bot status is Built * the locale is ready for use.

*/ inline UpdateBotLocaleResult& WithBotLocaleStatus(const BotLocaleStatus& value) { SetBotLocaleStatus(value); return *this;} /** *

The current status of the locale. When the bot status is Built * the locale is ready for use.

*/ inline UpdateBotLocaleResult& WithBotLocaleStatus(BotLocaleStatus&& value) { SetBotLocaleStatus(std::move(value)); return *this;} /** *

If the botLocaleStatus is Failed, the * failureReasons field lists the errors that occurred while building * the bot.

*/ inline const Aws::Vector& GetFailureReasons() const{ return m_failureReasons; } /** *

If the botLocaleStatus is Failed, the * failureReasons field lists the errors that occurred while building * the bot.

*/ inline void SetFailureReasons(const Aws::Vector& value) { m_failureReasons = value; } /** *

If the botLocaleStatus is Failed, the * failureReasons field lists the errors that occurred while building * the bot.

*/ inline void SetFailureReasons(Aws::Vector&& value) { m_failureReasons = std::move(value); } /** *

If the botLocaleStatus is Failed, the * failureReasons field lists the errors that occurred while building * the bot.

*/ inline UpdateBotLocaleResult& WithFailureReasons(const Aws::Vector& value) { SetFailureReasons(value); return *this;} /** *

If the botLocaleStatus is Failed, the * failureReasons field lists the errors that occurred while building * the bot.

*/ inline UpdateBotLocaleResult& WithFailureReasons(Aws::Vector&& value) { SetFailureReasons(std::move(value)); return *this;} /** *

If the botLocaleStatus is Failed, the * failureReasons field lists the errors that occurred while building * the bot.

*/ inline UpdateBotLocaleResult& AddFailureReasons(const Aws::String& value) { m_failureReasons.push_back(value); return *this; } /** *

If the botLocaleStatus is Failed, the * failureReasons field lists the errors that occurred while building * the bot.

*/ inline UpdateBotLocaleResult& AddFailureReasons(Aws::String&& value) { m_failureReasons.push_back(std::move(value)); return *this; } /** *

If the botLocaleStatus is Failed, the * failureReasons field lists the errors that occurred while building * the bot.

*/ inline UpdateBotLocaleResult& AddFailureReasons(const char* value) { m_failureReasons.push_back(value); return *this; } /** *

A timestamp of the date and time that the locale was created.

*/ inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; } /** *

A timestamp of the date and time that the locale was created.

*/ inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTime = value; } /** *

A timestamp of the date and time that the locale was created.

*/ inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTime = std::move(value); } /** *

A timestamp of the date and time that the locale was created.

*/ inline UpdateBotLocaleResult& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;} /** *

A timestamp of the date and time that the locale was created.

*/ inline UpdateBotLocaleResult& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;} /** *

A timestamp of the date and time that the locale was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; } /** *

A timestamp of the date and time that the locale was last updated.

*/ inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTime = value; } /** *

A timestamp of the date and time that the locale was last updated.

*/ inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTime = std::move(value); } /** *

A timestamp of the date and time that the locale was last updated.

*/ inline UpdateBotLocaleResult& WithLastUpdatedDateTime(const Aws::Utils::DateTime& value) { SetLastUpdatedDateTime(value); return *this;} /** *

A timestamp of the date and time that the locale was last updated.

*/ inline UpdateBotLocaleResult& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;} /** *

Recommended actions to take to resolve an error in the * failureReasons field.

*/ inline const Aws::Vector& GetRecommendedActions() const{ return m_recommendedActions; } /** *

Recommended actions to take to resolve an error in the * failureReasons field.

*/ inline void SetRecommendedActions(const Aws::Vector& value) { m_recommendedActions = value; } /** *

Recommended actions to take to resolve an error in the * failureReasons field.

*/ inline void SetRecommendedActions(Aws::Vector&& value) { m_recommendedActions = std::move(value); } /** *

Recommended actions to take to resolve an error in the * failureReasons field.

*/ inline UpdateBotLocaleResult& WithRecommendedActions(const Aws::Vector& value) { SetRecommendedActions(value); return *this;} /** *

Recommended actions to take to resolve an error in the * failureReasons field.

*/ inline UpdateBotLocaleResult& WithRecommendedActions(Aws::Vector&& value) { SetRecommendedActions(std::move(value)); return *this;} /** *

Recommended actions to take to resolve an error in the * failureReasons field.

*/ inline UpdateBotLocaleResult& AddRecommendedActions(const Aws::String& value) { m_recommendedActions.push_back(value); return *this; } /** *

Recommended actions to take to resolve an error in the * failureReasons field.

*/ inline UpdateBotLocaleResult& AddRecommendedActions(Aws::String&& value) { m_recommendedActions.push_back(std::move(value)); return *this; } /** *

Recommended actions to take to resolve an error in the * failureReasons field.

*/ inline UpdateBotLocaleResult& AddRecommendedActions(const char* value) { m_recommendedActions.push_back(value); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline UpdateBotLocaleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateBotLocaleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateBotLocaleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_botId; Aws::String m_botVersion; Aws::String m_localeId; Aws::String m_localeName; Aws::String m_description; double m_nluIntentConfidenceThreshold; VoiceSettings m_voiceSettings; BotLocaleStatus m_botLocaleStatus; Aws::Vector m_failureReasons; Aws::Utils::DateTime m_creationDateTime; Aws::Utils::DateTime m_lastUpdatedDateTime; Aws::Vector m_recommendedActions; Aws::String m_requestId; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws