AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Vocabulary.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connect/model/VocabularyLanguageCode.h>
10#include <aws/connect/model/VocabularyState.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Connect
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_CONNECT_API Vocabulary();
39 AWS_CONNECT_API Vocabulary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECT_API Vocabulary& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline Vocabulary& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline Vocabulary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline Vocabulary& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::String& GetId() const{ return m_id; }
63 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
64 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
65 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
66 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
67 inline Vocabulary& WithId(const Aws::String& value) { SetId(value); return *this;}
68 inline Vocabulary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
69 inline Vocabulary& WithId(const char* value) { SetId(value); return *this;}
71
73
76 inline const Aws::String& GetArn() const{ return m_arn; }
77 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
78 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
79 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
80 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
81 inline Vocabulary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
82 inline Vocabulary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
83 inline Vocabulary& WithArn(const char* value) { SetArn(value); return *this;}
85
87
93 inline const VocabularyLanguageCode& GetLanguageCode() const{ return m_languageCode; }
94 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
95 inline void SetLanguageCode(const VocabularyLanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
96 inline void SetLanguageCode(VocabularyLanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
97 inline Vocabulary& WithLanguageCode(const VocabularyLanguageCode& value) { SetLanguageCode(value); return *this;}
98 inline Vocabulary& WithLanguageCode(VocabularyLanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
100
102
105 inline const VocabularyState& GetState() const{ return m_state; }
106 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
107 inline void SetState(const VocabularyState& value) { m_stateHasBeenSet = true; m_state = value; }
108 inline void SetState(VocabularyState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
109 inline Vocabulary& WithState(const VocabularyState& value) { SetState(value); return *this;}
110 inline Vocabulary& WithState(VocabularyState&& value) { SetState(std::move(value)); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
118 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
119 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
120 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
121 inline Vocabulary& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
122 inline Vocabulary& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
124
126
129 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
130 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
131 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
132 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
133 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
134 inline Vocabulary& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
135 inline Vocabulary& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
136 inline Vocabulary& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
138
140
149 inline const Aws::String& GetContent() const{ return m_content; }
150 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
151 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
152 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
153 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
154 inline Vocabulary& WithContent(const Aws::String& value) { SetContent(value); return *this;}
155 inline Vocabulary& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
156 inline Vocabulary& WithContent(const char* value) { SetContent(value); return *this;}
158
160
164 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
165 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
166 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
167 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
168 inline Vocabulary& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
169 inline Vocabulary& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
170 inline Vocabulary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
171 inline Vocabulary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
172 inline Vocabulary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
173 inline Vocabulary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
174 inline Vocabulary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
175 inline Vocabulary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
176 inline Vocabulary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
178 private:
179
180 Aws::String m_name;
181 bool m_nameHasBeenSet = false;
182
183 Aws::String m_id;
184 bool m_idHasBeenSet = false;
185
186 Aws::String m_arn;
187 bool m_arnHasBeenSet = false;
188
189 VocabularyLanguageCode m_languageCode;
190 bool m_languageCodeHasBeenSet = false;
191
192 VocabularyState m_state;
193 bool m_stateHasBeenSet = false;
194
195 Aws::Utils::DateTime m_lastModifiedTime;
196 bool m_lastModifiedTimeHasBeenSet = false;
197
198 Aws::String m_failureReason;
199 bool m_failureReasonHasBeenSet = false;
200
201 Aws::String m_content;
202 bool m_contentHasBeenSet = false;
203
205 bool m_tagsHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace Connect
210} // namespace Aws
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Vocabulary.h:117
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Vocabulary.h:164
void SetContent(Aws::String &&value)
Definition Vocabulary.h:152
void SetId(const Aws::String &value)
Definition Vocabulary.h:64
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Vocabulary.h:167
Vocabulary & WithLanguageCode(VocabularyLanguageCode &&value)
Definition Vocabulary.h:98
Vocabulary & AddTags(const char *key, const char *value)
Definition Vocabulary.h:176
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Vocabulary.h:166
Vocabulary & WithId(const Aws::String &value)
Definition Vocabulary.h:67
const Aws::String & GetArn() const
Definition Vocabulary.h:76
Vocabulary & AddTags(Aws::String &&key, Aws::String &&value)
Definition Vocabulary.h:173
Vocabulary & WithLastModifiedTime(Aws::Utils::DateTime &&value)
Definition Vocabulary.h:122
const VocabularyLanguageCode & GetLanguageCode() const
Definition Vocabulary.h:93
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
Vocabulary & WithLanguageCode(const VocabularyLanguageCode &value)
Definition Vocabulary.h:97
AWS_CONNECT_API Vocabulary(Aws::Utils::Json::JsonView jsonValue)
void SetArn(const char *value)
Definition Vocabulary.h:80
Vocabulary & AddTags(Aws::String &&key, const char *value)
Definition Vocabulary.h:175
Vocabulary & AddTags(const Aws::String &key, Aws::String &&value)
Definition Vocabulary.h:172
Vocabulary & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Vocabulary.h:168
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
Definition Vocabulary.h:120
Vocabulary & WithFailureReason(Aws::String &&value)
Definition Vocabulary.h:135
bool LastModifiedTimeHasBeenSet() const
Definition Vocabulary.h:118
Vocabulary & WithId(Aws::String &&value)
Definition Vocabulary.h:68
Vocabulary & WithFailureReason(const char *value)
Definition Vocabulary.h:136
Vocabulary & WithArn(const char *value)
Definition Vocabulary.h:83
void SetId(const char *value)
Definition Vocabulary.h:66
void SetState(const VocabularyState &value)
Definition Vocabulary.h:107
void SetContent(const Aws::String &value)
Definition Vocabulary.h:151
void SetId(Aws::String &&value)
Definition Vocabulary.h:65
void SetName(const char *value)
Definition Vocabulary.h:52
Vocabulary & AddTags(const char *key, Aws::String &&value)
Definition Vocabulary.h:174
Vocabulary & WithArn(const Aws::String &value)
Definition Vocabulary.h:81
Vocabulary & WithName(Aws::String &&value)
Definition Vocabulary.h:54
const Aws::String & GetFailureReason() const
Definition Vocabulary.h:129
void SetFailureReason(Aws::String &&value)
Definition Vocabulary.h:132
Vocabulary & WithLastModifiedTime(const Aws::Utils::DateTime &value)
Definition Vocabulary.h:121
Vocabulary & AddTags(const Aws::String &key, const Aws::String &value)
Definition Vocabulary.h:170
void SetName(const Aws::String &value)
Definition Vocabulary.h:50
void SetName(Aws::String &&value)
Definition Vocabulary.h:51
Vocabulary & WithContent(const Aws::String &value)
Definition Vocabulary.h:154
const Aws::String & GetName() const
Definition Vocabulary.h:48
Vocabulary & WithFailureReason(const Aws::String &value)
Definition Vocabulary.h:134
Vocabulary & WithContent(const char *value)
Definition Vocabulary.h:156
Vocabulary & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Vocabulary.h:169
void SetFailureReason(const Aws::String &value)
Definition Vocabulary.h:131
const Aws::String & GetId() const
Definition Vocabulary.h:62
const Aws::String & GetContent() const
Definition Vocabulary.h:149
AWS_CONNECT_API Vocabulary & operator=(Aws::Utils::Json::JsonView jsonValue)
const VocabularyState & GetState() const
Definition Vocabulary.h:105
Vocabulary & WithId(const char *value)
Definition Vocabulary.h:69
void SetArn(Aws::String &&value)
Definition Vocabulary.h:79
void SetFailureReason(const char *value)
Definition Vocabulary.h:133
void SetLanguageCode(const VocabularyLanguageCode &value)
Definition Vocabulary.h:95
void SetArn(const Aws::String &value)
Definition Vocabulary.h:78
void SetState(VocabularyState &&value)
Definition Vocabulary.h:108
Vocabulary & WithArn(Aws::String &&value)
Definition Vocabulary.h:82
void SetContent(const char *value)
Definition Vocabulary.h:153
Vocabulary & WithContent(Aws::String &&value)
Definition Vocabulary.h:155
Vocabulary & WithState(VocabularyState &&value)
Definition Vocabulary.h:110
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
Definition Vocabulary.h:119
void SetLanguageCode(VocabularyLanguageCode &&value)
Definition Vocabulary.h:96
Vocabulary & AddTags(Aws::String &&key, const Aws::String &value)
Definition Vocabulary.h:171
Vocabulary & WithName(const char *value)
Definition Vocabulary.h:55
Vocabulary & WithState(const VocabularyState &value)
Definition Vocabulary.h:109
Vocabulary & WithName(const Aws::String &value)
Definition Vocabulary.h:53
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