AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateModelRequest.h
1
6#pragma once
7#include <aws/lookoutequipment/LookoutEquipment_EXPORTS.h>
8#include <aws/lookoutequipment/LookoutEquipmentRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lookoutequipment/model/DatasetSchema.h>
11#include <aws/lookoutequipment/model/LabelsInputConfiguration.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/lookoutequipment/model/DataPreProcessingConfiguration.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/lookoutequipment/model/ModelDiagnosticsOutputConfiguration.h>
16#include <aws/lookoutequipment/model/Tag.h>
17#include <utility>
18#include <aws/core/utils/UUID.h>
19
20namespace Aws
21{
22namespace LookoutEquipment
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_LOOKOUTEQUIPMENT_API CreateModelRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateModel"; }
39
40 AWS_LOOKOUTEQUIPMENT_API Aws::String SerializePayload() const override;
41
42 AWS_LOOKOUTEQUIPMENT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
43
44
46
49 inline const Aws::String& GetModelName() const { return m_modelName; }
50 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
51 template<typename ModelNameT = Aws::String>
52 void SetModelName(ModelNameT&& value) { m_modelNameHasBeenSet = true; m_modelName = std::forward<ModelNameT>(value); }
53 template<typename ModelNameT = Aws::String>
54 CreateModelRequest& WithModelName(ModelNameT&& value) { SetModelName(std::forward<ModelNameT>(value)); return *this;}
56
58
61 inline const Aws::String& GetDatasetName() const { return m_datasetName; }
62 inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }
63 template<typename DatasetNameT = Aws::String>
64 void SetDatasetName(DatasetNameT&& value) { m_datasetNameHasBeenSet = true; m_datasetName = std::forward<DatasetNameT>(value); }
65 template<typename DatasetNameT = Aws::String>
66 CreateModelRequest& WithDatasetName(DatasetNameT&& value) { SetDatasetName(std::forward<DatasetNameT>(value)); return *this;}
68
70
73 inline const DatasetSchema& GetDatasetSchema() const { return m_datasetSchema; }
74 inline bool DatasetSchemaHasBeenSet() const { return m_datasetSchemaHasBeenSet; }
75 template<typename DatasetSchemaT = DatasetSchema>
76 void SetDatasetSchema(DatasetSchemaT&& value) { m_datasetSchemaHasBeenSet = true; m_datasetSchema = std::forward<DatasetSchemaT>(value); }
77 template<typename DatasetSchemaT = DatasetSchema>
78 CreateModelRequest& WithDatasetSchema(DatasetSchemaT&& value) { SetDatasetSchema(std::forward<DatasetSchemaT>(value)); return *this;}
80
82
86 inline const LabelsInputConfiguration& GetLabelsInputConfiguration() const { return m_labelsInputConfiguration; }
87 inline bool LabelsInputConfigurationHasBeenSet() const { return m_labelsInputConfigurationHasBeenSet; }
88 template<typename LabelsInputConfigurationT = LabelsInputConfiguration>
89 void SetLabelsInputConfiguration(LabelsInputConfigurationT&& value) { m_labelsInputConfigurationHasBeenSet = true; m_labelsInputConfiguration = std::forward<LabelsInputConfigurationT>(value); }
90 template<typename LabelsInputConfigurationT = LabelsInputConfiguration>
91 CreateModelRequest& WithLabelsInputConfiguration(LabelsInputConfigurationT&& value) { SetLabelsInputConfiguration(std::forward<LabelsInputConfigurationT>(value)); return *this;}
93
95
99 inline const Aws::String& GetClientToken() const { return m_clientToken; }
100 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
101 template<typename ClientTokenT = Aws::String>
102 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
103 template<typename ClientTokenT = Aws::String>
104 CreateModelRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
106
108
112 inline const Aws::Utils::DateTime& GetTrainingDataStartTime() const { return m_trainingDataStartTime; }
113 inline bool TrainingDataStartTimeHasBeenSet() const { return m_trainingDataStartTimeHasBeenSet; }
114 template<typename TrainingDataStartTimeT = Aws::Utils::DateTime>
115 void SetTrainingDataStartTime(TrainingDataStartTimeT&& value) { m_trainingDataStartTimeHasBeenSet = true; m_trainingDataStartTime = std::forward<TrainingDataStartTimeT>(value); }
116 template<typename TrainingDataStartTimeT = Aws::Utils::DateTime>
117 CreateModelRequest& WithTrainingDataStartTime(TrainingDataStartTimeT&& value) { SetTrainingDataStartTime(std::forward<TrainingDataStartTimeT>(value)); return *this;}
119
121
125 inline const Aws::Utils::DateTime& GetTrainingDataEndTime() const { return m_trainingDataEndTime; }
126 inline bool TrainingDataEndTimeHasBeenSet() const { return m_trainingDataEndTimeHasBeenSet; }
127 template<typename TrainingDataEndTimeT = Aws::Utils::DateTime>
128 void SetTrainingDataEndTime(TrainingDataEndTimeT&& value) { m_trainingDataEndTimeHasBeenSet = true; m_trainingDataEndTime = std::forward<TrainingDataEndTimeT>(value); }
129 template<typename TrainingDataEndTimeT = Aws::Utils::DateTime>
130 CreateModelRequest& WithTrainingDataEndTime(TrainingDataEndTimeT&& value) { SetTrainingDataEndTime(std::forward<TrainingDataEndTimeT>(value)); return *this;}
132
134
138 inline const Aws::Utils::DateTime& GetEvaluationDataStartTime() const { return m_evaluationDataStartTime; }
139 inline bool EvaluationDataStartTimeHasBeenSet() const { return m_evaluationDataStartTimeHasBeenSet; }
140 template<typename EvaluationDataStartTimeT = Aws::Utils::DateTime>
141 void SetEvaluationDataStartTime(EvaluationDataStartTimeT&& value) { m_evaluationDataStartTimeHasBeenSet = true; m_evaluationDataStartTime = std::forward<EvaluationDataStartTimeT>(value); }
142 template<typename EvaluationDataStartTimeT = Aws::Utils::DateTime>
143 CreateModelRequest& WithEvaluationDataStartTime(EvaluationDataStartTimeT&& value) { SetEvaluationDataStartTime(std::forward<EvaluationDataStartTimeT>(value)); return *this;}
145
147
151 inline const Aws::Utils::DateTime& GetEvaluationDataEndTime() const { return m_evaluationDataEndTime; }
152 inline bool EvaluationDataEndTimeHasBeenSet() const { return m_evaluationDataEndTimeHasBeenSet; }
153 template<typename EvaluationDataEndTimeT = Aws::Utils::DateTime>
154 void SetEvaluationDataEndTime(EvaluationDataEndTimeT&& value) { m_evaluationDataEndTimeHasBeenSet = true; m_evaluationDataEndTime = std::forward<EvaluationDataEndTimeT>(value); }
155 template<typename EvaluationDataEndTimeT = Aws::Utils::DateTime>
156 CreateModelRequest& WithEvaluationDataEndTime(EvaluationDataEndTimeT&& value) { SetEvaluationDataEndTime(std::forward<EvaluationDataEndTimeT>(value)); return *this;}
158
160
164 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
165 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
166 template<typename RoleArnT = Aws::String>
167 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
168 template<typename RoleArnT = Aws::String>
169 CreateModelRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
171
173
184 inline const DataPreProcessingConfiguration& GetDataPreProcessingConfiguration() const { return m_dataPreProcessingConfiguration; }
185 inline bool DataPreProcessingConfigurationHasBeenSet() const { return m_dataPreProcessingConfigurationHasBeenSet; }
186 template<typename DataPreProcessingConfigurationT = DataPreProcessingConfiguration>
187 void SetDataPreProcessingConfiguration(DataPreProcessingConfigurationT&& value) { m_dataPreProcessingConfigurationHasBeenSet = true; m_dataPreProcessingConfiguration = std::forward<DataPreProcessingConfigurationT>(value); }
188 template<typename DataPreProcessingConfigurationT = DataPreProcessingConfiguration>
189 CreateModelRequest& WithDataPreProcessingConfiguration(DataPreProcessingConfigurationT&& value) { SetDataPreProcessingConfiguration(std::forward<DataPreProcessingConfigurationT>(value)); return *this;}
191
193
197 inline const Aws::String& GetServerSideKmsKeyId() const { return m_serverSideKmsKeyId; }
198 inline bool ServerSideKmsKeyIdHasBeenSet() const { return m_serverSideKmsKeyIdHasBeenSet; }
199 template<typename ServerSideKmsKeyIdT = Aws::String>
200 void SetServerSideKmsKeyId(ServerSideKmsKeyIdT&& value) { m_serverSideKmsKeyIdHasBeenSet = true; m_serverSideKmsKeyId = std::forward<ServerSideKmsKeyIdT>(value); }
201 template<typename ServerSideKmsKeyIdT = Aws::String>
202 CreateModelRequest& WithServerSideKmsKeyId(ServerSideKmsKeyIdT&& value) { SetServerSideKmsKeyId(std::forward<ServerSideKmsKeyIdT>(value)); return *this;}
204
206
209 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
210 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
211 template<typename TagsT = Aws::Vector<Tag>>
212 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
213 template<typename TagsT = Aws::Vector<Tag>>
214 CreateModelRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
215 template<typename TagsT = Tag>
216 CreateModelRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
218
220
225 inline const Aws::String& GetOffCondition() const { return m_offCondition; }
226 inline bool OffConditionHasBeenSet() const { return m_offConditionHasBeenSet; }
227 template<typename OffConditionT = Aws::String>
228 void SetOffCondition(OffConditionT&& value) { m_offConditionHasBeenSet = true; m_offCondition = std::forward<OffConditionT>(value); }
229 template<typename OffConditionT = Aws::String>
230 CreateModelRequest& WithOffCondition(OffConditionT&& value) { SetOffCondition(std::forward<OffConditionT>(value)); return *this;}
232
234
239 inline const ModelDiagnosticsOutputConfiguration& GetModelDiagnosticsOutputConfiguration() const { return m_modelDiagnosticsOutputConfiguration; }
240 inline bool ModelDiagnosticsOutputConfigurationHasBeenSet() const { return m_modelDiagnosticsOutputConfigurationHasBeenSet; }
241 template<typename ModelDiagnosticsOutputConfigurationT = ModelDiagnosticsOutputConfiguration>
242 void SetModelDiagnosticsOutputConfiguration(ModelDiagnosticsOutputConfigurationT&& value) { m_modelDiagnosticsOutputConfigurationHasBeenSet = true; m_modelDiagnosticsOutputConfiguration = std::forward<ModelDiagnosticsOutputConfigurationT>(value); }
243 template<typename ModelDiagnosticsOutputConfigurationT = ModelDiagnosticsOutputConfiguration>
244 CreateModelRequest& WithModelDiagnosticsOutputConfiguration(ModelDiagnosticsOutputConfigurationT&& value) { SetModelDiagnosticsOutputConfiguration(std::forward<ModelDiagnosticsOutputConfigurationT>(value)); return *this;}
246 private:
247
248 Aws::String m_modelName;
249 bool m_modelNameHasBeenSet = false;
250
251 Aws::String m_datasetName;
252 bool m_datasetNameHasBeenSet = false;
253
254 DatasetSchema m_datasetSchema;
255 bool m_datasetSchemaHasBeenSet = false;
256
257 LabelsInputConfiguration m_labelsInputConfiguration;
258 bool m_labelsInputConfigurationHasBeenSet = false;
259
261 bool m_clientTokenHasBeenSet = true;
262
263 Aws::Utils::DateTime m_trainingDataStartTime{};
264 bool m_trainingDataStartTimeHasBeenSet = false;
265
266 Aws::Utils::DateTime m_trainingDataEndTime{};
267 bool m_trainingDataEndTimeHasBeenSet = false;
268
269 Aws::Utils::DateTime m_evaluationDataStartTime{};
270 bool m_evaluationDataStartTimeHasBeenSet = false;
271
272 Aws::Utils::DateTime m_evaluationDataEndTime{};
273 bool m_evaluationDataEndTimeHasBeenSet = false;
274
275 Aws::String m_roleArn;
276 bool m_roleArnHasBeenSet = false;
277
278 DataPreProcessingConfiguration m_dataPreProcessingConfiguration;
279 bool m_dataPreProcessingConfigurationHasBeenSet = false;
280
281 Aws::String m_serverSideKmsKeyId;
282 bool m_serverSideKmsKeyIdHasBeenSet = false;
283
284 Aws::Vector<Tag> m_tags;
285 bool m_tagsHasBeenSet = false;
286
287 Aws::String m_offCondition;
288 bool m_offConditionHasBeenSet = false;
289
290 ModelDiagnosticsOutputConfiguration m_modelDiagnosticsOutputConfiguration;
291 bool m_modelDiagnosticsOutputConfigurationHasBeenSet = false;
292 };
293
294} // namespace Model
295} // namespace LookoutEquipment
296} // 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