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

The unique custom vocabulary item from the custom vocabulary * list.

See Also:

AWS * API Reference

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

The unique item identifer for the custom vocabulary item from the custom * vocabulary list.

*/ inline const Aws::String& GetItemId() const{ return m_itemId; } /** *

The unique item identifer for the custom vocabulary item from the custom * vocabulary list.

*/ inline bool ItemIdHasBeenSet() const { return m_itemIdHasBeenSet; } /** *

The unique item identifer for the custom vocabulary item from the custom * vocabulary list.

*/ inline void SetItemId(const Aws::String& value) { m_itemIdHasBeenSet = true; m_itemId = value; } /** *

The unique item identifer for the custom vocabulary item from the custom * vocabulary list.

*/ inline void SetItemId(Aws::String&& value) { m_itemIdHasBeenSet = true; m_itemId = std::move(value); } /** *

The unique item identifer for the custom vocabulary item from the custom * vocabulary list.

*/ inline void SetItemId(const char* value) { m_itemIdHasBeenSet = true; m_itemId.assign(value); } /** *

The unique item identifer for the custom vocabulary item from the custom * vocabulary list.

*/ inline CustomVocabularyItem& WithItemId(const Aws::String& value) { SetItemId(value); return *this;} /** *

The unique item identifer for the custom vocabulary item from the custom * vocabulary list.

*/ inline CustomVocabularyItem& WithItemId(Aws::String&& value) { SetItemId(std::move(value)); return *this;} /** *

The unique item identifer for the custom vocabulary item from the custom * vocabulary list.

*/ inline CustomVocabularyItem& WithItemId(const char* value) { SetItemId(value); return *this;} /** *

The unique phrase for the custom vocabulary item from the custom vocabulary * list.

*/ inline const Aws::String& GetPhrase() const{ return m_phrase; } /** *

The unique phrase for the custom vocabulary item from the custom vocabulary * list.

*/ inline bool PhraseHasBeenSet() const { return m_phraseHasBeenSet; } /** *

The unique phrase for the custom vocabulary item from the custom vocabulary * list.

*/ inline void SetPhrase(const Aws::String& value) { m_phraseHasBeenSet = true; m_phrase = value; } /** *

The unique phrase for the custom vocabulary item from the custom vocabulary * list.

*/ inline void SetPhrase(Aws::String&& value) { m_phraseHasBeenSet = true; m_phrase = std::move(value); } /** *

The unique phrase for the custom vocabulary item from the custom vocabulary * list.

*/ inline void SetPhrase(const char* value) { m_phraseHasBeenSet = true; m_phrase.assign(value); } /** *

The unique phrase for the custom vocabulary item from the custom vocabulary * list.

*/ inline CustomVocabularyItem& WithPhrase(const Aws::String& value) { SetPhrase(value); return *this;} /** *

The unique phrase for the custom vocabulary item from the custom vocabulary * list.

*/ inline CustomVocabularyItem& WithPhrase(Aws::String&& value) { SetPhrase(std::move(value)); return *this;} /** *

The unique phrase for the custom vocabulary item from the custom vocabulary * list.

*/ inline CustomVocabularyItem& WithPhrase(const char* value) { SetPhrase(value); return *this;} /** *

The weight assigned for the custom vocabulary item from the custom vocabulary * list.

*/ inline int GetWeight() const{ return m_weight; } /** *

The weight assigned for the custom vocabulary item from the custom vocabulary * list.

*/ inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; } /** *

The weight assigned for the custom vocabulary item from the custom vocabulary * list.

*/ inline void SetWeight(int value) { m_weightHasBeenSet = true; m_weight = value; } /** *

The weight assigned for the custom vocabulary item from the custom vocabulary * list.

*/ inline CustomVocabularyItem& WithWeight(int value) { SetWeight(value); return *this;} /** *

The DisplayAs value for the custom vocabulary item from the custom vocabulary * list.

*/ inline const Aws::String& GetDisplayAs() const{ return m_displayAs; } /** *

The DisplayAs value for the custom vocabulary item from the custom vocabulary * list.

*/ inline bool DisplayAsHasBeenSet() const { return m_displayAsHasBeenSet; } /** *

The DisplayAs value for the custom vocabulary item from the custom vocabulary * list.

*/ inline void SetDisplayAs(const Aws::String& value) { m_displayAsHasBeenSet = true; m_displayAs = value; } /** *

The DisplayAs value for the custom vocabulary item from the custom vocabulary * list.

*/ inline void SetDisplayAs(Aws::String&& value) { m_displayAsHasBeenSet = true; m_displayAs = std::move(value); } /** *

The DisplayAs value for the custom vocabulary item from the custom vocabulary * list.

*/ inline void SetDisplayAs(const char* value) { m_displayAsHasBeenSet = true; m_displayAs.assign(value); } /** *

The DisplayAs value for the custom vocabulary item from the custom vocabulary * list.

*/ inline CustomVocabularyItem& WithDisplayAs(const Aws::String& value) { SetDisplayAs(value); return *this;} /** *

The DisplayAs value for the custom vocabulary item from the custom vocabulary * list.

*/ inline CustomVocabularyItem& WithDisplayAs(Aws::String&& value) { SetDisplayAs(std::move(value)); return *this;} /** *

The DisplayAs value for the custom vocabulary item from the custom vocabulary * list.

*/ inline CustomVocabularyItem& WithDisplayAs(const char* value) { SetDisplayAs(value); return *this;} private: Aws::String m_itemId; bool m_itemIdHasBeenSet = false; Aws::String m_phrase; bool m_phraseHasBeenSet = false; int m_weight; bool m_weightHasBeenSet = false; Aws::String m_displayAs; bool m_displayAsHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws