AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename TransformIdT = Aws::String>
57 void SetTransformId(TransformIdT&& value) { m_transformIdHasBeenSet = true; m_transformId = std::forward<TransformIdT>(value); }
58 template<typename TransformIdT = Aws::String>
59 MLTransform& WithTransformId(TransformIdT&& value) { SetTransformId(std::forward<TransformIdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
71 template<typename NameT = Aws::String>
72 MLTransform& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
74
76
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template<typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
85 template<typename DescriptionT = Aws::String>
86 MLTransform& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
88
90
93 inline TransformStatusType GetStatus() const { return m_status; }
94 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
95 inline void SetStatus(TransformStatusType value) { m_statusHasBeenSet = true; m_status = value; }
96 inline MLTransform& WithStatus(TransformStatusType value) { SetStatus(value); return *this;}
98
100
104 inline const Aws::Utils::DateTime& GetCreatedOn() const { return m_createdOn; }
105 inline bool CreatedOnHasBeenSet() const { return m_createdOnHasBeenSet; }
106 template<typename CreatedOnT = Aws::Utils::DateTime>
107 void SetCreatedOn(CreatedOnT&& value) { m_createdOnHasBeenSet = true; m_createdOn = std::forward<CreatedOnT>(value); }
108 template<typename CreatedOnT = Aws::Utils::DateTime>
109 MLTransform& WithCreatedOn(CreatedOnT&& value) { SetCreatedOn(std::forward<CreatedOnT>(value)); return *this;}
111
113
117 inline const Aws::Utils::DateTime& GetLastModifiedOn() const { return m_lastModifiedOn; }
118 inline bool LastModifiedOnHasBeenSet() const { return m_lastModifiedOnHasBeenSet; }
119 template<typename LastModifiedOnT = Aws::Utils::DateTime>
120 void SetLastModifiedOn(LastModifiedOnT&& value) { m_lastModifiedOnHasBeenSet = true; m_lastModifiedOn = std::forward<LastModifiedOnT>(value); }
121 template<typename LastModifiedOnT = Aws::Utils::DateTime>
122 MLTransform& WithLastModifiedOn(LastModifiedOnT&& value) { SetLastModifiedOn(std::forward<LastModifiedOnT>(value)); return *this;}
124
126
129 inline const Aws::Vector<GlueTable>& GetInputRecordTables() const { return m_inputRecordTables; }
130 inline bool InputRecordTablesHasBeenSet() const { return m_inputRecordTablesHasBeenSet; }
131 template<typename InputRecordTablesT = Aws::Vector<GlueTable>>
132 void SetInputRecordTables(InputRecordTablesT&& value) { m_inputRecordTablesHasBeenSet = true; m_inputRecordTables = std::forward<InputRecordTablesT>(value); }
133 template<typename InputRecordTablesT = Aws::Vector<GlueTable>>
134 MLTransform& WithInputRecordTables(InputRecordTablesT&& value) { SetInputRecordTables(std::forward<InputRecordTablesT>(value)); return *this;}
135 template<typename InputRecordTablesT = GlueTable>
136 MLTransform& AddInputRecordTables(InputRecordTablesT&& value) { m_inputRecordTablesHasBeenSet = true; m_inputRecordTables.emplace_back(std::forward<InputRecordTablesT>(value)); return *this; }
138
140
146 inline const TransformParameters& GetParameters() const { return m_parameters; }
147 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
148 template<typename ParametersT = TransformParameters>
149 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
150 template<typename ParametersT = TransformParameters>
151 MLTransform& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
153
155
159 inline const EvaluationMetrics& GetEvaluationMetrics() const { return m_evaluationMetrics; }
160 inline bool EvaluationMetricsHasBeenSet() const { return m_evaluationMetricsHasBeenSet; }
161 template<typename EvaluationMetricsT = EvaluationMetrics>
162 void SetEvaluationMetrics(EvaluationMetricsT&& value) { m_evaluationMetricsHasBeenSet = true; m_evaluationMetrics = std::forward<EvaluationMetricsT>(value); }
163 template<typename EvaluationMetricsT = EvaluationMetrics>
164 MLTransform& WithEvaluationMetrics(EvaluationMetricsT&& value) { SetEvaluationMetrics(std::forward<EvaluationMetricsT>(value)); return *this;}
166
168
173 inline int GetLabelCount() const { return m_labelCount; }
174 inline bool LabelCountHasBeenSet() const { return m_labelCountHasBeenSet; }
175 inline void SetLabelCount(int value) { m_labelCountHasBeenSet = true; m_labelCount = value; }
176 inline MLTransform& WithLabelCount(int value) { SetLabelCount(value); return *this;}
178
180
184 inline const Aws::Vector<SchemaColumn>& GetSchema() const { return m_schema; }
185 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
186 template<typename SchemaT = Aws::Vector<SchemaColumn>>
187 void SetSchema(SchemaT&& value) { m_schemaHasBeenSet = true; m_schema = std::forward<SchemaT>(value); }
188 template<typename SchemaT = Aws::Vector<SchemaColumn>>
189 MLTransform& WithSchema(SchemaT&& value) { SetSchema(std::forward<SchemaT>(value)); return *this;}
190 template<typename SchemaT = SchemaColumn>
191 MLTransform& AddSchema(SchemaT&& value) { m_schemaHasBeenSet = true; m_schema.emplace_back(std::forward<SchemaT>(value)); return *this; }
193
195
207 inline const Aws::String& GetRole() const { return m_role; }
208 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
209 template<typename RoleT = Aws::String>
210 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
211 template<typename RoleT = Aws::String>
212 MLTransform& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
214
216
224 inline const Aws::String& GetGlueVersion() const { return m_glueVersion; }
225 inline bool GlueVersionHasBeenSet() const { return m_glueVersionHasBeenSet; }
226 template<typename GlueVersionT = Aws::String>
227 void SetGlueVersion(GlueVersionT&& value) { m_glueVersionHasBeenSet = true; m_glueVersion = std::forward<GlueVersionT>(value); }
228 template<typename GlueVersionT = Aws::String>
229 MLTransform& WithGlueVersion(GlueVersionT&& value) { SetGlueVersion(std::forward<GlueVersionT>(value)); return *this;}
231
233
251 inline double GetMaxCapacity() const { return m_maxCapacity; }
252 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
253 inline void SetMaxCapacity(double value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
254 inline MLTransform& WithMaxCapacity(double value) { SetMaxCapacity(value); return *this;}
256
258
277 inline WorkerType GetWorkerType() const { return m_workerType; }
278 inline bool WorkerTypeHasBeenSet() const { return m_workerTypeHasBeenSet; }
279 inline void SetWorkerType(WorkerType value) { m_workerTypeHasBeenSet = true; m_workerType = value; }
280 inline MLTransform& WithWorkerType(WorkerType value) { SetWorkerType(value); return *this;}
282
284
289 inline int GetNumberOfWorkers() const { return m_numberOfWorkers; }
290 inline bool NumberOfWorkersHasBeenSet() const { return m_numberOfWorkersHasBeenSet; }
291 inline void SetNumberOfWorkers(int value) { m_numberOfWorkersHasBeenSet = true; m_numberOfWorkers = value; }
292 inline MLTransform& WithNumberOfWorkers(int value) { SetNumberOfWorkers(value); return *this;}
294
296
299 inline int GetTimeout() const { return m_timeout; }
300 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
301 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
302 inline MLTransform& WithTimeout(int value) { SetTimeout(value); return *this;}
304
306
310 inline int GetMaxRetries() const { return m_maxRetries; }
311 inline bool MaxRetriesHasBeenSet() const { return m_maxRetriesHasBeenSet; }
312 inline void SetMaxRetries(int value) { m_maxRetriesHasBeenSet = true; m_maxRetries = value; }
313 inline MLTransform& WithMaxRetries(int value) { SetMaxRetries(value); return *this;}
315
317
322 inline const TransformEncryption& GetTransformEncryption() const { return m_transformEncryption; }
323 inline bool TransformEncryptionHasBeenSet() const { return m_transformEncryptionHasBeenSet; }
324 template<typename TransformEncryptionT = TransformEncryption>
325 void SetTransformEncryption(TransformEncryptionT&& value) { m_transformEncryptionHasBeenSet = true; m_transformEncryption = std::forward<TransformEncryptionT>(value); }
326 template<typename TransformEncryptionT = TransformEncryption>
327 MLTransform& WithTransformEncryption(TransformEncryptionT&& value) { SetTransformEncryption(std::forward<TransformEncryptionT>(value)); return *this;}
329 private:
330
331 Aws::String m_transformId;
332 bool m_transformIdHasBeenSet = false;
333
334 Aws::String m_name;
335 bool m_nameHasBeenSet = false;
336
337 Aws::String m_description;
338 bool m_descriptionHasBeenSet = false;
339
341 bool m_statusHasBeenSet = false;
342
343 Aws::Utils::DateTime m_createdOn{};
344 bool m_createdOnHasBeenSet = false;
345
346 Aws::Utils::DateTime m_lastModifiedOn{};
347 bool m_lastModifiedOnHasBeenSet = false;
348
349 Aws::Vector<GlueTable> m_inputRecordTables;
350 bool m_inputRecordTablesHasBeenSet = false;
351
352 TransformParameters m_parameters;
353 bool m_parametersHasBeenSet = false;
354
355 EvaluationMetrics m_evaluationMetrics;
356 bool m_evaluationMetricsHasBeenSet = false;
357
358 int m_labelCount{0};
359 bool m_labelCountHasBeenSet = false;
360
362 bool m_schemaHasBeenSet = false;
363
364 Aws::String m_role;
365 bool m_roleHasBeenSet = false;
366
367 Aws::String m_glueVersion;
368 bool m_glueVersionHasBeenSet = false;
369
370 double m_maxCapacity{0.0};
371 bool m_maxCapacityHasBeenSet = false;
372
373 WorkerType m_workerType{WorkerType::NOT_SET};
374 bool m_workerTypeHasBeenSet = false;
375
376 int m_numberOfWorkers{0};
377 bool m_numberOfWorkersHasBeenSet = false;
378
379 int m_timeout{0};
380 bool m_timeoutHasBeenSet = false;
381
382 int m_maxRetries{0};
383 bool m_maxRetriesHasBeenSet = false;
384
385 TransformEncryption m_transformEncryption;
386 bool m_transformEncryptionHasBeenSet = false;
387 };
388
389} // namespace Model
390} // namespace Glue
391} // namespace Aws
MLTransform & WithNumberOfWorkers(int value)
const Aws::String & GetName() const
Definition MLTransform.h:67
void SetDescription(DescriptionT &&value)
Definition MLTransform.h:84
TransformStatusType GetStatus() const
Definition MLTransform.h:93
const Aws::String & GetDescription() const
Definition MLTransform.h:81
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:72
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:54
MLTransform & WithCreatedOn(CreatedOnT &&value)
MLTransform & WithTimeout(int value)
void SetParameters(ParametersT &&value)
void SetMaxCapacity(double value)
MLTransform & WithLabelCount(int value)
void SetStatus(TransformStatusType value)
Definition MLTransform.h:95
MLTransform & WithGlueVersion(GlueVersionT &&value)
void SetSchema(SchemaT &&value)
void SetTransformId(TransformIdT &&value)
Definition MLTransform.h:57
bool LastModifiedOnHasBeenSet() const
MLTransform & WithStatus(TransformStatusType value)
Definition MLTransform.h:96
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:86
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:59
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