AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MLTransform.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/model/TransformStatusType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/glue/model/TransformParameters.h>
13#include <aws/glue/model/EvaluationMetrics.h>
14#include <aws/glue/model/WorkerType.h>
15#include <aws/glue/model/TransformEncryption.h>
16#include <aws/glue/model/GlueTable.h>
17#include <aws/glue/model/SchemaColumn.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace Glue
31{
32namespace Model
33{
34
41 {
42 public:
43 AWS_GLUE_API MLTransform();
44 AWS_GLUE_API MLTransform(Aws::Utils::Json::JsonView jsonValue);
47
48
50
54 inline const Aws::String& GetTransformId() const{ return m_transformId; }
55 inline bool TransformIdHasBeenSet() const { return m_transformIdHasBeenSet; }
56 inline void SetTransformId(const Aws::String& value) { m_transformIdHasBeenSet = true; m_transformId = value; }
57 inline void SetTransformId(Aws::String&& value) { m_transformIdHasBeenSet = true; m_transformId = std::move(value); }
58 inline void SetTransformId(const char* value) { m_transformIdHasBeenSet = true; m_transformId.assign(value); }
59 inline MLTransform& WithTransformId(const Aws::String& value) { SetTransformId(value); return *this;}
60 inline MLTransform& WithTransformId(Aws::String&& value) { SetTransformId(std::move(value)); return *this;}
61 inline MLTransform& WithTransformId(const char* value) { SetTransformId(value); return *this;}
63
65
69 inline const Aws::String& GetName() const{ return m_name; }
70 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
71 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
72 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
73 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
74 inline MLTransform& WithName(const Aws::String& value) { SetName(value); return *this;}
75 inline MLTransform& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 inline MLTransform& WithName(const char* value) { SetName(value); return *this;}
78
80
85 inline const Aws::String& GetDescription() const{ return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
88 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
89 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
90 inline MLTransform& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
91 inline MLTransform& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
92 inline MLTransform& WithDescription(const char* value) { SetDescription(value); return *this;}
94
96
99 inline const TransformStatusType& GetStatus() const{ return m_status; }
100 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
101 inline void SetStatus(const TransformStatusType& value) { m_statusHasBeenSet = true; m_status = value; }
102 inline void SetStatus(TransformStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
103 inline MLTransform& WithStatus(const TransformStatusType& value) { SetStatus(value); return *this;}
104 inline MLTransform& WithStatus(TransformStatusType&& value) { SetStatus(std::move(value)); return *this;}
106
108
112 inline const Aws::Utils::DateTime& GetCreatedOn() const{ return m_createdOn; }
113 inline bool CreatedOnHasBeenSet() const { return m_createdOnHasBeenSet; }
114 inline void SetCreatedOn(const Aws::Utils::DateTime& value) { m_createdOnHasBeenSet = true; m_createdOn = value; }
115 inline void SetCreatedOn(Aws::Utils::DateTime&& value) { m_createdOnHasBeenSet = true; m_createdOn = std::move(value); }
116 inline MLTransform& WithCreatedOn(const Aws::Utils::DateTime& value) { SetCreatedOn(value); return *this;}
117 inline MLTransform& WithCreatedOn(Aws::Utils::DateTime&& value) { SetCreatedOn(std::move(value)); return *this;}
119
121
125 inline const Aws::Utils::DateTime& GetLastModifiedOn() const{ return m_lastModifiedOn; }
126 inline bool LastModifiedOnHasBeenSet() const { return m_lastModifiedOnHasBeenSet; }
127 inline void SetLastModifiedOn(const Aws::Utils::DateTime& value) { m_lastModifiedOnHasBeenSet = true; m_lastModifiedOn = value; }
128 inline void SetLastModifiedOn(Aws::Utils::DateTime&& value) { m_lastModifiedOnHasBeenSet = true; m_lastModifiedOn = std::move(value); }
129 inline MLTransform& WithLastModifiedOn(const Aws::Utils::DateTime& value) { SetLastModifiedOn(value); return *this;}
130 inline MLTransform& WithLastModifiedOn(Aws::Utils::DateTime&& value) { SetLastModifiedOn(std::move(value)); return *this;}
132
134
137 inline const Aws::Vector<GlueTable>& GetInputRecordTables() const{ return m_inputRecordTables; }
138 inline bool InputRecordTablesHasBeenSet() const { return m_inputRecordTablesHasBeenSet; }
139 inline void SetInputRecordTables(const Aws::Vector<GlueTable>& value) { m_inputRecordTablesHasBeenSet = true; m_inputRecordTables = value; }
140 inline void SetInputRecordTables(Aws::Vector<GlueTable>&& value) { m_inputRecordTablesHasBeenSet = true; m_inputRecordTables = std::move(value); }
142 inline MLTransform& WithInputRecordTables(Aws::Vector<GlueTable>&& value) { SetInputRecordTables(std::move(value)); return *this;}
143 inline MLTransform& AddInputRecordTables(const GlueTable& value) { m_inputRecordTablesHasBeenSet = true; m_inputRecordTables.push_back(value); return *this; }
144 inline MLTransform& AddInputRecordTables(GlueTable&& value) { m_inputRecordTablesHasBeenSet = true; m_inputRecordTables.push_back(std::move(value)); return *this; }
146
148
154 inline const TransformParameters& GetParameters() const{ return m_parameters; }
155 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
156 inline void SetParameters(const TransformParameters& value) { m_parametersHasBeenSet = true; m_parameters = value; }
157 inline void SetParameters(TransformParameters&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
158 inline MLTransform& WithParameters(const TransformParameters& value) { SetParameters(value); return *this;}
159 inline MLTransform& WithParameters(TransformParameters&& value) { SetParameters(std::move(value)); return *this;}
161
163
167 inline const EvaluationMetrics& GetEvaluationMetrics() const{ return m_evaluationMetrics; }
168 inline bool EvaluationMetricsHasBeenSet() const { return m_evaluationMetricsHasBeenSet; }
169 inline void SetEvaluationMetrics(const EvaluationMetrics& value) { m_evaluationMetricsHasBeenSet = true; m_evaluationMetrics = value; }
170 inline void SetEvaluationMetrics(EvaluationMetrics&& value) { m_evaluationMetricsHasBeenSet = true; m_evaluationMetrics = std::move(value); }
171 inline MLTransform& WithEvaluationMetrics(const EvaluationMetrics& value) { SetEvaluationMetrics(value); return *this;}
172 inline MLTransform& WithEvaluationMetrics(EvaluationMetrics&& value) { SetEvaluationMetrics(std::move(value)); return *this;}
174
176
181 inline int GetLabelCount() const{ return m_labelCount; }
182 inline bool LabelCountHasBeenSet() const { return m_labelCountHasBeenSet; }
183 inline void SetLabelCount(int value) { m_labelCountHasBeenSet = true; m_labelCount = value; }
184 inline MLTransform& WithLabelCount(int value) { SetLabelCount(value); return *this;}
186
188
192 inline const Aws::Vector<SchemaColumn>& GetSchema() const{ return m_schema; }
193 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
194 inline void SetSchema(const Aws::Vector<SchemaColumn>& value) { m_schemaHasBeenSet = true; m_schema = value; }
195 inline void SetSchema(Aws::Vector<SchemaColumn>&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); }
196 inline MLTransform& WithSchema(const Aws::Vector<SchemaColumn>& value) { SetSchema(value); return *this;}
197 inline MLTransform& WithSchema(Aws::Vector<SchemaColumn>&& value) { SetSchema(std::move(value)); return *this;}
198 inline MLTransform& AddSchema(const SchemaColumn& value) { m_schemaHasBeenSet = true; m_schema.push_back(value); return *this; }
199 inline MLTransform& AddSchema(SchemaColumn&& value) { m_schemaHasBeenSet = true; m_schema.push_back(std::move(value)); return *this; }
201
203
215 inline const Aws::String& GetRole() const{ return m_role; }
216 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
217 inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
218 inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
219 inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
220 inline MLTransform& WithRole(const Aws::String& value) { SetRole(value); return *this;}
221 inline MLTransform& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
222 inline MLTransform& WithRole(const char* value) { SetRole(value); return *this;}
224
226
234 inline const Aws::String& GetGlueVersion() const{ return m_glueVersion; }
235 inline bool GlueVersionHasBeenSet() const { return m_glueVersionHasBeenSet; }
236 inline void SetGlueVersion(const Aws::String& value) { m_glueVersionHasBeenSet = true; m_glueVersion = value; }
237 inline void SetGlueVersion(Aws::String&& value) { m_glueVersionHasBeenSet = true; m_glueVersion = std::move(value); }
238 inline void SetGlueVersion(const char* value) { m_glueVersionHasBeenSet = true; m_glueVersion.assign(value); }
239 inline MLTransform& WithGlueVersion(const Aws::String& value) { SetGlueVersion(value); return *this;}
240 inline MLTransform& WithGlueVersion(Aws::String&& value) { SetGlueVersion(std::move(value)); return *this;}
241 inline MLTransform& WithGlueVersion(const char* value) { SetGlueVersion(value); return *this;}
243
245
263 inline double GetMaxCapacity() const{ return m_maxCapacity; }
264 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
265 inline void SetMaxCapacity(double value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
266 inline MLTransform& WithMaxCapacity(double value) { SetMaxCapacity(value); return *this;}
268
270
289 inline const WorkerType& GetWorkerType() const{ return m_workerType; }
290 inline bool WorkerTypeHasBeenSet() const { return m_workerTypeHasBeenSet; }
291 inline void SetWorkerType(const WorkerType& value) { m_workerTypeHasBeenSet = true; m_workerType = value; }
292 inline void SetWorkerType(WorkerType&& value) { m_workerTypeHasBeenSet = true; m_workerType = std::move(value); }
293 inline MLTransform& WithWorkerType(const WorkerType& value) { SetWorkerType(value); return *this;}
294 inline MLTransform& WithWorkerType(WorkerType&& value) { SetWorkerType(std::move(value)); return *this;}
296
298
303 inline int GetNumberOfWorkers() const{ return m_numberOfWorkers; }
304 inline bool NumberOfWorkersHasBeenSet() const { return m_numberOfWorkersHasBeenSet; }
305 inline void SetNumberOfWorkers(int value) { m_numberOfWorkersHasBeenSet = true; m_numberOfWorkers = value; }
306 inline MLTransform& WithNumberOfWorkers(int value) { SetNumberOfWorkers(value); return *this;}
308
310
313 inline int GetTimeout() const{ return m_timeout; }
314 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
315 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
316 inline MLTransform& WithTimeout(int value) { SetTimeout(value); return *this;}
318
320
324 inline int GetMaxRetries() const{ return m_maxRetries; }
325 inline bool MaxRetriesHasBeenSet() const { return m_maxRetriesHasBeenSet; }
326 inline void SetMaxRetries(int value) { m_maxRetriesHasBeenSet = true; m_maxRetries = value; }
327 inline MLTransform& WithMaxRetries(int value) { SetMaxRetries(value); return *this;}
329
331
336 inline const TransformEncryption& GetTransformEncryption() const{ return m_transformEncryption; }
337 inline bool TransformEncryptionHasBeenSet() const { return m_transformEncryptionHasBeenSet; }
338 inline void SetTransformEncryption(const TransformEncryption& value) { m_transformEncryptionHasBeenSet = true; m_transformEncryption = value; }
339 inline void SetTransformEncryption(TransformEncryption&& value) { m_transformEncryptionHasBeenSet = true; m_transformEncryption = std::move(value); }
341 inline MLTransform& WithTransformEncryption(TransformEncryption&& value) { SetTransformEncryption(std::move(value)); return *this;}
343 private:
344
345 Aws::String m_transformId;
346 bool m_transformIdHasBeenSet = false;
347
348 Aws::String m_name;
349 bool m_nameHasBeenSet = false;
350
351 Aws::String m_description;
352 bool m_descriptionHasBeenSet = false;
353
354 TransformStatusType m_status;
355 bool m_statusHasBeenSet = false;
356
357 Aws::Utils::DateTime m_createdOn;
358 bool m_createdOnHasBeenSet = false;
359
360 Aws::Utils::DateTime m_lastModifiedOn;
361 bool m_lastModifiedOnHasBeenSet = false;
362
363 Aws::Vector<GlueTable> m_inputRecordTables;
364 bool m_inputRecordTablesHasBeenSet = false;
365
366 TransformParameters m_parameters;
367 bool m_parametersHasBeenSet = false;
368
369 EvaluationMetrics m_evaluationMetrics;
370 bool m_evaluationMetricsHasBeenSet = false;
371
372 int m_labelCount;
373 bool m_labelCountHasBeenSet = false;
374
376 bool m_schemaHasBeenSet = false;
377
378 Aws::String m_role;
379 bool m_roleHasBeenSet = false;
380
381 Aws::String m_glueVersion;
382 bool m_glueVersionHasBeenSet = false;
383
384 double m_maxCapacity;
385 bool m_maxCapacityHasBeenSet = false;
386
387 WorkerType m_workerType;
388 bool m_workerTypeHasBeenSet = false;
389
390 int m_numberOfWorkers;
391 bool m_numberOfWorkersHasBeenSet = false;
392
393 int m_timeout;
394 bool m_timeoutHasBeenSet = false;
395
396 int m_maxRetries;
397 bool m_maxRetriesHasBeenSet = false;
398
399 TransformEncryption m_transformEncryption;
400 bool m_transformEncryptionHasBeenSet = false;
401 };
402
403} // namespace Model
404} // namespace Glue
405} // namespace Aws
MLTransform & WithNumberOfWorkers(int value)
const Aws::String & GetName() const
Definition MLTransform.h:69
void SetEvaluationMetrics(const EvaluationMetrics &value)
void SetStatus(TransformStatusType &&value)
MLTransform & WithRole(const Aws::String &value)
void SetWorkerType(const WorkerType &value)
void SetName(Aws::String &&value)
Definition MLTransform.h:72
MLTransform & WithStatus(TransformStatusType &&value)
MLTransform & WithGlueVersion(const char *value)
const Aws::String & GetDescription() const
Definition MLTransform.h:85
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
MLTransform & WithParameters(TransformParameters &&value)
void SetRole(const Aws::String &value)
MLTransform & WithLastModifiedOn(const Aws::Utils::DateTime &value)
bool NumberOfWorkersHasBeenSet() const
const Aws::Vector< SchemaColumn > & GetSchema() const
void SetSchema(const Aws::Vector< SchemaColumn > &value)
MLTransform & AddSchema(SchemaColumn &&value)
MLTransform & WithTransformId(const char *value)
Definition MLTransform.h:61
MLTransform & WithName(const char *value)
Definition MLTransform.h:76
void SetCreatedOn(Aws::Utils::DateTime &&value)
MLTransform & WithEvaluationMetrics(EvaluationMetrics &&value)
MLTransform & WithSchema(const Aws::Vector< SchemaColumn > &value)
MLTransform & WithTransformId(Aws::String &&value)
Definition MLTransform.h:60
bool TransformEncryptionHasBeenSet() const
void SetTransformId(const Aws::String &value)
Definition MLTransform.h:56
MLTransform & WithRole(Aws::String &&value)
const Aws::String & GetGlueVersion() const
const Aws::Vector< GlueTable > & GetInputRecordTables() const
const Aws::String & GetTransformId() const
Definition MLTransform.h:54
const WorkerType & GetWorkerType() const
MLTransform & WithName(const Aws::String &value)
Definition MLTransform.h:74
MLTransform & WithDescription(Aws::String &&value)
Definition MLTransform.h:91
MLTransform & AddInputRecordTables(GlueTable &&value)
void SetTransformEncryption(TransformEncryption &&value)
void SetParameters(TransformParameters &&value)
MLTransform & WithTimeout(int value)
void SetMaxCapacity(double value)
MLTransform & WithTransformId(const Aws::String &value)
Definition MLTransform.h:59
MLTransform & WithLabelCount(int value)
void SetWorkerType(WorkerType &&value)
void SetGlueVersion(Aws::String &&value)
const TransformStatusType & GetStatus() const
Definition MLTransform.h:99
bool LastModifiedOnHasBeenSet() const
MLTransform & WithMaxCapacity(double value)
const Aws::Utils::DateTime & GetCreatedOn() const
void SetTransformId(const char *value)
Definition MLTransform.h:58
MLTransform & WithTransformEncryption(const TransformEncryption &value)
AWS_GLUE_API MLTransform & operator=(Aws::Utils::Json::JsonView jsonValue)
MLTransform & WithWorkerType(WorkerType &&value)
MLTransform & WithStatus(const TransformStatusType &value)
const EvaluationMetrics & GetEvaluationMetrics() const
MLTransform & WithName(Aws::String &&value)
Definition MLTransform.h:75
void SetName(const Aws::String &value)
Definition MLTransform.h:71
MLTransform & WithEvaluationMetrics(const EvaluationMetrics &value)
void SetStatus(const TransformStatusType &value)
const Aws::Utils::DateTime & GetLastModifiedOn() const
void SetDescription(Aws::String &&value)
Definition MLTransform.h:88
bool InputRecordTablesHasBeenSet() const
MLTransform & WithGlueVersion(Aws::String &&value)
void SetRole(Aws::String &&value)
void SetInputRecordTables(const Aws::Vector< GlueTable > &value)
MLTransform & AddSchema(const SchemaColumn &value)
void SetEvaluationMetrics(EvaluationMetrics &&value)
MLTransform & WithCreatedOn(Aws::Utils::DateTime &&value)
void SetInputRecordTables(Aws::Vector< GlueTable > &&value)
void SetLastModifiedOn(Aws::Utils::DateTime &&value)
void SetDescription(const char *value)
Definition MLTransform.h:89
MLTransform & WithCreatedOn(const Aws::Utils::DateTime &value)
MLTransform & WithRole(const char *value)
void SetRole(const char *value)
MLTransform & WithLastModifiedOn(Aws::Utils::DateTime &&value)
const TransformEncryption & GetTransformEncryption() const
void SetNumberOfWorkers(int value)
void SetParameters(const TransformParameters &value)
MLTransform & WithDescription(const Aws::String &value)
Definition MLTransform.h:90
void SetGlueVersion(const Aws::String &value)
MLTransform & WithParameters(const TransformParameters &value)
bool EvaluationMetricsHasBeenSet() const
MLTransform & WithMaxRetries(int value)
void SetTransformId(Aws::String &&value)
Definition MLTransform.h:57
void SetSchema(Aws::Vector< SchemaColumn > &&value)
const TransformParameters & GetParameters() const
const Aws::String & GetRole() const
void SetCreatedOn(const Aws::Utils::DateTime &value)
MLTransform & WithTransformEncryption(TransformEncryption &&value)
MLTransform & WithInputRecordTables(const Aws::Vector< GlueTable > &value)
AWS_GLUE_API MLTransform(Aws::Utils::Json::JsonView jsonValue)
void SetLastModifiedOn(const Aws::Utils::DateTime &value)
void SetDescription(const Aws::String &value)
Definition MLTransform.h:87
void SetGlueVersion(const char *value)
MLTransform & WithWorkerType(const WorkerType &value)
MLTransform & WithGlueVersion(const Aws::String &value)
MLTransform & AddInputRecordTables(const GlueTable &value)
void SetName(const char *value)
Definition MLTransform.h:73
MLTransform & WithDescription(const char *value)
Definition MLTransform.h:92
MLTransform & WithInputRecordTables(Aws::Vector< GlueTable > &&value)
MLTransform & WithSchema(Aws::Vector< SchemaColumn > &&value)
void SetTransformEncryption(const TransformEncryption &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