AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 Vocabulary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
64 template<typename IdT = Aws::String>
65 Vocabulary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetArn() const { return m_arn; }
73 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
74 template<typename ArnT = Aws::String>
75 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
76 template<typename ArnT = Aws::String>
77 Vocabulary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
79
81
87 inline VocabularyLanguageCode GetLanguageCode() const { return m_languageCode; }
88 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
89 inline void SetLanguageCode(VocabularyLanguageCode value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
90 inline Vocabulary& WithLanguageCode(VocabularyLanguageCode value) { SetLanguageCode(value); return *this;}
92
94
97 inline VocabularyState GetState() const { return m_state; }
98 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
99 inline void SetState(VocabularyState value) { m_stateHasBeenSet = true; m_state = value; }
100 inline Vocabulary& WithState(VocabularyState value) { SetState(value); return *this;}
102
104
107 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
108 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
109 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
110 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
111 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
112 Vocabulary& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
114
116
119 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
120 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
121 template<typename FailureReasonT = Aws::String>
122 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
123 template<typename FailureReasonT = Aws::String>
124 Vocabulary& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
126
128
137 inline const Aws::String& GetContent() const { return m_content; }
138 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
139 template<typename ContentT = Aws::String>
140 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
141 template<typename ContentT = Aws::String>
142 Vocabulary& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
144
146
150 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
151 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
152 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
153 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
154 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
155 Vocabulary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
156 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
157 Vocabulary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
158 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
159 }
161 private:
162
163 Aws::String m_name;
164 bool m_nameHasBeenSet = false;
165
166 Aws::String m_id;
167 bool m_idHasBeenSet = false;
168
169 Aws::String m_arn;
170 bool m_arnHasBeenSet = false;
171
173 bool m_languageCodeHasBeenSet = false;
174
176 bool m_stateHasBeenSet = false;
177
178 Aws::Utils::DateTime m_lastModifiedTime{};
179 bool m_lastModifiedTimeHasBeenSet = false;
180
181 Aws::String m_failureReason;
182 bool m_failureReasonHasBeenSet = false;
183
184 Aws::String m_content;
185 bool m_contentHasBeenSet = false;
186
188 bool m_tagsHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace Connect
193} // namespace Aws
Vocabulary & WithState(VocabularyState value)
Definition Vocabulary.h:100
void SetTags(TagsT &&value)
Definition Vocabulary.h:153
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Vocabulary.h:107
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Vocabulary.h:150
Vocabulary & WithName(NameT &&value)
Definition Vocabulary.h:53
Vocabulary & WithId(IdT &&value)
Definition Vocabulary.h:65
void SetState(VocabularyState value)
Definition Vocabulary.h:99
VocabularyState GetState() const
Definition Vocabulary.h:97
Vocabulary & WithLanguageCode(VocabularyLanguageCode value)
Definition Vocabulary.h:90
Vocabulary & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Vocabulary.h:112
void SetName(NameT &&value)
Definition Vocabulary.h:51
const Aws::String & GetArn() const
Definition Vocabulary.h:72
void SetArn(ArnT &&value)
Definition Vocabulary.h:75
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:110
bool LastModifiedTimeHasBeenSet() const
Definition Vocabulary.h:108
VocabularyLanguageCode GetLanguageCode() const
Definition Vocabulary.h:87
const Aws::String & GetFailureReason() const
Definition Vocabulary.h:119
void SetLanguageCode(VocabularyLanguageCode value)
Definition Vocabulary.h:89
Vocabulary & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Vocabulary.h:157
AWS_CONNECT_API Vocabulary()=default
const Aws::String & GetName() const
Definition Vocabulary.h:48
const Aws::String & GetId() const
Definition Vocabulary.h:60
const Aws::String & GetContent() const
Definition Vocabulary.h:137
AWS_CONNECT_API Vocabulary & operator=(Aws::Utils::Json::JsonView jsonValue)
Vocabulary & WithArn(ArnT &&value)
Definition Vocabulary.h:77
void SetFailureReason(FailureReasonT &&value)
Definition Vocabulary.h:122
Vocabulary & WithContent(ContentT &&value)
Definition Vocabulary.h:142
void SetContent(ContentT &&value)
Definition Vocabulary.h:140
Vocabulary & WithTags(TagsT &&value)
Definition Vocabulary.h:155
Vocabulary & WithFailureReason(FailureReasonT &&value)
Definition Vocabulary.h:124
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