AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
CustomVocabularyItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LexModelsV2 {
20namespace Model {
21
29 public:
30 AWS_LEXMODELSV2_API CustomVocabularyItem() = default;
31 AWS_LEXMODELSV2_API CustomVocabularyItem(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetItemId() const { return m_itemId; }
41 inline bool ItemIdHasBeenSet() const { return m_itemIdHasBeenSet; }
42 template <typename ItemIdT = Aws::String>
43 void SetItemId(ItemIdT&& value) {
44 m_itemIdHasBeenSet = true;
45 m_itemId = std::forward<ItemIdT>(value);
46 }
47 template <typename ItemIdT = Aws::String>
48 CustomVocabularyItem& WithItemId(ItemIdT&& value) {
49 SetItemId(std::forward<ItemIdT>(value));
50 return *this;
51 }
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) {
63 m_phraseHasBeenSet = true;
64 m_phrase = std::forward<PhraseT>(value);
65 }
66 template <typename PhraseT = Aws::String>
67 CustomVocabularyItem& WithPhrase(PhraseT&& value) {
68 SetPhrase(std::forward<PhraseT>(value));
69 return *this;
70 }
72
74
78 inline int GetWeight() const { return m_weight; }
79 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
80 inline void SetWeight(int value) {
81 m_weightHasBeenSet = true;
82 m_weight = value;
83 }
84 inline CustomVocabularyItem& WithWeight(int value) {
85 SetWeight(value);
86 return *this;
87 }
89
91
95 inline const Aws::String& GetDisplayAs() const { return m_displayAs; }
96 inline bool DisplayAsHasBeenSet() const { return m_displayAsHasBeenSet; }
97 template <typename DisplayAsT = Aws::String>
98 void SetDisplayAs(DisplayAsT&& value) {
99 m_displayAsHasBeenSet = true;
100 m_displayAs = std::forward<DisplayAsT>(value);
101 }
102 template <typename DisplayAsT = Aws::String>
103 CustomVocabularyItem& WithDisplayAs(DisplayAsT&& value) {
104 SetDisplayAs(std::forward<DisplayAsT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_itemId;
110
111 Aws::String m_phrase;
112
113 int m_weight{0};
114
115 Aws::String m_displayAs;
116 bool m_itemIdHasBeenSet = false;
117 bool m_phraseHasBeenSet = false;
118 bool m_weightHasBeenSet = false;
119 bool m_displayAsHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace LexModelsV2
124} // 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