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

Specifies settings that are unique to a locale. For example, you can use * different Lambda function depending on the bot's locale.

See * Also:

AWS * API Reference

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

Determines whether the locale is enabled for the bot. If the value is * false, the locale isn't available for use.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

Determines whether the locale is enabled for the bot. If the value is * false, the locale isn't available for use.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

Determines whether the locale is enabled for the bot. If the value is * false, the locale isn't available for use.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

Determines whether the locale is enabled for the bot. If the value is * false, the locale isn't available for use.

*/ inline BotAliasLocaleSettings& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

Specifies the Lambda function that should be used in the locale.

*/ inline const CodeHookSpecification& GetCodeHookSpecification() const{ return m_codeHookSpecification; } /** *

Specifies the Lambda function that should be used in the locale.

*/ inline bool CodeHookSpecificationHasBeenSet() const { return m_codeHookSpecificationHasBeenSet; } /** *

Specifies the Lambda function that should be used in the locale.

*/ inline void SetCodeHookSpecification(const CodeHookSpecification& value) { m_codeHookSpecificationHasBeenSet = true; m_codeHookSpecification = value; } /** *

Specifies the Lambda function that should be used in the locale.

*/ inline void SetCodeHookSpecification(CodeHookSpecification&& value) { m_codeHookSpecificationHasBeenSet = true; m_codeHookSpecification = std::move(value); } /** *

Specifies the Lambda function that should be used in the locale.

*/ inline BotAliasLocaleSettings& WithCodeHookSpecification(const CodeHookSpecification& value) { SetCodeHookSpecification(value); return *this;} /** *

Specifies the Lambda function that should be used in the locale.

*/ inline BotAliasLocaleSettings& WithCodeHookSpecification(CodeHookSpecification&& value) { SetCodeHookSpecification(std::move(value)); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; CodeHookSpecification m_codeHookSpecification; bool m_codeHookSpecificationHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws