AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
MLTransform.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/glue/Glue_EXPORTS.h>
11#include <aws/glue/model/EvaluationMetrics.h>
12#include <aws/glue/model/GlueTable.h>
13#include <aws/glue/model/SchemaColumn.h>
14#include <aws/glue/model/TransformEncryption.h>
15#include <aws/glue/model/TransformParameters.h>
16#include <aws/glue/model/TransformStatusType.h>
17#include <aws/glue/model/WorkerType.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Glue {
29namespace Model {
30
37 public:
38 AWS_GLUE_API MLTransform() = default;
39 AWS_GLUE_API MLTransform(Aws::Utils::Json::JsonView jsonValue);
42
44
48 inline const Aws::String& GetTransformId() const { return m_transformId; }
49 inline bool TransformIdHasBeenSet() const { return m_transformIdHasBeenSet; }
50 template <typename TransformIdT = Aws::String>
51 void SetTransformId(TransformIdT&& value) {
52 m_transformIdHasBeenSet = true;
53 m_transformId = std::forward<TransformIdT>(value);
54 }
55 template <typename TransformIdT = Aws::String>
56 MLTransform& WithTransformId(TransformIdT&& value) {
57 SetTransformId(std::forward<TransformIdT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::String& GetName() const { return m_name; }
68 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
69 template <typename NameT = Aws::String>
70 void SetName(NameT&& value) {
71 m_nameHasBeenSet = true;
72 m_name = std::forward<NameT>(value);
73 }
74 template <typename NameT = Aws::String>
75 MLTransform& WithName(NameT&& value) {
76 SetName(std::forward<NameT>(value));
77 return *this;
78 }
80
82
87 inline const Aws::String& GetDescription() const { return m_description; }
88 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 template <typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) {
91 m_descriptionHasBeenSet = true;
92 m_description = std::forward<DescriptionT>(value);
93 }
94 template <typename DescriptionT = Aws::String>
95 MLTransform& WithDescription(DescriptionT&& value) {
96 SetDescription(std::forward<DescriptionT>(value));
97 return *this;
98 }
100
102
105 inline TransformStatusType GetStatus() const { return m_status; }
106 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
107 inline void SetStatus(TransformStatusType value) {
108 m_statusHasBeenSet = true;
109 m_status = value;
110 }
112 SetStatus(value);
113 return *this;
114 }
116
118
122 inline const Aws::Utils::DateTime& GetCreatedOn() const { return m_createdOn; }
123 inline bool CreatedOnHasBeenSet() const { return m_createdOnHasBeenSet; }
124 template <typename CreatedOnT = Aws::Utils::DateTime>
125 void SetCreatedOn(CreatedOnT&& value) {
126 m_createdOnHasBeenSet = true;
127 m_createdOn = std::forward<CreatedOnT>(value);
128 }
129 template <typename CreatedOnT = Aws::Utils::DateTime>
130 MLTransform& WithCreatedOn(CreatedOnT&& value) {
131 SetCreatedOn(std::forward<CreatedOnT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::Utils::DateTime& GetLastModifiedOn() const { return m_lastModifiedOn; }
142 inline bool LastModifiedOnHasBeenSet() const { return m_lastModifiedOnHasBeenSet; }
143 template <typename LastModifiedOnT = Aws::Utils::DateTime>
144 void SetLastModifiedOn(LastModifiedOnT&& value) {
145 m_lastModifiedOnHasBeenSet = true;
146 m_lastModifiedOn = std::forward<LastModifiedOnT>(value);
147 }
148 template <typename LastModifiedOnT = Aws::Utils::DateTime>
149 MLTransform& WithLastModifiedOn(LastModifiedOnT&& value) {
150 SetLastModifiedOn(std::forward<LastModifiedOnT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::Vector<GlueTable>& GetInputRecordTables() const { return m_inputRecordTables; }
160 inline bool InputRecordTablesHasBeenSet() const { return m_inputRecordTablesHasBeenSet; }
161 template <typename InputRecordTablesT = Aws::Vector<GlueTable>>
162 void SetInputRecordTables(InputRecordTablesT&& value) {
163 m_inputRecordTablesHasBeenSet = true;
164 m_inputRecordTables = std::forward<InputRecordTablesT>(value);
165 }
166 template <typename InputRecordTablesT = Aws::Vector<GlueTable>>
167 MLTransform& WithInputRecordTables(InputRecordTablesT&& value) {
168 SetInputRecordTables(std::forward<InputRecordTablesT>(value));
169 return *this;
170 }
171 template <typename InputRecordTablesT = GlueTable>
172 MLTransform& AddInputRecordTables(InputRecordTablesT&& value) {
173 m_inputRecordTablesHasBeenSet = true;
174 m_inputRecordTables.emplace_back(std::forward<InputRecordTablesT>(value));
175 return *this;
176 }
178
180
186 inline const TransformParameters& GetParameters() const { return m_parameters; }
187 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
188 template <typename ParametersT = TransformParameters>
189 void SetParameters(ParametersT&& value) {
190 m_parametersHasBeenSet = true;
191 m_parameters = std::forward<ParametersT>(value);
192 }
193 template <typename ParametersT = TransformParameters>
194 MLTransform& WithParameters(ParametersT&& value) {
195 SetParameters(std::forward<ParametersT>(value));
196 return *this;
197 }
199
201
205 inline const EvaluationMetrics& GetEvaluationMetrics() const { return m_evaluationMetrics; }
206 inline bool EvaluationMetricsHasBeenSet() const { return m_evaluationMetricsHasBeenSet; }
207 template <typename EvaluationMetricsT = EvaluationMetrics>
208 void SetEvaluationMetrics(EvaluationMetricsT&& value) {
209 m_evaluationMetricsHasBeenSet = true;
210 m_evaluationMetrics = std::forward<EvaluationMetricsT>(value);
211 }
212 template <typename EvaluationMetricsT = EvaluationMetrics>
213 MLTransform& WithEvaluationMetrics(EvaluationMetricsT&& value) {
214 SetEvaluationMetrics(std::forward<EvaluationMetricsT>(value));
215 return *this;
216 }
218
220
225 inline int GetLabelCount() const { return m_labelCount; }
226 inline bool LabelCountHasBeenSet() const { return m_labelCountHasBeenSet; }
227 inline void SetLabelCount(int value) {
228 m_labelCountHasBeenSet = true;
229 m_labelCount = value;
230 }
231 inline MLTransform& WithLabelCount(int value) {
232 SetLabelCount(value);
233 return *this;
234 }
236
238
242 inline const Aws::Vector<SchemaColumn>& GetSchema() const { return m_schema; }
243 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
244 template <typename SchemaT = Aws::Vector<SchemaColumn>>
245 void SetSchema(SchemaT&& value) {
246 m_schemaHasBeenSet = true;
247 m_schema = std::forward<SchemaT>(value);
248 }
249 template <typename SchemaT = Aws::Vector<SchemaColumn>>
250 MLTransform& WithSchema(SchemaT&& value) {
251 SetSchema(std::forward<SchemaT>(value));
252 return *this;
253 }
254 template <typename SchemaT = SchemaColumn>
255 MLTransform& AddSchema(SchemaT&& value) {
256 m_schemaHasBeenSet = true;
257 m_schema.emplace_back(std::forward<SchemaT>(value));
258 return *this;
259 }
261
263
275 inline const Aws::String& GetRole() const { return m_role; }
276 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
277 template <typename RoleT = Aws::String>
278 void SetRole(RoleT&& value) {
279 m_roleHasBeenSet = true;
280 m_role = std::forward<RoleT>(value);
281 }
282 template <typename RoleT = Aws::String>
283 MLTransform& WithRole(RoleT&& value) {
284 SetRole(std::forward<RoleT>(value));
285 return *this;
286 }
288
290
298 inline const Aws::String& GetGlueVersion() const { return m_glueVersion; }
299 inline bool GlueVersionHasBeenSet() const { return m_glueVersionHasBeenSet; }
300 template <typename GlueVersionT = Aws::String>
301 void SetGlueVersion(GlueVersionT&& value) {
302 m_glueVersionHasBeenSet = true;
303 m_glueVersion = std::forward<GlueVersionT>(value);
304 }
305 template <typename GlueVersionT = Aws::String>
306 MLTransform& WithGlueVersion(GlueVersionT&& value) {
307 SetGlueVersion(std::forward<GlueVersionT>(value));
308 return *this;
309 }
311
313
331 inline double GetMaxCapacity() const { return m_maxCapacity; }
332 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
333 inline void SetMaxCapacity(double value) {
334 m_maxCapacityHasBeenSet = true;
335 m_maxCapacity = value;
336 }
337 inline MLTransform& WithMaxCapacity(double value) {
338 SetMaxCapacity(value);
339 return *this;
340 }
342
344
363 inline WorkerType GetWorkerType() const { return m_workerType; }
364 inline bool WorkerTypeHasBeenSet() const { return m_workerTypeHasBeenSet; }
365 inline void SetWorkerType(WorkerType value) {
366 m_workerTypeHasBeenSet = true;
367 m_workerType = value;
368 }
370 SetWorkerType(value);
371 return *this;
372 }
374
376
381 inline int GetNumberOfWorkers() const { return m_numberOfWorkers; }
382 inline bool NumberOfWorkersHasBeenSet() const { return m_numberOfWorkersHasBeenSet; }
383 inline void SetNumberOfWorkers(int value) {
384 m_numberOfWorkersHasBeenSet = true;
385 m_numberOfWorkers = value;
386 }
387 inline MLTransform& WithNumberOfWorkers(int value) {
388 SetNumberOfWorkers(value);
389 return *this;
390 }
392
394
397 inline int GetTimeout() const { return m_timeout; }
398 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
399 inline void SetTimeout(int value) {
400 m_timeoutHasBeenSet = true;
401 m_timeout = value;
402 }
403 inline MLTransform& WithTimeout(int value) {
404 SetTimeout(value);
405 return *this;
406 }
408
410
414 inline int GetMaxRetries() const { return m_maxRetries; }
415 inline bool MaxRetriesHasBeenSet() const { return m_maxRetriesHasBeenSet; }
416 inline void SetMaxRetries(int value) {
417 m_maxRetriesHasBeenSet = true;
418 m_maxRetries = value;
419 }
420 inline MLTransform& WithMaxRetries(int value) {
421 SetMaxRetries(value);
422 return *this;
423 }
425
427
432 inline const TransformEncryption& GetTransformEncryption() const { return m_transformEncryption; }
433 inline bool TransformEncryptionHasBeenSet() const { return m_transformEncryptionHasBeenSet; }
434 template <typename TransformEncryptionT = TransformEncryption>
435 void SetTransformEncryption(TransformEncryptionT&& value) {
436 m_transformEncryptionHasBeenSet = true;
437 m_transformEncryption = std::forward<TransformEncryptionT>(value);
438 }
439 template <typename TransformEncryptionT = TransformEncryption>
440 MLTransform& WithTransformEncryption(TransformEncryptionT&& value) {
441 SetTransformEncryption(std::forward<TransformEncryptionT>(value));
442 return *this;
443 }
445 private:
446 Aws::String m_transformId;
447
448 Aws::String m_name;
449
450 Aws::String m_description;
451
453
454 Aws::Utils::DateTime m_createdOn{};
455
456 Aws::Utils::DateTime m_lastModifiedOn{};
457
458 Aws::Vector<GlueTable> m_inputRecordTables;
459
460 TransformParameters m_parameters;
461
462 EvaluationMetrics m_evaluationMetrics;
463
464 int m_labelCount{0};
465
467
468 Aws::String m_role;
469
470 Aws::String m_glueVersion;
471
472 double m_maxCapacity{0.0};
473
474 WorkerType m_workerType{WorkerType::NOT_SET};
475
476 int m_numberOfWorkers{0};
477
478 int m_timeout{0};
479
480 int m_maxRetries{0};
481
482 TransformEncryption m_transformEncryption;
483 bool m_transformIdHasBeenSet = false;
484 bool m_nameHasBeenSet = false;
485 bool m_descriptionHasBeenSet = false;
486 bool m_statusHasBeenSet = false;
487 bool m_createdOnHasBeenSet = false;
488 bool m_lastModifiedOnHasBeenSet = false;
489 bool m_inputRecordTablesHasBeenSet = false;
490 bool m_parametersHasBeenSet = false;
491 bool m_evaluationMetricsHasBeenSet = false;
492 bool m_labelCountHasBeenSet = false;
493 bool m_schemaHasBeenSet = false;
494 bool m_roleHasBeenSet = false;
495 bool m_glueVersionHasBeenSet = false;
496 bool m_maxCapacityHasBeenSet = false;
497 bool m_workerTypeHasBeenSet = false;
498 bool m_numberOfWorkersHasBeenSet = false;
499 bool m_timeoutHasBeenSet = false;
500 bool m_maxRetriesHasBeenSet = false;
501 bool m_transformEncryptionHasBeenSet = false;
502};
503
504} // namespace Model
505} // namespace Glue
506} // namespace Aws
MLTransform & WithNumberOfWorkers(int value)
const Aws::String & GetName() const
Definition MLTransform.h:67
void SetDescription(DescriptionT &&value)
Definition MLTransform.h:90
TransformStatusType GetStatus() const
const Aws::String & GetDescription() const
Definition MLTransform.h:87
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
MLTransform & WithRole(RoleT &&value)
MLTransform & WithParameters(ParametersT &&value)
bool NumberOfWorkersHasBeenSet() const
const Aws::Vector< SchemaColumn > & GetSchema() const
MLTransform & WithName(NameT &&value)
Definition MLTransform.h:75
MLTransform & WithTransformEncryption(TransformEncryptionT &&value)
bool TransformEncryptionHasBeenSet() const
void SetRole(RoleT &&value)
const Aws::String & GetGlueVersion() const
const Aws::Vector< GlueTable > & GetInputRecordTables() const
const Aws::String & GetTransformId() const
Definition MLTransform.h:48
MLTransform & WithCreatedOn(CreatedOnT &&value)
MLTransform & WithTimeout(int value)
void SetParameters(ParametersT &&value)
void SetMaxCapacity(double value)
MLTransform & WithLabelCount(int value)
void SetStatus(TransformStatusType value)
MLTransform & WithGlueVersion(GlueVersionT &&value)
void SetSchema(SchemaT &&value)
void SetTransformId(TransformIdT &&value)
Definition MLTransform.h:51
bool LastModifiedOnHasBeenSet() const
MLTransform & WithStatus(TransformStatusType value)
MLTransform & WithMaxCapacity(double value)
const Aws::Utils::DateTime & GetCreatedOn() const
WorkerType GetWorkerType() const
AWS_GLUE_API MLTransform & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetGlueVersion(GlueVersionT &&value)
const EvaluationMetrics & GetEvaluationMetrics() const
void SetCreatedOn(CreatedOnT &&value)
void SetInputRecordTables(InputRecordTablesT &&value)
AWS_GLUE_API MLTransform()=default
const Aws::Utils::DateTime & GetLastModifiedOn() const
bool InputRecordTablesHasBeenSet() const
MLTransform & WithInputRecordTables(InputRecordTablesT &&value)
MLTransform & WithLastModifiedOn(LastModifiedOnT &&value)
MLTransform & WithWorkerType(WorkerType value)
void SetName(NameT &&value)
Definition MLTransform.h:70
const TransformEncryption & GetTransformEncryption() const
MLTransform & WithDescription(DescriptionT &&value)
Definition MLTransform.h:95
void SetNumberOfWorkers(int value)
bool EvaluationMetricsHasBeenSet() const
MLTransform & WithEvaluationMetrics(EvaluationMetricsT &&value)
void SetLastModifiedOn(LastModifiedOnT &&value)
MLTransform & WithMaxRetries(int value)
const TransformParameters & GetParameters() const
const Aws::String & GetRole() const
AWS_GLUE_API MLTransform(Aws::Utils::Json::JsonView jsonValue)
MLTransform & AddSchema(SchemaT &&value)
void SetWorkerType(WorkerType value)
void SetTransformEncryption(TransformEncryptionT &&value)
MLTransform & AddInputRecordTables(InputRecordTablesT &&value)
MLTransform & WithSchema(SchemaT &&value)
MLTransform & WithTransformId(TransformIdT &&value)
Definition MLTransform.h:56
void SetEvaluationMetrics(EvaluationMetricsT &&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