AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
Vocabulary.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/VocabularyLanguageCode.h>
9#include <aws/connect/model/VocabularyState.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Connect {
24namespace Model {
25
32 public:
33 AWS_CONNECT_API Vocabulary() = default;
34 AWS_CONNECT_API Vocabulary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONNECT_API Vocabulary& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 Vocabulary& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetId() const { return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 template <typename IdT = Aws::String>
63 void SetId(IdT&& value) {
64 m_idHasBeenSet = true;
65 m_id = std::forward<IdT>(value);
66 }
67 template <typename IdT = Aws::String>
68 Vocabulary& WithId(IdT&& value) {
69 SetId(std::forward<IdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetArn() const { return m_arn; }
79 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
80 template <typename ArnT = Aws::String>
81 void SetArn(ArnT&& value) {
82 m_arnHasBeenSet = true;
83 m_arn = std::forward<ArnT>(value);
84 }
85 template <typename ArnT = Aws::String>
86 Vocabulary& WithArn(ArnT&& value) {
87 SetArn(std::forward<ArnT>(value));
88 return *this;
89 }
91
93
99 inline VocabularyLanguageCode GetLanguageCode() const { return m_languageCode; }
100 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
102 m_languageCodeHasBeenSet = true;
103 m_languageCode = value;
104 }
106 SetLanguageCode(value);
107 return *this;
108 }
110
112
115 inline VocabularyState GetState() const { return m_state; }
116 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
117 inline void SetState(VocabularyState value) {
118 m_stateHasBeenSet = true;
119 m_state = value;
120 }
122 SetState(value);
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
132 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
133 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
134 void SetLastModifiedTime(LastModifiedTimeT&& value) {
135 m_lastModifiedTimeHasBeenSet = true;
136 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
137 }
138 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
139 Vocabulary& WithLastModifiedTime(LastModifiedTimeT&& value) {
140 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
150 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
151 template <typename FailureReasonT = Aws::String>
152 void SetFailureReason(FailureReasonT&& value) {
153 m_failureReasonHasBeenSet = true;
154 m_failureReason = std::forward<FailureReasonT>(value);
155 }
156 template <typename FailureReasonT = Aws::String>
157 Vocabulary& WithFailureReason(FailureReasonT&& value) {
158 SetFailureReason(std::forward<FailureReasonT>(value));
159 return *this;
160 }
162
164
173 inline const Aws::String& GetContent() const { return m_content; }
174 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
175 template <typename ContentT = Aws::String>
176 void SetContent(ContentT&& value) {
177 m_contentHasBeenSet = true;
178 m_content = std::forward<ContentT>(value);
179 }
180 template <typename ContentT = Aws::String>
181 Vocabulary& WithContent(ContentT&& value) {
182 SetContent(std::forward<ContentT>(value));
183 return *this;
184 }
186
188
192 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
193 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
194 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
195 void SetTags(TagsT&& value) {
196 m_tagsHasBeenSet = true;
197 m_tags = std::forward<TagsT>(value);
198 }
199 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
200 Vocabulary& WithTags(TagsT&& value) {
201 SetTags(std::forward<TagsT>(value));
202 return *this;
203 }
204 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
205 Vocabulary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
206 m_tagsHasBeenSet = true;
207 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
208 return *this;
209 }
211 private:
212 Aws::String m_name;
213
214 Aws::String m_id;
215
216 Aws::String m_arn;
217
219
221
222 Aws::Utils::DateTime m_lastModifiedTime{};
223
224 Aws::String m_failureReason;
225
226 Aws::String m_content;
227
229 bool m_nameHasBeenSet = false;
230 bool m_idHasBeenSet = false;
231 bool m_arnHasBeenSet = false;
232 bool m_languageCodeHasBeenSet = false;
233 bool m_stateHasBeenSet = false;
234 bool m_lastModifiedTimeHasBeenSet = false;
235 bool m_failureReasonHasBeenSet = false;
236 bool m_contentHasBeenSet = false;
237 bool m_tagsHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace Connect
242} // namespace Aws
Vocabulary & WithState(VocabularyState value)
Definition Vocabulary.h:121
void SetTags(TagsT &&value)
Definition Vocabulary.h:195
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Vocabulary.h:131
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Vocabulary.h:192
Vocabulary & WithName(NameT &&value)
Definition Vocabulary.h:50
Vocabulary & WithId(IdT &&value)
Definition Vocabulary.h:68
void SetState(VocabularyState value)
Definition Vocabulary.h:117
VocabularyState GetState() const
Definition Vocabulary.h:115
Vocabulary & WithLanguageCode(VocabularyLanguageCode value)
Definition Vocabulary.h:105
Vocabulary & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Vocabulary.h:139
void SetName(NameT &&value)
Definition Vocabulary.h:45
const Aws::String & GetArn() const
Definition Vocabulary.h:78
void SetArn(ArnT &&value)
Definition Vocabulary.h:81
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API Vocabulary(Aws::Utils::Json::JsonView jsonValue)
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition Vocabulary.h:134
bool LastModifiedTimeHasBeenSet() const
Definition Vocabulary.h:132
VocabularyLanguageCode GetLanguageCode() const
Definition Vocabulary.h:99
const Aws::String & GetFailureReason() const
Definition Vocabulary.h:149
void SetLanguageCode(VocabularyLanguageCode value)
Definition Vocabulary.h:101
Vocabulary & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Vocabulary.h:205
AWS_CONNECT_API Vocabulary()=default
const Aws::String & GetName() const
Definition Vocabulary.h:42
const Aws::String & GetId() const
Definition Vocabulary.h:60
const Aws::String & GetContent() const
Definition Vocabulary.h:173
AWS_CONNECT_API Vocabulary & operator=(Aws::Utils::Json::JsonView jsonValue)
Vocabulary & WithArn(ArnT &&value)
Definition Vocabulary.h:86
void SetFailureReason(FailureReasonT &&value)
Definition Vocabulary.h:152
Vocabulary & WithContent(ContentT &&value)
Definition Vocabulary.h:181
void SetContent(ContentT &&value)
Definition Vocabulary.h:176
Vocabulary & WithTags(TagsT &&value)
Definition Vocabulary.h:200
Vocabulary & WithFailureReason(FailureReasonT &&value)
Definition Vocabulary.h:157
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue