AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CustomVocabularyItem.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LexModelsV2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_LEXMODELSV2_API CustomVocabularyItem() = default;
36 AWS_LEXMODELSV2_API CustomVocabularyItem(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetItemId() const { return m_itemId; }
47 inline bool ItemIdHasBeenSet() const { return m_itemIdHasBeenSet; }
48 template<typename ItemIdT = Aws::String>
49 void SetItemId(ItemIdT&& value) { m_itemIdHasBeenSet = true; m_itemId = std::forward<ItemIdT>(value); }
50 template<typename ItemIdT = Aws::String>
51 CustomVocabularyItem& WithItemId(ItemIdT&& value) { SetItemId(std::forward<ItemIdT>(value)); return *this;}
53
55
59 inline const Aws::String& GetPhrase() const { return m_phrase; }
60 inline bool PhraseHasBeenSet() const { return m_phraseHasBeenSet; }
61 template<typename PhraseT = Aws::String>
62 void SetPhrase(PhraseT&& value) { m_phraseHasBeenSet = true; m_phrase = std::forward<PhraseT>(value); }
63 template<typename PhraseT = Aws::String>
64 CustomVocabularyItem& WithPhrase(PhraseT&& value) { SetPhrase(std::forward<PhraseT>(value)); return *this;}
66
68
72 inline int GetWeight() const { return m_weight; }
73 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
74 inline void SetWeight(int value) { m_weightHasBeenSet = true; m_weight = value; }
75 inline CustomVocabularyItem& WithWeight(int value) { SetWeight(value); return *this;}
77
79
83 inline const Aws::String& GetDisplayAs() const { return m_displayAs; }
84 inline bool DisplayAsHasBeenSet() const { return m_displayAsHasBeenSet; }
85 template<typename DisplayAsT = Aws::String>
86 void SetDisplayAs(DisplayAsT&& value) { m_displayAsHasBeenSet = true; m_displayAs = std::forward<DisplayAsT>(value); }
87 template<typename DisplayAsT = Aws::String>
88 CustomVocabularyItem& WithDisplayAs(DisplayAsT&& value) { SetDisplayAs(std::forward<DisplayAsT>(value)); return *this;}
90 private:
91
92 Aws::String m_itemId;
93 bool m_itemIdHasBeenSet = false;
94
95 Aws::String m_phrase;
96 bool m_phraseHasBeenSet = false;
97
98 int m_weight{0};
99 bool m_weightHasBeenSet = false;
100
101 Aws::String m_displayAs;
102 bool m_displayAsHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace LexModelsV2
107} // namespace Aws
AWS_LEXMODELSV2_API CustomVocabularyItem()=default
CustomVocabularyItem & WithWeight(int value)
CustomVocabularyItem & WithPhrase(PhraseT &&value)
AWS_LEXMODELSV2_API CustomVocabularyItem & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomVocabularyItem & WithItemId(ItemIdT &&value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
CustomVocabularyItem & WithDisplayAs(DisplayAsT &&value)
AWS_LEXMODELSV2_API CustomVocabularyItem(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue