AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetItemId(const Aws::String& value) { m_itemIdHasBeenSet = true; m_itemId = value; }
49 inline void SetItemId(Aws::String&& value) { m_itemIdHasBeenSet = true; m_itemId = std::move(value); }
50 inline void SetItemId(const char* value) { m_itemIdHasBeenSet = true; m_itemId.assign(value); }
51 inline CustomVocabularyItem& WithItemId(const Aws::String& value) { SetItemId(value); return *this;}
52 inline CustomVocabularyItem& WithItemId(Aws::String&& value) { SetItemId(std::move(value)); return *this;}
53 inline CustomVocabularyItem& WithItemId(const char* value) { SetItemId(value); return *this;}
55
57
61 inline const Aws::String& GetPhrase() const{ return m_phrase; }
62 inline bool PhraseHasBeenSet() const { return m_phraseHasBeenSet; }
63 inline void SetPhrase(const Aws::String& value) { m_phraseHasBeenSet = true; m_phrase = value; }
64 inline void SetPhrase(Aws::String&& value) { m_phraseHasBeenSet = true; m_phrase = std::move(value); }
65 inline void SetPhrase(const char* value) { m_phraseHasBeenSet = true; m_phrase.assign(value); }
66 inline CustomVocabularyItem& WithPhrase(const Aws::String& value) { SetPhrase(value); return *this;}
67 inline CustomVocabularyItem& WithPhrase(Aws::String&& value) { SetPhrase(std::move(value)); return *this;}
68 inline CustomVocabularyItem& WithPhrase(const char* value) { SetPhrase(value); return *this;}
70
72
76 inline int GetWeight() const{ return m_weight; }
77 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
78 inline void SetWeight(int value) { m_weightHasBeenSet = true; m_weight = value; }
79 inline CustomVocabularyItem& WithWeight(int value) { SetWeight(value); return *this;}
81
83
87 inline const Aws::String& GetDisplayAs() const{ return m_displayAs; }
88 inline bool DisplayAsHasBeenSet() const { return m_displayAsHasBeenSet; }
89 inline void SetDisplayAs(const Aws::String& value) { m_displayAsHasBeenSet = true; m_displayAs = value; }
90 inline void SetDisplayAs(Aws::String&& value) { m_displayAsHasBeenSet = true; m_displayAs = std::move(value); }
91 inline void SetDisplayAs(const char* value) { m_displayAsHasBeenSet = true; m_displayAs.assign(value); }
92 inline CustomVocabularyItem& WithDisplayAs(const Aws::String& value) { SetDisplayAs(value); return *this;}
93 inline CustomVocabularyItem& WithDisplayAs(Aws::String&& value) { SetDisplayAs(std::move(value)); return *this;}
94 inline CustomVocabularyItem& WithDisplayAs(const char* value) { SetDisplayAs(value); return *this;}
96 private:
97
98 Aws::String m_itemId;
99 bool m_itemIdHasBeenSet = false;
100
101 Aws::String m_phrase;
102 bool m_phraseHasBeenSet = false;
103
104 int m_weight;
105 bool m_weightHasBeenSet = false;
106
107 Aws::String m_displayAs;
108 bool m_displayAsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace LexModelsV2
113} // namespace Aws
CustomVocabularyItem & WithItemId(const Aws::String &value)
CustomVocabularyItem & WithWeight(int value)
CustomVocabularyItem & WithItemId(Aws::String &&value)
AWS_LEXMODELSV2_API CustomVocabularyItem & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomVocabularyItem & WithPhrase(Aws::String &&value)
CustomVocabularyItem & WithPhrase(const char *value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
CustomVocabularyItem & WithItemId(const char *value)
CustomVocabularyItem & WithPhrase(const Aws::String &value)
AWS_LEXMODELSV2_API CustomVocabularyItem(Aws::Utils::Json::JsonView jsonValue)
CustomVocabularyItem & WithDisplayAs(const char *value)
CustomVocabularyItem & WithDisplayAs(Aws::String &&value)
CustomVocabularyItem & WithDisplayAs(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue