AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
TerminologyProperties.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/translate/Translate_EXPORTS.h>
11#include <aws/translate/model/Directionality.h>
12#include <aws/translate/model/EncryptionKey.h>
13#include <aws/translate/model/TerminologyDataFormat.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Translate {
25namespace Model {
26
33 public:
34 AWS_TRANSLATE_API TerminologyProperties() = default;
37 AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
69 TerminologyProperties& WithDescription(DescriptionT&& value) {
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetArn() const { return m_arn; }
80 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
81 template <typename ArnT = Aws::String>
82 void SetArn(ArnT&& value) {
83 m_arnHasBeenSet = true;
84 m_arn = std::forward<ArnT>(value);
85 }
86 template <typename ArnT = Aws::String>
88 SetArn(std::forward<ArnT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetSourceLanguageCode() const { return m_sourceLanguageCode; }
99 inline bool SourceLanguageCodeHasBeenSet() const { return m_sourceLanguageCodeHasBeenSet; }
100 template <typename SourceLanguageCodeT = Aws::String>
101 void SetSourceLanguageCode(SourceLanguageCodeT&& value) {
102 m_sourceLanguageCodeHasBeenSet = true;
103 m_sourceLanguageCode = std::forward<SourceLanguageCodeT>(value);
104 }
105 template <typename SourceLanguageCodeT = Aws::String>
106 TerminologyProperties& WithSourceLanguageCode(SourceLanguageCodeT&& value) {
107 SetSourceLanguageCode(std::forward<SourceLanguageCodeT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::Vector<Aws::String>& GetTargetLanguageCodes() const { return m_targetLanguageCodes; }
118 inline bool TargetLanguageCodesHasBeenSet() const { return m_targetLanguageCodesHasBeenSet; }
119 template <typename TargetLanguageCodesT = Aws::Vector<Aws::String>>
120 void SetTargetLanguageCodes(TargetLanguageCodesT&& value) {
121 m_targetLanguageCodesHasBeenSet = true;
122 m_targetLanguageCodes = std::forward<TargetLanguageCodesT>(value);
123 }
124 template <typename TargetLanguageCodesT = Aws::Vector<Aws::String>>
125 TerminologyProperties& WithTargetLanguageCodes(TargetLanguageCodesT&& value) {
126 SetTargetLanguageCodes(std::forward<TargetLanguageCodesT>(value));
127 return *this;
128 }
129 template <typename TargetLanguageCodesT = Aws::String>
130 TerminologyProperties& AddTargetLanguageCodes(TargetLanguageCodesT&& value) {
131 m_targetLanguageCodesHasBeenSet = true;
132 m_targetLanguageCodes.emplace_back(std::forward<TargetLanguageCodesT>(value));
133 return *this;
134 }
136
138
141 inline const EncryptionKey& GetEncryptionKey() const { return m_encryptionKey; }
142 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
143 template <typename EncryptionKeyT = EncryptionKey>
144 void SetEncryptionKey(EncryptionKeyT&& value) {
145 m_encryptionKeyHasBeenSet = true;
146 m_encryptionKey = std::forward<EncryptionKeyT>(value);
147 }
148 template <typename EncryptionKeyT = EncryptionKey>
149 TerminologyProperties& WithEncryptionKey(EncryptionKeyT&& value) {
150 SetEncryptionKey(std::forward<EncryptionKeyT>(value));
151 return *this;
152 }
154
156
159 inline int GetSizeBytes() const { return m_sizeBytes; }
160 inline bool SizeBytesHasBeenSet() const { return m_sizeBytesHasBeenSet; }
161 inline void SetSizeBytes(int value) {
162 m_sizeBytesHasBeenSet = true;
163 m_sizeBytes = value;
164 }
166 SetSizeBytes(value);
167 return *this;
168 }
170
172
175 inline int GetTermCount() const { return m_termCount; }
176 inline bool TermCountHasBeenSet() const { return m_termCountHasBeenSet; }
177 inline void SetTermCount(int value) {
178 m_termCountHasBeenSet = true;
179 m_termCount = value;
180 }
182 SetTermCount(value);
183 return *this;
184 }
186
188
192 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
193 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
194 template <typename CreatedAtT = Aws::Utils::DateTime>
195 void SetCreatedAt(CreatedAtT&& value) {
196 m_createdAtHasBeenSet = true;
197 m_createdAt = std::forward<CreatedAtT>(value);
198 }
199 template <typename CreatedAtT = Aws::Utils::DateTime>
201 SetCreatedAt(std::forward<CreatedAtT>(value));
202 return *this;
203 }
205
207
211 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
212 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
213 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
214 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
215 m_lastUpdatedAtHasBeenSet = true;
216 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
217 }
218 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
219 TerminologyProperties& WithLastUpdatedAt(LastUpdatedAtT&& value) {
220 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
221 return *this;
222 }
224
226
234 inline Directionality GetDirectionality() const { return m_directionality; }
235 inline bool DirectionalityHasBeenSet() const { return m_directionalityHasBeenSet; }
237 m_directionalityHasBeenSet = true;
238 m_directionality = value;
239 }
241 SetDirectionality(value);
242 return *this;
243 }
245
247
251 inline const Aws::String& GetMessage() const { return m_message; }
252 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
253 template <typename MessageT = Aws::String>
254 void SetMessage(MessageT&& value) {
255 m_messageHasBeenSet = true;
256 m_message = std::forward<MessageT>(value);
257 }
258 template <typename MessageT = Aws::String>
260 SetMessage(std::forward<MessageT>(value));
261 return *this;
262 }
264
266
270 inline int GetSkippedTermCount() const { return m_skippedTermCount; }
271 inline bool SkippedTermCountHasBeenSet() const { return m_skippedTermCountHasBeenSet; }
272 inline void SetSkippedTermCount(int value) {
273 m_skippedTermCountHasBeenSet = true;
274 m_skippedTermCount = value;
275 }
277 SetSkippedTermCount(value);
278 return *this;
279 }
281
283
286 inline TerminologyDataFormat GetFormat() const { return m_format; }
287 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
288 inline void SetFormat(TerminologyDataFormat value) {
289 m_formatHasBeenSet = true;
290 m_format = value;
291 }
293 SetFormat(value);
294 return *this;
295 }
297 private:
298 Aws::String m_name;
299
300 Aws::String m_description;
301
302 Aws::String m_arn;
303
304 Aws::String m_sourceLanguageCode;
305
306 Aws::Vector<Aws::String> m_targetLanguageCodes;
307
308 EncryptionKey m_encryptionKey;
309
310 int m_sizeBytes{0};
311
312 int m_termCount{0};
313
314 Aws::Utils::DateTime m_createdAt{};
315
316 Aws::Utils::DateTime m_lastUpdatedAt{};
317
318 Directionality m_directionality{Directionality::NOT_SET};
319
320 Aws::String m_message;
321
322 int m_skippedTermCount{0};
323
325 bool m_nameHasBeenSet = false;
326 bool m_descriptionHasBeenSet = false;
327 bool m_arnHasBeenSet = false;
328 bool m_sourceLanguageCodeHasBeenSet = false;
329 bool m_targetLanguageCodesHasBeenSet = false;
330 bool m_encryptionKeyHasBeenSet = false;
331 bool m_sizeBytesHasBeenSet = false;
332 bool m_termCountHasBeenSet = false;
333 bool m_createdAtHasBeenSet = false;
334 bool m_lastUpdatedAtHasBeenSet = false;
335 bool m_directionalityHasBeenSet = false;
336 bool m_messageHasBeenSet = false;
337 bool m_skippedTermCountHasBeenSet = false;
338 bool m_formatHasBeenSet = false;
339};
340
341} // namespace Model
342} // namespace Translate
343} // namespace Aws
TerminologyProperties & WithSizeBytes(int value)
AWS_TRANSLATE_API TerminologyProperties(Aws::Utils::Json::JsonView jsonValue)
TerminologyProperties & AddTargetLanguageCodes(TargetLanguageCodesT &&value)
TerminologyProperties & WithSkippedTermCount(int value)
TerminologyProperties & WithLastUpdatedAt(LastUpdatedAtT &&value)
TerminologyProperties & WithDirectionality(Directionality value)
const Aws::Vector< Aws::String > & GetTargetLanguageCodes() const
TerminologyProperties & WithSourceLanguageCode(SourceLanguageCodeT &&value)
void SetTargetLanguageCodes(TargetLanguageCodesT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
AWS_TRANSLATE_API TerminologyProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
TerminologyProperties & WithMessage(MessageT &&value)
TerminologyProperties & WithTargetLanguageCodes(TargetLanguageCodesT &&value)
void SetSourceLanguageCode(SourceLanguageCodeT &&value)
TerminologyProperties & WithDescription(DescriptionT &&value)
TerminologyProperties & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
TerminologyProperties & WithFormat(TerminologyDataFormat value)
TerminologyProperties & WithTermCount(int value)
TerminologyProperties & WithEncryptionKey(EncryptionKeyT &&value)
TerminologyProperties & WithName(NameT &&value)
TerminologyProperties & WithArn(ArnT &&value)
AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TRANSLATE_API TerminologyProperties()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue