AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
53 template<typename NameT = Aws::String>
54 TerminologyProperties& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
65 template<typename DescriptionT = Aws::String>
66 TerminologyProperties& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
68
70
73 inline const Aws::String& GetArn() const { return m_arn; }
74 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
75 template<typename ArnT = Aws::String>
76 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
77 template<typename ArnT = Aws::String>
78 TerminologyProperties& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
80
82
86 inline const Aws::String& GetSourceLanguageCode() const { return m_sourceLanguageCode; }
87 inline bool SourceLanguageCodeHasBeenSet() const { return m_sourceLanguageCodeHasBeenSet; }
88 template<typename SourceLanguageCodeT = Aws::String>
89 void SetSourceLanguageCode(SourceLanguageCodeT&& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = std::forward<SourceLanguageCodeT>(value); }
90 template<typename SourceLanguageCodeT = Aws::String>
91 TerminologyProperties& WithSourceLanguageCode(SourceLanguageCodeT&& value) { SetSourceLanguageCode(std::forward<SourceLanguageCodeT>(value)); return *this;}
93
95
99 inline const Aws::Vector<Aws::String>& GetTargetLanguageCodes() const { return m_targetLanguageCodes; }
100 inline bool TargetLanguageCodesHasBeenSet() const { return m_targetLanguageCodesHasBeenSet; }
101 template<typename TargetLanguageCodesT = Aws::Vector<Aws::String>>
102 void SetTargetLanguageCodes(TargetLanguageCodesT&& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes = std::forward<TargetLanguageCodesT>(value); }
103 template<typename TargetLanguageCodesT = Aws::Vector<Aws::String>>
104 TerminologyProperties& WithTargetLanguageCodes(TargetLanguageCodesT&& value) { SetTargetLanguageCodes(std::forward<TargetLanguageCodesT>(value)); return *this;}
105 template<typename TargetLanguageCodesT = Aws::String>
106 TerminologyProperties& AddTargetLanguageCodes(TargetLanguageCodesT&& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes.emplace_back(std::forward<TargetLanguageCodesT>(value)); return *this; }
108
110
113 inline const EncryptionKey& GetEncryptionKey() const { return m_encryptionKey; }
114 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
115 template<typename EncryptionKeyT = EncryptionKey>
116 void SetEncryptionKey(EncryptionKeyT&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::forward<EncryptionKeyT>(value); }
117 template<typename EncryptionKeyT = EncryptionKey>
118 TerminologyProperties& WithEncryptionKey(EncryptionKeyT&& value) { SetEncryptionKey(std::forward<EncryptionKeyT>(value)); return *this;}
120
122
125 inline int GetSizeBytes() const { return m_sizeBytes; }
126 inline bool SizeBytesHasBeenSet() const { return m_sizeBytesHasBeenSet; }
127 inline void SetSizeBytes(int value) { m_sizeBytesHasBeenSet = true; m_sizeBytes = value; }
128 inline TerminologyProperties& WithSizeBytes(int value) { SetSizeBytes(value); return *this;}
130
132
135 inline int GetTermCount() const { return m_termCount; }
136 inline bool TermCountHasBeenSet() const { return m_termCountHasBeenSet; }
137 inline void SetTermCount(int value) { m_termCountHasBeenSet = true; m_termCount = value; }
138 inline TerminologyProperties& WithTermCount(int value) { SetTermCount(value); return *this;}
140
142
146 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
147 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
148 template<typename CreatedAtT = Aws::Utils::DateTime>
149 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
150 template<typename CreatedAtT = Aws::Utils::DateTime>
151 TerminologyProperties& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
153
155
159 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
160 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
161 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
162 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
163 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
164 TerminologyProperties& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
166
168
176 inline Directionality GetDirectionality() const { return m_directionality; }
177 inline bool DirectionalityHasBeenSet() const { return m_directionalityHasBeenSet; }
178 inline void SetDirectionality(Directionality value) { m_directionalityHasBeenSet = true; m_directionality = value; }
181
183
187 inline const Aws::String& GetMessage() const { return m_message; }
188 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
189 template<typename MessageT = Aws::String>
190 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
191 template<typename MessageT = Aws::String>
192 TerminologyProperties& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
194
196
200 inline int GetSkippedTermCount() const { return m_skippedTermCount; }
201 inline bool SkippedTermCountHasBeenSet() const { return m_skippedTermCountHasBeenSet; }
202 inline void SetSkippedTermCount(int value) { m_skippedTermCountHasBeenSet = true; m_skippedTermCount = value; }
203 inline TerminologyProperties& WithSkippedTermCount(int value) { SetSkippedTermCount(value); return *this;}
205
207
210 inline TerminologyDataFormat GetFormat() const { return m_format; }
211 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
212 inline void SetFormat(TerminologyDataFormat value) { m_formatHasBeenSet = true; m_format = value; }
213 inline TerminologyProperties& WithFormat(TerminologyDataFormat value) { SetFormat(value); return *this;}
215 private:
216
217 Aws::String m_name;
218 bool m_nameHasBeenSet = false;
219
220 Aws::String m_description;
221 bool m_descriptionHasBeenSet = false;
222
223 Aws::String m_arn;
224 bool m_arnHasBeenSet = false;
225
226 Aws::String m_sourceLanguageCode;
227 bool m_sourceLanguageCodeHasBeenSet = false;
228
229 Aws::Vector<Aws::String> m_targetLanguageCodes;
230 bool m_targetLanguageCodesHasBeenSet = false;
231
232 EncryptionKey m_encryptionKey;
233 bool m_encryptionKeyHasBeenSet = false;
234
235 int m_sizeBytes{0};
236 bool m_sizeBytesHasBeenSet = false;
237
238 int m_termCount{0};
239 bool m_termCountHasBeenSet = false;
240
241 Aws::Utils::DateTime m_createdAt{};
242 bool m_createdAtHasBeenSet = false;
243
244 Aws::Utils::DateTime m_lastUpdatedAt{};
245 bool m_lastUpdatedAtHasBeenSet = false;
246
247 Directionality m_directionality{Directionality::NOT_SET};
248 bool m_directionalityHasBeenSet = false;
249
250 Aws::String m_message;
251 bool m_messageHasBeenSet = false;
252
253 int m_skippedTermCount{0};
254 bool m_skippedTermCountHasBeenSet = false;
255
257 bool m_formatHasBeenSet = false;
258 };
259
260} // namespace Model
261} // namespace Translate
262} // 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