AWS SDK for C++

AWS SDK for C++ Version 1.11.680

Loading...
Searching...
No Matches
CreateModelRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/UUID.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lookoutequipment/LookoutEquipmentRequest.h>
12#include <aws/lookoutequipment/LookoutEquipment_EXPORTS.h>
13#include <aws/lookoutequipment/model/DataPreProcessingConfiguration.h>
14#include <aws/lookoutequipment/model/DatasetSchema.h>
15#include <aws/lookoutequipment/model/LabelsInputConfiguration.h>
16#include <aws/lookoutequipment/model/ModelDiagnosticsOutputConfiguration.h>
17#include <aws/lookoutequipment/model/Tag.h>
18
19#include <utility>
20
21namespace Aws {
22namespace LookoutEquipment {
23namespace Model {
24
28 public:
29 AWS_LOOKOUTEQUIPMENT_API CreateModelRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateModel"; }
36
37 AWS_LOOKOUTEQUIPMENT_API Aws::String SerializePayload() const override;
38
39 AWS_LOOKOUTEQUIPMENT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
42
45 inline const Aws::String& GetModelName() const { return m_modelName; }
46 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
47 template <typename ModelNameT = Aws::String>
48 void SetModelName(ModelNameT&& value) {
49 m_modelNameHasBeenSet = true;
50 m_modelName = std::forward<ModelNameT>(value);
51 }
52 template <typename ModelNameT = Aws::String>
53 CreateModelRequest& WithModelName(ModelNameT&& value) {
54 SetModelName(std::forward<ModelNameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDatasetName() const { return m_datasetName; }
64 inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }
65 template <typename DatasetNameT = Aws::String>
66 void SetDatasetName(DatasetNameT&& value) {
67 m_datasetNameHasBeenSet = true;
68 m_datasetName = std::forward<DatasetNameT>(value);
69 }
70 template <typename DatasetNameT = Aws::String>
71 CreateModelRequest& WithDatasetName(DatasetNameT&& value) {
72 SetDatasetName(std::forward<DatasetNameT>(value));
73 return *this;
74 }
76
78
81 inline const DatasetSchema& GetDatasetSchema() const { return m_datasetSchema; }
82 inline bool DatasetSchemaHasBeenSet() const { return m_datasetSchemaHasBeenSet; }
83 template <typename DatasetSchemaT = DatasetSchema>
84 void SetDatasetSchema(DatasetSchemaT&& value) {
85 m_datasetSchemaHasBeenSet = true;
86 m_datasetSchema = std::forward<DatasetSchemaT>(value);
87 }
88 template <typename DatasetSchemaT = DatasetSchema>
89 CreateModelRequest& WithDatasetSchema(DatasetSchemaT&& value) {
90 SetDatasetSchema(std::forward<DatasetSchemaT>(value));
91 return *this;
92 }
94
96
100 inline const LabelsInputConfiguration& GetLabelsInputConfiguration() const { return m_labelsInputConfiguration; }
101 inline bool LabelsInputConfigurationHasBeenSet() const { return m_labelsInputConfigurationHasBeenSet; }
102 template <typename LabelsInputConfigurationT = LabelsInputConfiguration>
103 void SetLabelsInputConfiguration(LabelsInputConfigurationT&& value) {
104 m_labelsInputConfigurationHasBeenSet = true;
105 m_labelsInputConfiguration = std::forward<LabelsInputConfigurationT>(value);
106 }
107 template <typename LabelsInputConfigurationT = LabelsInputConfiguration>
108 CreateModelRequest& WithLabelsInputConfiguration(LabelsInputConfigurationT&& value) {
109 SetLabelsInputConfiguration(std::forward<LabelsInputConfigurationT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::String& GetClientToken() const { return m_clientToken; }
120 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
121 template <typename ClientTokenT = Aws::String>
122 void SetClientToken(ClientTokenT&& value) {
123 m_clientTokenHasBeenSet = true;
124 m_clientToken = std::forward<ClientTokenT>(value);
125 }
126 template <typename ClientTokenT = Aws::String>
127 CreateModelRequest& WithClientToken(ClientTokenT&& value) {
128 SetClientToken(std::forward<ClientTokenT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::Utils::DateTime& GetTrainingDataStartTime() const { return m_trainingDataStartTime; }
139 inline bool TrainingDataStartTimeHasBeenSet() const { return m_trainingDataStartTimeHasBeenSet; }
140 template <typename TrainingDataStartTimeT = Aws::Utils::DateTime>
141 void SetTrainingDataStartTime(TrainingDataStartTimeT&& value) {
142 m_trainingDataStartTimeHasBeenSet = true;
143 m_trainingDataStartTime = std::forward<TrainingDataStartTimeT>(value);
144 }
145 template <typename TrainingDataStartTimeT = Aws::Utils::DateTime>
146 CreateModelRequest& WithTrainingDataStartTime(TrainingDataStartTimeT&& value) {
147 SetTrainingDataStartTime(std::forward<TrainingDataStartTimeT>(value));
148 return *this;
149 }
151
153
157 inline const Aws::Utils::DateTime& GetTrainingDataEndTime() const { return m_trainingDataEndTime; }
158 inline bool TrainingDataEndTimeHasBeenSet() const { return m_trainingDataEndTimeHasBeenSet; }
159 template <typename TrainingDataEndTimeT = Aws::Utils::DateTime>
160 void SetTrainingDataEndTime(TrainingDataEndTimeT&& value) {
161 m_trainingDataEndTimeHasBeenSet = true;
162 m_trainingDataEndTime = std::forward<TrainingDataEndTimeT>(value);
163 }
164 template <typename TrainingDataEndTimeT = Aws::Utils::DateTime>
165 CreateModelRequest& WithTrainingDataEndTime(TrainingDataEndTimeT&& value) {
166 SetTrainingDataEndTime(std::forward<TrainingDataEndTimeT>(value));
167 return *this;
168 }
170
172
176 inline const Aws::Utils::DateTime& GetEvaluationDataStartTime() const { return m_evaluationDataStartTime; }
177 inline bool EvaluationDataStartTimeHasBeenSet() const { return m_evaluationDataStartTimeHasBeenSet; }
178 template <typename EvaluationDataStartTimeT = Aws::Utils::DateTime>
179 void SetEvaluationDataStartTime(EvaluationDataStartTimeT&& value) {
180 m_evaluationDataStartTimeHasBeenSet = true;
181 m_evaluationDataStartTime = std::forward<EvaluationDataStartTimeT>(value);
182 }
183 template <typename EvaluationDataStartTimeT = Aws::Utils::DateTime>
184 CreateModelRequest& WithEvaluationDataStartTime(EvaluationDataStartTimeT&& value) {
185 SetEvaluationDataStartTime(std::forward<EvaluationDataStartTimeT>(value));
186 return *this;
187 }
189
191
195 inline const Aws::Utils::DateTime& GetEvaluationDataEndTime() const { return m_evaluationDataEndTime; }
196 inline bool EvaluationDataEndTimeHasBeenSet() const { return m_evaluationDataEndTimeHasBeenSet; }
197 template <typename EvaluationDataEndTimeT = Aws::Utils::DateTime>
198 void SetEvaluationDataEndTime(EvaluationDataEndTimeT&& value) {
199 m_evaluationDataEndTimeHasBeenSet = true;
200 m_evaluationDataEndTime = std::forward<EvaluationDataEndTimeT>(value);
201 }
202 template <typename EvaluationDataEndTimeT = Aws::Utils::DateTime>
203 CreateModelRequest& WithEvaluationDataEndTime(EvaluationDataEndTimeT&& value) {
204 SetEvaluationDataEndTime(std::forward<EvaluationDataEndTimeT>(value));
205 return *this;
206 }
208
210
214 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
215 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
216 template <typename RoleArnT = Aws::String>
217 void SetRoleArn(RoleArnT&& value) {
218 m_roleArnHasBeenSet = true;
219 m_roleArn = std::forward<RoleArnT>(value);
220 }
221 template <typename RoleArnT = Aws::String>
222 CreateModelRequest& WithRoleArn(RoleArnT&& value) {
223 SetRoleArn(std::forward<RoleArnT>(value));
224 return *this;
225 }
227
229
240 inline const DataPreProcessingConfiguration& GetDataPreProcessingConfiguration() const { return m_dataPreProcessingConfiguration; }
241 inline bool DataPreProcessingConfigurationHasBeenSet() const { return m_dataPreProcessingConfigurationHasBeenSet; }
242 template <typename DataPreProcessingConfigurationT = DataPreProcessingConfiguration>
243 void SetDataPreProcessingConfiguration(DataPreProcessingConfigurationT&& value) {
244 m_dataPreProcessingConfigurationHasBeenSet = true;
245 m_dataPreProcessingConfiguration = std::forward<DataPreProcessingConfigurationT>(value);
246 }
247 template <typename DataPreProcessingConfigurationT = DataPreProcessingConfiguration>
248 CreateModelRequest& WithDataPreProcessingConfiguration(DataPreProcessingConfigurationT&& value) {
249 SetDataPreProcessingConfiguration(std::forward<DataPreProcessingConfigurationT>(value));
250 return *this;
251 }
253
255
259 inline const Aws::String& GetServerSideKmsKeyId() const { return m_serverSideKmsKeyId; }
260 inline bool ServerSideKmsKeyIdHasBeenSet() const { return m_serverSideKmsKeyIdHasBeenSet; }
261 template <typename ServerSideKmsKeyIdT = Aws::String>
262 void SetServerSideKmsKeyId(ServerSideKmsKeyIdT&& value) {
263 m_serverSideKmsKeyIdHasBeenSet = true;
264 m_serverSideKmsKeyId = std::forward<ServerSideKmsKeyIdT>(value);
265 }
266 template <typename ServerSideKmsKeyIdT = Aws::String>
267 CreateModelRequest& WithServerSideKmsKeyId(ServerSideKmsKeyIdT&& value) {
268 SetServerSideKmsKeyId(std::forward<ServerSideKmsKeyIdT>(value));
269 return *this;
270 }
272
274
277 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
278 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
279 template <typename TagsT = Aws::Vector<Tag>>
280 void SetTags(TagsT&& value) {
281 m_tagsHasBeenSet = true;
282 m_tags = std::forward<TagsT>(value);
283 }
284 template <typename TagsT = Aws::Vector<Tag>>
285 CreateModelRequest& WithTags(TagsT&& value) {
286 SetTags(std::forward<TagsT>(value));
287 return *this;
288 }
289 template <typename TagsT = Tag>
290 CreateModelRequest& AddTags(TagsT&& value) {
291 m_tagsHasBeenSet = true;
292 m_tags.emplace_back(std::forward<TagsT>(value));
293 return *this;
294 }
296
298
303 inline const Aws::String& GetOffCondition() const { return m_offCondition; }
304 inline bool OffConditionHasBeenSet() const { return m_offConditionHasBeenSet; }
305 template <typename OffConditionT = Aws::String>
306 void SetOffCondition(OffConditionT&& value) {
307 m_offConditionHasBeenSet = true;
308 m_offCondition = std::forward<OffConditionT>(value);
309 }
310 template <typename OffConditionT = Aws::String>
311 CreateModelRequest& WithOffCondition(OffConditionT&& value) {
312 SetOffCondition(std::forward<OffConditionT>(value));
313 return *this;
314 }
316
318
324 return m_modelDiagnosticsOutputConfiguration;
325 }
326 inline bool ModelDiagnosticsOutputConfigurationHasBeenSet() const { return m_modelDiagnosticsOutputConfigurationHasBeenSet; }
327 template <typename ModelDiagnosticsOutputConfigurationT = ModelDiagnosticsOutputConfiguration>
328 void SetModelDiagnosticsOutputConfiguration(ModelDiagnosticsOutputConfigurationT&& value) {
329 m_modelDiagnosticsOutputConfigurationHasBeenSet = true;
330 m_modelDiagnosticsOutputConfiguration = std::forward<ModelDiagnosticsOutputConfigurationT>(value);
331 }
332 template <typename ModelDiagnosticsOutputConfigurationT = ModelDiagnosticsOutputConfiguration>
333 CreateModelRequest& WithModelDiagnosticsOutputConfiguration(ModelDiagnosticsOutputConfigurationT&& value) {
334 SetModelDiagnosticsOutputConfiguration(std::forward<ModelDiagnosticsOutputConfigurationT>(value));
335 return *this;
336 }
338 private:
339 Aws::String m_modelName;
340 bool m_modelNameHasBeenSet = false;
341
342 Aws::String m_datasetName;
343 bool m_datasetNameHasBeenSet = false;
344
345 DatasetSchema m_datasetSchema;
346 bool m_datasetSchemaHasBeenSet = false;
347
348 LabelsInputConfiguration m_labelsInputConfiguration;
349 bool m_labelsInputConfigurationHasBeenSet = false;
350
352 bool m_clientTokenHasBeenSet = true;
353
354 Aws::Utils::DateTime m_trainingDataStartTime{};
355 bool m_trainingDataStartTimeHasBeenSet = false;
356
357 Aws::Utils::DateTime m_trainingDataEndTime{};
358 bool m_trainingDataEndTimeHasBeenSet = false;
359
360 Aws::Utils::DateTime m_evaluationDataStartTime{};
361 bool m_evaluationDataStartTimeHasBeenSet = false;
362
363 Aws::Utils::DateTime m_evaluationDataEndTime{};
364 bool m_evaluationDataEndTimeHasBeenSet = false;
365
366 Aws::String m_roleArn;
367 bool m_roleArnHasBeenSet = false;
368
369 DataPreProcessingConfiguration m_dataPreProcessingConfiguration;
370 bool m_dataPreProcessingConfigurationHasBeenSet = false;
371
372 Aws::String m_serverSideKmsKeyId;
373 bool m_serverSideKmsKeyIdHasBeenSet = false;
374
375 Aws::Vector<Tag> m_tags;
376 bool m_tagsHasBeenSet = false;
377
378 Aws::String m_offCondition;
379 bool m_offConditionHasBeenSet = false;
380
381 ModelDiagnosticsOutputConfiguration m_modelDiagnosticsOutputConfiguration;
382 bool m_modelDiagnosticsOutputConfigurationHasBeenSet = false;
383};
384
385} // namespace Model
386} // namespace LookoutEquipment
387} // namespace Aws
CreateModelRequest & WithEvaluationDataEndTime(EvaluationDataEndTimeT &&value)
AWS_LOOKOUTEQUIPMENT_API Aws::String SerializePayload() const override
void SetEvaluationDataStartTime(EvaluationDataStartTimeT &&value)
CreateModelRequest & WithLabelsInputConfiguration(LabelsInputConfigurationT &&value)
const Aws::Utils::DateTime & GetTrainingDataStartTime() const
const Aws::Utils::DateTime & GetEvaluationDataStartTime() const
const Aws::Utils::DateTime & GetEvaluationDataEndTime() const
void SetTrainingDataEndTime(TrainingDataEndTimeT &&value)
CreateModelRequest & WithClientToken(ClientTokenT &&value)
void SetDataPreProcessingConfiguration(DataPreProcessingConfigurationT &&value)
const DataPreProcessingConfiguration & GetDataPreProcessingConfiguration() const
AWS_LOOKOUTEQUIPMENT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Utils::DateTime & GetTrainingDataEndTime() const
void SetEvaluationDataEndTime(EvaluationDataEndTimeT &&value)
CreateModelRequest & WithEvaluationDataStartTime(EvaluationDataStartTimeT &&value)
const ModelDiagnosticsOutputConfiguration & GetModelDiagnosticsOutputConfiguration() const
CreateModelRequest & AddTags(TagsT &&value)
CreateModelRequest & WithTrainingDataStartTime(TrainingDataStartTimeT &&value)
CreateModelRequest & WithTrainingDataEndTime(TrainingDataEndTimeT &&value)
CreateModelRequest & WithRoleArn(RoleArnT &&value)
CreateModelRequest & WithDataPreProcessingConfiguration(DataPreProcessingConfigurationT &&value)
CreateModelRequest & WithModelDiagnosticsOutputConfiguration(ModelDiagnosticsOutputConfigurationT &&value)
const LabelsInputConfiguration & GetLabelsInputConfiguration() const
CreateModelRequest & WithModelName(ModelNameT &&value)
void SetTrainingDataStartTime(TrainingDataStartTimeT &&value)
CreateModelRequest & WithDatasetSchema(DatasetSchemaT &&value)
CreateModelRequest & WithServerSideKmsKeyId(ServerSideKmsKeyIdT &&value)
CreateModelRequest & WithDatasetName(DatasetNameT &&value)
CreateModelRequest & WithTags(TagsT &&value)
CreateModelRequest & WithOffCondition(OffConditionT &&value)
AWS_LOOKOUTEQUIPMENT_API CreateModelRequest()=default
void SetLabelsInputConfiguration(LabelsInputConfigurationT &&value)
void SetServerSideKmsKeyId(ServerSideKmsKeyIdT &&value)
void SetModelDiagnosticsOutputConfiguration(ModelDiagnosticsOutputConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector