AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateMLTransformRequest.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/GlueRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/glue/model/TransformParameters.h>
12#include <aws/glue/model/WorkerType.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/glue/model/TransformEncryption.h>
15#include <aws/glue/model/GlueTable.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Glue
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_GLUE_API CreateMLTransformRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateMLTransform"; }
37
38 AWS_GLUE_API Aws::String SerializePayload() const override;
39
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 CreateMLTransformRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template<typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
64 template<typename DescriptionT = Aws::String>
65 CreateMLTransformRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
67
69
72 inline const Aws::Vector<GlueTable>& GetInputRecordTables() const { return m_inputRecordTables; }
73 inline bool InputRecordTablesHasBeenSet() const { return m_inputRecordTablesHasBeenSet; }
74 template<typename InputRecordTablesT = Aws::Vector<GlueTable>>
75 void SetInputRecordTables(InputRecordTablesT&& value) { m_inputRecordTablesHasBeenSet = true; m_inputRecordTables = std::forward<InputRecordTablesT>(value); }
76 template<typename InputRecordTablesT = Aws::Vector<GlueTable>>
77 CreateMLTransformRequest& WithInputRecordTables(InputRecordTablesT&& value) { SetInputRecordTables(std::forward<InputRecordTablesT>(value)); return *this;}
78 template<typename InputRecordTablesT = GlueTable>
79 CreateMLTransformRequest& AddInputRecordTables(InputRecordTablesT&& value) { m_inputRecordTablesHasBeenSet = true; m_inputRecordTables.emplace_back(std::forward<InputRecordTablesT>(value)); return *this; }
81
83
87 inline const TransformParameters& GetParameters() const { return m_parameters; }
88 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
89 template<typename ParametersT = TransformParameters>
90 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
91 template<typename ParametersT = TransformParameters>
92 CreateMLTransformRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
94
96
108 inline const Aws::String& GetRole() const { return m_role; }
109 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
110 template<typename RoleT = Aws::String>
111 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
112 template<typename RoleT = Aws::String>
113 CreateMLTransformRequest& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
115
117
125 inline const Aws::String& GetGlueVersion() const { return m_glueVersion; }
126 inline bool GlueVersionHasBeenSet() const { return m_glueVersionHasBeenSet; }
127 template<typename GlueVersionT = Aws::String>
128 void SetGlueVersion(GlueVersionT&& value) { m_glueVersionHasBeenSet = true; m_glueVersion = std::forward<GlueVersionT>(value); }
129 template<typename GlueVersionT = Aws::String>
130 CreateMLTransformRequest& WithGlueVersion(GlueVersionT&& value) { SetGlueVersion(std::forward<GlueVersionT>(value)); return *this;}
132
134
155 inline double GetMaxCapacity() const { return m_maxCapacity; }
156 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
157 inline void SetMaxCapacity(double value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
158 inline CreateMLTransformRequest& WithMaxCapacity(double value) { SetMaxCapacity(value); return *this;}
160
162
181 inline WorkerType GetWorkerType() const { return m_workerType; }
182 inline bool WorkerTypeHasBeenSet() const { return m_workerTypeHasBeenSet; }
183 inline void SetWorkerType(WorkerType value) { m_workerTypeHasBeenSet = true; m_workerType = value; }
184 inline CreateMLTransformRequest& WithWorkerType(WorkerType value) { SetWorkerType(value); return *this;}
186
188
193 inline int GetNumberOfWorkers() const { return m_numberOfWorkers; }
194 inline bool NumberOfWorkersHasBeenSet() const { return m_numberOfWorkersHasBeenSet; }
195 inline void SetNumberOfWorkers(int value) { m_numberOfWorkersHasBeenSet = true; m_numberOfWorkers = value; }
196 inline CreateMLTransformRequest& WithNumberOfWorkers(int value) { SetNumberOfWorkers(value); return *this;}
198
200
206 inline int GetTimeout() const { return m_timeout; }
207 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
208 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
209 inline CreateMLTransformRequest& WithTimeout(int value) { SetTimeout(value); return *this;}
211
213
217 inline int GetMaxRetries() const { return m_maxRetries; }
218 inline bool MaxRetriesHasBeenSet() const { return m_maxRetriesHasBeenSet; }
219 inline void SetMaxRetries(int value) { m_maxRetriesHasBeenSet = true; m_maxRetries = value; }
220 inline CreateMLTransformRequest& WithMaxRetries(int value) { SetMaxRetries(value); return *this;}
222
224
231 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
232 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
233 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
234 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
235 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
236 CreateMLTransformRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
237 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
238 CreateMLTransformRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
239 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
240 }
242
244
249 inline const TransformEncryption& GetTransformEncryption() const { return m_transformEncryption; }
250 inline bool TransformEncryptionHasBeenSet() const { return m_transformEncryptionHasBeenSet; }
251 template<typename TransformEncryptionT = TransformEncryption>
252 void SetTransformEncryption(TransformEncryptionT&& value) { m_transformEncryptionHasBeenSet = true; m_transformEncryption = std::forward<TransformEncryptionT>(value); }
253 template<typename TransformEncryptionT = TransformEncryption>
254 CreateMLTransformRequest& WithTransformEncryption(TransformEncryptionT&& value) { SetTransformEncryption(std::forward<TransformEncryptionT>(value)); return *this;}
256 private:
257
258 Aws::String m_name;
259 bool m_nameHasBeenSet = false;
260
261 Aws::String m_description;
262 bool m_descriptionHasBeenSet = false;
263
264 Aws::Vector<GlueTable> m_inputRecordTables;
265 bool m_inputRecordTablesHasBeenSet = false;
266
267 TransformParameters m_parameters;
268 bool m_parametersHasBeenSet = false;
269
270 Aws::String m_role;
271 bool m_roleHasBeenSet = false;
272
273 Aws::String m_glueVersion;
274 bool m_glueVersionHasBeenSet = false;
275
276 double m_maxCapacity{0.0};
277 bool m_maxCapacityHasBeenSet = false;
278
279 WorkerType m_workerType{WorkerType::NOT_SET};
280 bool m_workerTypeHasBeenSet = false;
281
282 int m_numberOfWorkers{0};
283 bool m_numberOfWorkersHasBeenSet = false;
284
285 int m_timeout{0};
286 bool m_timeoutHasBeenSet = false;
287
288 int m_maxRetries{0};
289 bool m_maxRetriesHasBeenSet = false;
290
292 bool m_tagsHasBeenSet = false;
293
294 TransformEncryption m_transformEncryption;
295 bool m_transformEncryptionHasBeenSet = false;
296 };
297
298} // namespace Model
299} // namespace Glue
300} // namespace Aws
const Aws::Vector< GlueTable > & GetInputRecordTables() const
const TransformEncryption & GetTransformEncryption() const
CreateMLTransformRequest & AddInputRecordTables(InputRecordTablesT &&value)
CreateMLTransformRequest & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateMLTransformRequest & WithTimeout(int value)
CreateMLTransformRequest & WithName(NameT &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateMLTransformRequest & WithTransformEncryption(TransformEncryptionT &&value)
AWS_GLUE_API CreateMLTransformRequest()=default
void SetInputRecordTables(InputRecordTablesT &&value)
CreateMLTransformRequest & WithParameters(ParametersT &&value)
CreateMLTransformRequest & WithWorkerType(WorkerType value)
CreateMLTransformRequest & WithInputRecordTables(InputRecordTablesT &&value)
CreateMLTransformRequest & WithMaxRetries(int value)
CreateMLTransformRequest & WithGlueVersion(GlueVersionT &&value)
virtual const char * GetServiceRequestName() const override
CreateMLTransformRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetTransformEncryption(TransformEncryptionT &&value)
CreateMLTransformRequest & WithTags(TagsT &&value)
CreateMLTransformRequest & WithNumberOfWorkers(int value)
CreateMLTransformRequest & WithRole(RoleT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
CreateMLTransformRequest & WithMaxCapacity(double value)
const TransformParameters & GetParameters() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector