/** * 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 { /** *

Provides information about the external source of the slot type's * definition.

See Also:

AWS * API Reference

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

Settings required for a slot type based on a grammar that you provide.

*/ inline const GrammarSlotTypeSetting& GetGrammarSlotTypeSetting() const{ return m_grammarSlotTypeSetting; } /** *

Settings required for a slot type based on a grammar that you provide.

*/ inline bool GrammarSlotTypeSettingHasBeenSet() const { return m_grammarSlotTypeSettingHasBeenSet; } /** *

Settings required for a slot type based on a grammar that you provide.

*/ inline void SetGrammarSlotTypeSetting(const GrammarSlotTypeSetting& value) { m_grammarSlotTypeSettingHasBeenSet = true; m_grammarSlotTypeSetting = value; } /** *

Settings required for a slot type based on a grammar that you provide.

*/ inline void SetGrammarSlotTypeSetting(GrammarSlotTypeSetting&& value) { m_grammarSlotTypeSettingHasBeenSet = true; m_grammarSlotTypeSetting = std::move(value); } /** *

Settings required for a slot type based on a grammar that you provide.

*/ inline ExternalSourceSetting& WithGrammarSlotTypeSetting(const GrammarSlotTypeSetting& value) { SetGrammarSlotTypeSetting(value); return *this;} /** *

Settings required for a slot type based on a grammar that you provide.

*/ inline ExternalSourceSetting& WithGrammarSlotTypeSetting(GrammarSlotTypeSetting&& value) { SetGrammarSlotTypeSetting(std::move(value)); return *this;} private: GrammarSlotTypeSetting m_grammarSlotTypeSetting; bool m_grammarSlotTypeSettingHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws