AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
CreateTrainedModelRequest.h
1
6#pragma once
7#include <aws/cleanroomsml/CleanRoomsMLRequest.h>
8#include <aws/cleanroomsml/CleanRoomsML_EXPORTS.h>
9#include <aws/cleanroomsml/model/IncrementalTrainingDataChannel.h>
10#include <aws/cleanroomsml/model/ModelTrainingDataChannel.h>
11#include <aws/cleanroomsml/model/ResourceConfig.h>
12#include <aws/cleanroomsml/model/StoppingCondition.h>
13#include <aws/cleanroomsml/model/TrainingInputMode.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21namespace CleanRoomsML {
22namespace Model {
23
27 public:
28 AWS_CLEANROOMSML_API CreateTrainedModelRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateTrainedModel"; }
35
36 AWS_CLEANROOMSML_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetMembershipIdentifier() const { return m_membershipIdentifier; }
43 inline bool MembershipIdentifierHasBeenSet() const { return m_membershipIdentifierHasBeenSet; }
44 template <typename MembershipIdentifierT = Aws::String>
45 void SetMembershipIdentifier(MembershipIdentifierT&& value) {
46 m_membershipIdentifierHasBeenSet = true;
47 m_membershipIdentifier = std::forward<MembershipIdentifierT>(value);
48 }
49 template <typename MembershipIdentifierT = Aws::String>
50 CreateTrainedModelRequest& WithMembershipIdentifier(MembershipIdentifierT&& value) {
51 SetMembershipIdentifier(std::forward<MembershipIdentifierT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetConfiguredModelAlgorithmAssociationArn() const { return m_configuredModelAlgorithmAssociationArn; }
79 inline bool ConfiguredModelAlgorithmAssociationArnHasBeenSet() const { return m_configuredModelAlgorithmAssociationArnHasBeenSet; }
80 template <typename ConfiguredModelAlgorithmAssociationArnT = Aws::String>
81 void SetConfiguredModelAlgorithmAssociationArn(ConfiguredModelAlgorithmAssociationArnT&& value) {
82 m_configuredModelAlgorithmAssociationArnHasBeenSet = true;
83 m_configuredModelAlgorithmAssociationArn = std::forward<ConfiguredModelAlgorithmAssociationArnT>(value);
84 }
85 template <typename ConfiguredModelAlgorithmAssociationArnT = Aws::String>
86 CreateTrainedModelRequest& WithConfiguredModelAlgorithmAssociationArn(ConfiguredModelAlgorithmAssociationArnT&& value) {
87 SetConfiguredModelAlgorithmAssociationArn(std::forward<ConfiguredModelAlgorithmAssociationArnT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::Map<Aws::String, Aws::String>& GetHyperparameters() const { return m_hyperparameters; }
98 inline bool HyperparametersHasBeenSet() const { return m_hyperparametersHasBeenSet; }
99 template <typename HyperparametersT = Aws::Map<Aws::String, Aws::String>>
100 void SetHyperparameters(HyperparametersT&& value) {
101 m_hyperparametersHasBeenSet = true;
102 m_hyperparameters = std::forward<HyperparametersT>(value);
103 }
104 template <typename HyperparametersT = Aws::Map<Aws::String, Aws::String>>
106 SetHyperparameters(std::forward<HyperparametersT>(value));
107 return *this;
108 }
109 template <typename HyperparametersKeyT = Aws::String, typename HyperparametersValueT = Aws::String>
110 CreateTrainedModelRequest& AddHyperparameters(HyperparametersKeyT&& key, HyperparametersValueT&& value) {
111 m_hyperparametersHasBeenSet = true;
112 m_hyperparameters.emplace(std::forward<HyperparametersKeyT>(key), std::forward<HyperparametersValueT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const { return m_environment; }
122 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
123 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
124 void SetEnvironment(EnvironmentT&& value) {
125 m_environmentHasBeenSet = true;
126 m_environment = std::forward<EnvironmentT>(value);
127 }
128 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
130 SetEnvironment(std::forward<EnvironmentT>(value));
131 return *this;
132 }
133 template <typename EnvironmentKeyT = Aws::String, typename EnvironmentValueT = Aws::String>
134 CreateTrainedModelRequest& AddEnvironment(EnvironmentKeyT&& key, EnvironmentValueT&& value) {
135 m_environmentHasBeenSet = true;
136 m_environment.emplace(std::forward<EnvironmentKeyT>(key), std::forward<EnvironmentValueT>(value));
137 return *this;
138 }
140
142
145 inline const ResourceConfig& GetResourceConfig() const { return m_resourceConfig; }
146 inline bool ResourceConfigHasBeenSet() const { return m_resourceConfigHasBeenSet; }
147 template <typename ResourceConfigT = ResourceConfig>
148 void SetResourceConfig(ResourceConfigT&& value) {
149 m_resourceConfigHasBeenSet = true;
150 m_resourceConfig = std::forward<ResourceConfigT>(value);
151 }
152 template <typename ResourceConfigT = ResourceConfig>
154 SetResourceConfig(std::forward<ResourceConfigT>(value));
155 return *this;
156 }
158
160
163 inline const StoppingCondition& GetStoppingCondition() const { return m_stoppingCondition; }
164 inline bool StoppingConditionHasBeenSet() const { return m_stoppingConditionHasBeenSet; }
165 template <typename StoppingConditionT = StoppingCondition>
166 void SetStoppingCondition(StoppingConditionT&& value) {
167 m_stoppingConditionHasBeenSet = true;
168 m_stoppingCondition = std::forward<StoppingConditionT>(value);
169 }
170 template <typename StoppingConditionT = StoppingCondition>
172 SetStoppingCondition(std::forward<StoppingConditionT>(value));
173 return *this;
174 }
176
178
187 return m_incrementalTrainingDataChannels;
188 }
189 inline bool IncrementalTrainingDataChannelsHasBeenSet() const { return m_incrementalTrainingDataChannelsHasBeenSet; }
190 template <typename IncrementalTrainingDataChannelsT = Aws::Vector<IncrementalTrainingDataChannel>>
191 void SetIncrementalTrainingDataChannels(IncrementalTrainingDataChannelsT&& value) {
192 m_incrementalTrainingDataChannelsHasBeenSet = true;
193 m_incrementalTrainingDataChannels = std::forward<IncrementalTrainingDataChannelsT>(value);
194 }
195 template <typename IncrementalTrainingDataChannelsT = Aws::Vector<IncrementalTrainingDataChannel>>
196 CreateTrainedModelRequest& WithIncrementalTrainingDataChannels(IncrementalTrainingDataChannelsT&& value) {
197 SetIncrementalTrainingDataChannels(std::forward<IncrementalTrainingDataChannelsT>(value));
198 return *this;
199 }
200 template <typename IncrementalTrainingDataChannelsT = IncrementalTrainingDataChannel>
201 CreateTrainedModelRequest& AddIncrementalTrainingDataChannels(IncrementalTrainingDataChannelsT&& value) {
202 m_incrementalTrainingDataChannelsHasBeenSet = true;
203 m_incrementalTrainingDataChannels.emplace_back(std::forward<IncrementalTrainingDataChannelsT>(value));
204 return *this;
205 }
207
209
214 inline const Aws::Vector<ModelTrainingDataChannel>& GetDataChannels() const { return m_dataChannels; }
215 inline bool DataChannelsHasBeenSet() const { return m_dataChannelsHasBeenSet; }
216 template <typename DataChannelsT = Aws::Vector<ModelTrainingDataChannel>>
217 void SetDataChannels(DataChannelsT&& value) {
218 m_dataChannelsHasBeenSet = true;
219 m_dataChannels = std::forward<DataChannelsT>(value);
220 }
221 template <typename DataChannelsT = Aws::Vector<ModelTrainingDataChannel>>
223 SetDataChannels(std::forward<DataChannelsT>(value));
224 return *this;
225 }
226 template <typename DataChannelsT = ModelTrainingDataChannel>
228 m_dataChannelsHasBeenSet = true;
229 m_dataChannels.emplace_back(std::forward<DataChannelsT>(value));
230 return *this;
231 }
233
235
246 inline TrainingInputMode GetTrainingInputMode() const { return m_trainingInputMode; }
247 inline bool TrainingInputModeHasBeenSet() const { return m_trainingInputModeHasBeenSet; }
249 m_trainingInputModeHasBeenSet = true;
250 m_trainingInputMode = value;
251 }
254 return *this;
255 }
257
259
262 inline const Aws::String& GetDescription() const { return m_description; }
263 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
264 template <typename DescriptionT = Aws::String>
265 void SetDescription(DescriptionT&& value) {
266 m_descriptionHasBeenSet = true;
267 m_description = std::forward<DescriptionT>(value);
268 }
269 template <typename DescriptionT = Aws::String>
271 SetDescription(std::forward<DescriptionT>(value));
272 return *this;
273 }
275
277
282 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
283 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
284 template <typename KmsKeyArnT = Aws::String>
285 void SetKmsKeyArn(KmsKeyArnT&& value) {
286 m_kmsKeyArnHasBeenSet = true;
287 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
288 }
289 template <typename KmsKeyArnT = Aws::String>
291 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
292 return *this;
293 }
295
297
317 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
318 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
319 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
320 void SetTags(TagsT&& value) {
321 m_tagsHasBeenSet = true;
322 m_tags = std::forward<TagsT>(value);
323 }
324 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
326 SetTags(std::forward<TagsT>(value));
327 return *this;
328 }
329 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
330 CreateTrainedModelRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
331 m_tagsHasBeenSet = true;
332 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
333 return *this;
334 }
336
338
342 inline const Aws::String& GetMlModelTrainingPayerAccountId() const { return m_mlModelTrainingPayerAccountId; }
343 inline bool MlModelTrainingPayerAccountIdHasBeenSet() const { return m_mlModelTrainingPayerAccountIdHasBeenSet; }
344 template <typename MlModelTrainingPayerAccountIdT = Aws::String>
345 void SetMlModelTrainingPayerAccountId(MlModelTrainingPayerAccountIdT&& value) {
346 m_mlModelTrainingPayerAccountIdHasBeenSet = true;
347 m_mlModelTrainingPayerAccountId = std::forward<MlModelTrainingPayerAccountIdT>(value);
348 }
349 template <typename MlModelTrainingPayerAccountIdT = Aws::String>
350 CreateTrainedModelRequest& WithMlModelTrainingPayerAccountId(MlModelTrainingPayerAccountIdT&& value) {
351 SetMlModelTrainingPayerAccountId(std::forward<MlModelTrainingPayerAccountIdT>(value));
352 return *this;
353 }
355 private:
356 Aws::String m_membershipIdentifier;
357
358 Aws::String m_name;
359
360 Aws::String m_configuredModelAlgorithmAssociationArn;
361
362 Aws::Map<Aws::String, Aws::String> m_hyperparameters;
363
365
366 ResourceConfig m_resourceConfig;
367
368 StoppingCondition m_stoppingCondition;
369
370 Aws::Vector<IncrementalTrainingDataChannel> m_incrementalTrainingDataChannels;
371
373
375
376 Aws::String m_description;
377
378 Aws::String m_kmsKeyArn;
379
381
382 Aws::String m_mlModelTrainingPayerAccountId;
383 bool m_membershipIdentifierHasBeenSet = false;
384 bool m_nameHasBeenSet = false;
385 bool m_configuredModelAlgorithmAssociationArnHasBeenSet = false;
386 bool m_hyperparametersHasBeenSet = false;
387 bool m_environmentHasBeenSet = false;
388 bool m_resourceConfigHasBeenSet = false;
389 bool m_stoppingConditionHasBeenSet = false;
390 bool m_incrementalTrainingDataChannelsHasBeenSet = false;
391 bool m_dataChannelsHasBeenSet = false;
392 bool m_trainingInputModeHasBeenSet = false;
393 bool m_descriptionHasBeenSet = false;
394 bool m_kmsKeyArnHasBeenSet = false;
395 bool m_tagsHasBeenSet = false;
396 bool m_mlModelTrainingPayerAccountIdHasBeenSet = false;
397};
398
399} // namespace Model
400} // namespace CleanRoomsML
401} // namespace Aws
CreateTrainedModelRequest & WithIncrementalTrainingDataChannels(IncrementalTrainingDataChannelsT &&value)
const Aws::Vector< IncrementalTrainingDataChannel > & GetIncrementalTrainingDataChannels() const
CreateTrainedModelRequest & AddDataChannels(DataChannelsT &&value)
CreateTrainedModelRequest & WithTrainingInputMode(TrainingInputMode value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateTrainedModelRequest & WithKmsKeyArn(KmsKeyArnT &&value)
void SetConfiguredModelAlgorithmAssociationArn(ConfiguredModelAlgorithmAssociationArnT &&value)
CreateTrainedModelRequest & WithMembershipIdentifier(MembershipIdentifierT &&value)
CreateTrainedModelRequest & WithEnvironment(EnvironmentT &&value)
const Aws::Vector< ModelTrainingDataChannel > & GetDataChannels() const
void SetIncrementalTrainingDataChannels(IncrementalTrainingDataChannelsT &&value)
CreateTrainedModelRequest & WithTags(TagsT &&value)
CreateTrainedModelRequest & WithStoppingCondition(StoppingConditionT &&value)
AWS_CLEANROOMSML_API CreateTrainedModelRequest()=default
CreateTrainedModelRequest & WithHyperparameters(HyperparametersT &&value)
CreateTrainedModelRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateTrainedModelRequest & WithName(NameT &&value)
CreateTrainedModelRequest & AddEnvironment(EnvironmentKeyT &&key, EnvironmentValueT &&value)
void SetMlModelTrainingPayerAccountId(MlModelTrainingPayerAccountIdT &&value)
CreateTrainedModelRequest & WithDescription(DescriptionT &&value)
CreateTrainedModelRequest & WithResourceConfig(ResourceConfigT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEnvironment() const
CreateTrainedModelRequest & AddHyperparameters(HyperparametersKeyT &&key, HyperparametersValueT &&value)
AWS_CLEANROOMSML_API Aws::String SerializePayload() const override
CreateTrainedModelRequest & WithDataChannels(DataChannelsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetHyperparameters() const
CreateTrainedModelRequest & WithMlModelTrainingPayerAccountId(MlModelTrainingPayerAccountIdT &&value)
CreateTrainedModelRequest & AddIncrementalTrainingDataChannels(IncrementalTrainingDataChannelsT &&value)
CreateTrainedModelRequest & WithConfiguredModelAlgorithmAssociationArn(ConfiguredModelAlgorithmAssociationArnT &&value)
virtual const char * GetServiceRequestName() const override
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