/** * 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 LexModelBuildingService { namespace Model { /** *

Each slot type can have a set of values. Each enumeration value represents a * value the slot type can take.

For example, a pizza ordering bot could * have a slot type that specifies the type of crust that the pizza should have. * The slot type could include the values

  • thick

  • *

    thin

  • stuffed

See Also:

AWS * API Reference

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

The value of the slot type.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The value of the slot type.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value of the slot type.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of the slot type.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value of the slot type.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The value of the slot type.

*/ inline EnumerationValue& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The value of the slot type.

*/ inline EnumerationValue& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The value of the slot type.

*/ inline EnumerationValue& WithValue(const char* value) { SetValue(value); return *this;} /** *

Additional values related to the slot type value.

*/ inline const Aws::Vector& GetSynonyms() const{ return m_synonyms; } /** *

Additional values related to the slot type value.

*/ inline bool SynonymsHasBeenSet() const { return m_synonymsHasBeenSet; } /** *

Additional values related to the slot type value.

*/ inline void SetSynonyms(const Aws::Vector& value) { m_synonymsHasBeenSet = true; m_synonyms = value; } /** *

Additional values related to the slot type value.

*/ inline void SetSynonyms(Aws::Vector&& value) { m_synonymsHasBeenSet = true; m_synonyms = std::move(value); } /** *

Additional values related to the slot type value.

*/ inline EnumerationValue& WithSynonyms(const Aws::Vector& value) { SetSynonyms(value); return *this;} /** *

Additional values related to the slot type value.

*/ inline EnumerationValue& WithSynonyms(Aws::Vector&& value) { SetSynonyms(std::move(value)); return *this;} /** *

Additional values related to the slot type value.

*/ inline EnumerationValue& AddSynonyms(const Aws::String& value) { m_synonymsHasBeenSet = true; m_synonyms.push_back(value); return *this; } /** *

Additional values related to the slot type value.

*/ inline EnumerationValue& AddSynonyms(Aws::String&& value) { m_synonymsHasBeenSet = true; m_synonyms.push_back(std::move(value)); return *this; } /** *

Additional values related to the slot type value.

*/ inline EnumerationValue& AddSynonyms(const char* value) { m_synonymsHasBeenSet = true; m_synonyms.push_back(value); return *this; } private: Aws::String m_value; bool m_valueHasBeenSet = false; Aws::Vector m_synonyms; bool m_synonymsHasBeenSet = false; }; } // namespace Model } // namespace LexModelBuildingService } // namespace Aws