AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TerminologyProperties.h
1
6#pragma once
7#include <aws/translate/Translate_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/translate/model/EncryptionKey.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/translate/model/Directionality.h>
13#include <aws/translate/model/TerminologyDataFormat.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Translate
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_TRANSLATE_API TerminologyProperties();
42 AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline TerminologyProperties& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline TerminologyProperties& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline TerminologyProperties& WithName(const char* value) { SetName(value); return *this;}
58
60
63 inline const Aws::String& GetDescription() const{ return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
66 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
67 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
68 inline TerminologyProperties& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
69 inline TerminologyProperties& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
70 inline TerminologyProperties& WithDescription(const char* value) { SetDescription(value); return *this;}
72
74
77 inline const Aws::String& GetArn() const{ return m_arn; }
78 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
79 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
80 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
81 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
82 inline TerminologyProperties& WithArn(const Aws::String& value) { SetArn(value); return *this;}
83 inline TerminologyProperties& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
84 inline TerminologyProperties& WithArn(const char* value) { SetArn(value); return *this;}
86
88
92 inline const Aws::String& GetSourceLanguageCode() const{ return m_sourceLanguageCode; }
93 inline bool SourceLanguageCodeHasBeenSet() const { return m_sourceLanguageCodeHasBeenSet; }
94 inline void SetSourceLanguageCode(const Aws::String& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = value; }
95 inline void SetSourceLanguageCode(Aws::String&& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = std::move(value); }
96 inline void SetSourceLanguageCode(const char* value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode.assign(value); }
98 inline TerminologyProperties& WithSourceLanguageCode(Aws::String&& value) { SetSourceLanguageCode(std::move(value)); return *this;}
99 inline TerminologyProperties& WithSourceLanguageCode(const char* value) { SetSourceLanguageCode(value); return *this;}
101
103
107 inline const Aws::Vector<Aws::String>& GetTargetLanguageCodes() const{ return m_targetLanguageCodes; }
108 inline bool TargetLanguageCodesHasBeenSet() const { return m_targetLanguageCodesHasBeenSet; }
109 inline void SetTargetLanguageCodes(const Aws::Vector<Aws::String>& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes = value; }
110 inline void SetTargetLanguageCodes(Aws::Vector<Aws::String>&& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes = std::move(value); }
113 inline TerminologyProperties& AddTargetLanguageCodes(const Aws::String& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes.push_back(value); return *this; }
114 inline TerminologyProperties& AddTargetLanguageCodes(Aws::String&& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes.push_back(std::move(value)); return *this; }
115 inline TerminologyProperties& AddTargetLanguageCodes(const char* value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes.push_back(value); return *this; }
117
119
122 inline const EncryptionKey& GetEncryptionKey() const{ return m_encryptionKey; }
123 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
124 inline void SetEncryptionKey(const EncryptionKey& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; }
125 inline void SetEncryptionKey(EncryptionKey&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::move(value); }
126 inline TerminologyProperties& WithEncryptionKey(const EncryptionKey& value) { SetEncryptionKey(value); return *this;}
127 inline TerminologyProperties& WithEncryptionKey(EncryptionKey&& value) { SetEncryptionKey(std::move(value)); return *this;}
129
131
134 inline int GetSizeBytes() const{ return m_sizeBytes; }
135 inline bool SizeBytesHasBeenSet() const { return m_sizeBytesHasBeenSet; }
136 inline void SetSizeBytes(int value) { m_sizeBytesHasBeenSet = true; m_sizeBytes = value; }
137 inline TerminologyProperties& WithSizeBytes(int value) { SetSizeBytes(value); return *this;}
139
141
144 inline int GetTermCount() const{ return m_termCount; }
145 inline bool TermCountHasBeenSet() const { return m_termCountHasBeenSet; }
146 inline void SetTermCount(int value) { m_termCountHasBeenSet = true; m_termCount = value; }
147 inline TerminologyProperties& WithTermCount(int value) { SetTermCount(value); return *this;}
149
151
155 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
156 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
157 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
158 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
159 inline TerminologyProperties& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
160 inline TerminologyProperties& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
162
164
168 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
169 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
170 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
171 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
173 inline TerminologyProperties& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
175
177
185 inline const Directionality& GetDirectionality() const{ return m_directionality; }
186 inline bool DirectionalityHasBeenSet() const { return m_directionalityHasBeenSet; }
187 inline void SetDirectionality(const Directionality& value) { m_directionalityHasBeenSet = true; m_directionality = value; }
188 inline void SetDirectionality(Directionality&& value) { m_directionalityHasBeenSet = true; m_directionality = std::move(value); }
189 inline TerminologyProperties& WithDirectionality(const Directionality& value) { SetDirectionality(value); return *this;}
190 inline TerminologyProperties& WithDirectionality(Directionality&& value) { SetDirectionality(std::move(value)); return *this;}
192
194
198 inline const Aws::String& GetMessage() const{ return m_message; }
199 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
200 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
201 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
202 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
203 inline TerminologyProperties& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
204 inline TerminologyProperties& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
205 inline TerminologyProperties& WithMessage(const char* value) { SetMessage(value); return *this;}
207
209
213 inline int GetSkippedTermCount() const{ return m_skippedTermCount; }
214 inline bool SkippedTermCountHasBeenSet() const { return m_skippedTermCountHasBeenSet; }
215 inline void SetSkippedTermCount(int value) { m_skippedTermCountHasBeenSet = true; m_skippedTermCount = value; }
216 inline TerminologyProperties& WithSkippedTermCount(int value) { SetSkippedTermCount(value); return *this;}
218
220
223 inline const TerminologyDataFormat& GetFormat() const{ return m_format; }
224 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
225 inline void SetFormat(const TerminologyDataFormat& value) { m_formatHasBeenSet = true; m_format = value; }
226 inline void SetFormat(TerminologyDataFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
227 inline TerminologyProperties& WithFormat(const TerminologyDataFormat& value) { SetFormat(value); return *this;}
228 inline TerminologyProperties& WithFormat(TerminologyDataFormat&& value) { SetFormat(std::move(value)); return *this;}
230 private:
231
232 Aws::String m_name;
233 bool m_nameHasBeenSet = false;
234
235 Aws::String m_description;
236 bool m_descriptionHasBeenSet = false;
237
238 Aws::String m_arn;
239 bool m_arnHasBeenSet = false;
240
241 Aws::String m_sourceLanguageCode;
242 bool m_sourceLanguageCodeHasBeenSet = false;
243
244 Aws::Vector<Aws::String> m_targetLanguageCodes;
245 bool m_targetLanguageCodesHasBeenSet = false;
246
247 EncryptionKey m_encryptionKey;
248 bool m_encryptionKeyHasBeenSet = false;
249
250 int m_sizeBytes;
251 bool m_sizeBytesHasBeenSet = false;
252
253 int m_termCount;
254 bool m_termCountHasBeenSet = false;
255
256 Aws::Utils::DateTime m_createdAt;
257 bool m_createdAtHasBeenSet = false;
258
259 Aws::Utils::DateTime m_lastUpdatedAt;
260 bool m_lastUpdatedAtHasBeenSet = false;
261
262 Directionality m_directionality;
263 bool m_directionalityHasBeenSet = false;
264
265 Aws::String m_message;
266 bool m_messageHasBeenSet = false;
267
268 int m_skippedTermCount;
269 bool m_skippedTermCountHasBeenSet = false;
270
271 TerminologyDataFormat m_format;
272 bool m_formatHasBeenSet = false;
273 };
274
275} // namespace Model
276} // namespace Translate
277} // namespace Aws
TerminologyProperties & AddTargetLanguageCodes(Aws::String &&value)
void SetSourceLanguageCode(const Aws::String &value)
TerminologyProperties & WithDescription(const char *value)
TerminologyProperties & WithSizeBytes(int value)
AWS_TRANSLATE_API TerminologyProperties(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
TerminologyProperties & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
TerminologyProperties & WithSourceLanguageCode(const Aws::String &value)
TerminologyProperties & WithSourceLanguageCode(const char *value)
void SetDirectionality(const Directionality &value)
TerminologyProperties & WithTargetLanguageCodes(Aws::Vector< Aws::String > &&value)
TerminologyProperties & WithFormat(const TerminologyDataFormat &value)
TerminologyProperties & WithTargetLanguageCodes(const Aws::Vector< Aws::String > &value)
void SetFormat(const TerminologyDataFormat &value)
TerminologyProperties & WithSkippedTermCount(int value)
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
TerminologyProperties & WithArn(const char *value)
TerminologyProperties & WithName(const char *value)
TerminologyProperties & WithMessage(const Aws::String &value)
void SetTargetLanguageCodes(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetTargetLanguageCodes() const
TerminologyProperties & WithArn(Aws::String &&value)
TerminologyProperties & AddTargetLanguageCodes(const char *value)
TerminologyProperties & WithMessage(Aws::String &&value)
TerminologyProperties & WithDirectionality(const Directionality &value)
TerminologyProperties & WithSourceLanguageCode(Aws::String &&value)
TerminologyProperties & WithDirectionality(Directionality &&value)
TerminologyProperties & WithArn(const Aws::String &value)
TerminologyProperties & WithEncryptionKey(const EncryptionKey &value)
void SetTargetLanguageCodes(Aws::Vector< Aws::String > &&value)
TerminologyProperties & AddTargetLanguageCodes(const Aws::String &value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
const TerminologyDataFormat & GetFormat() const
AWS_TRANSLATE_API TerminologyProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
TerminologyProperties & WithDescription(Aws::String &&value)
TerminologyProperties & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
TerminologyProperties & WithCreatedAt(const Aws::Utils::DateTime &value)
TerminologyProperties & WithEncryptionKey(EncryptionKey &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
TerminologyProperties & WithFormat(TerminologyDataFormat &&value)
TerminologyProperties & WithMessage(const char *value)
void SetFormat(TerminologyDataFormat &&value)
TerminologyProperties & WithTermCount(int value)
TerminologyProperties & WithName(const Aws::String &value)
TerminologyProperties & WithName(Aws::String &&value)
AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEncryptionKey(const EncryptionKey &value)
TerminologyProperties & WithDescription(const Aws::String &value)
TerminologyProperties & WithCreatedAt(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue