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

Defines a list of values that Amazon Lex should use as the default value for * a slot.

See Also:

AWS * API Reference

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

A list of default values. Amazon Lex chooses the default value to use in the * order that they are presented in the list.

*/ inline const Aws::Vector& GetDefaultValueList() const{ return m_defaultValueList; } /** *

A list of default values. Amazon Lex chooses the default value to use in the * order that they are presented in the list.

*/ inline bool DefaultValueListHasBeenSet() const { return m_defaultValueListHasBeenSet; } /** *

A list of default values. Amazon Lex chooses the default value to use in the * order that they are presented in the list.

*/ inline void SetDefaultValueList(const Aws::Vector& value) { m_defaultValueListHasBeenSet = true; m_defaultValueList = value; } /** *

A list of default values. Amazon Lex chooses the default value to use in the * order that they are presented in the list.

*/ inline void SetDefaultValueList(Aws::Vector&& value) { m_defaultValueListHasBeenSet = true; m_defaultValueList = std::move(value); } /** *

A list of default values. Amazon Lex chooses the default value to use in the * order that they are presented in the list.

*/ inline SlotDefaultValueSpecification& WithDefaultValueList(const Aws::Vector& value) { SetDefaultValueList(value); return *this;} /** *

A list of default values. Amazon Lex chooses the default value to use in the * order that they are presented in the list.

*/ inline SlotDefaultValueSpecification& WithDefaultValueList(Aws::Vector&& value) { SetDefaultValueList(std::move(value)); return *this;} /** *

A list of default values. Amazon Lex chooses the default value to use in the * order that they are presented in the list.

*/ inline SlotDefaultValueSpecification& AddDefaultValueList(const SlotDefaultValue& value) { m_defaultValueListHasBeenSet = true; m_defaultValueList.push_back(value); return *this; } /** *

A list of default values. Amazon Lex chooses the default value to use in the * order that they are presented in the list.

*/ inline SlotDefaultValueSpecification& AddDefaultValueList(SlotDefaultValue&& value) { m_defaultValueListHasBeenSet = true; m_defaultValueList.push_back(std::move(value)); return *this; } private: Aws::Vector m_defaultValueList; bool m_defaultValueListHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws