AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateTrainedModelRequest.h
1
6#pragma once
7#include <aws/cleanroomsml/CleanRoomsML_EXPORTS.h>
8#include <aws/cleanroomsml/CleanRoomsMLRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/cleanroomsml/model/ResourceConfig.h>
12#include <aws/cleanroomsml/model/StoppingCondition.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/cleanroomsml/model/TrainingInputMode.h>
15#include <aws/cleanroomsml/model/IncrementalTrainingDataChannel.h>
16#include <aws/cleanroomsml/model/ModelTrainingDataChannel.h>
17#include <utility>
18
19namespace Aws
20{
21namespace CleanRoomsML
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_CLEANROOMSML_API CreateTrainedModelRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateTrainedModel"; }
38
39 AWS_CLEANROOMSML_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetMembershipIdentifier() const { return m_membershipIdentifier; }
47 inline bool MembershipIdentifierHasBeenSet() const { return m_membershipIdentifierHasBeenSet; }
48 template<typename MembershipIdentifierT = Aws::String>
49 void SetMembershipIdentifier(MembershipIdentifierT&& value) { m_membershipIdentifierHasBeenSet = true; m_membershipIdentifier = std::forward<MembershipIdentifierT>(value); }
50 template<typename MembershipIdentifierT = Aws::String>
51 CreateTrainedModelRequest& WithMembershipIdentifier(MembershipIdentifierT&& value) { SetMembershipIdentifier(std::forward<MembershipIdentifierT>(value)); return *this;}
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template<typename NameT = Aws::String>
61 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 CreateTrainedModelRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetConfiguredModelAlgorithmAssociationArn() const { return m_configuredModelAlgorithmAssociationArn; }
71 inline bool ConfiguredModelAlgorithmAssociationArnHasBeenSet() const { return m_configuredModelAlgorithmAssociationArnHasBeenSet; }
72 template<typename ConfiguredModelAlgorithmAssociationArnT = Aws::String>
73 void SetConfiguredModelAlgorithmAssociationArn(ConfiguredModelAlgorithmAssociationArnT&& value) { m_configuredModelAlgorithmAssociationArnHasBeenSet = true; m_configuredModelAlgorithmAssociationArn = std::forward<ConfiguredModelAlgorithmAssociationArnT>(value); }
74 template<typename ConfiguredModelAlgorithmAssociationArnT = Aws::String>
75 CreateTrainedModelRequest& WithConfiguredModelAlgorithmAssociationArn(ConfiguredModelAlgorithmAssociationArnT&& value) { SetConfiguredModelAlgorithmAssociationArn(std::forward<ConfiguredModelAlgorithmAssociationArnT>(value)); return *this;}
77
79
83 inline const Aws::Map<Aws::String, Aws::String>& GetHyperparameters() const { return m_hyperparameters; }
84 inline bool HyperparametersHasBeenSet() const { return m_hyperparametersHasBeenSet; }
85 template<typename HyperparametersT = Aws::Map<Aws::String, Aws::String>>
86 void SetHyperparameters(HyperparametersT&& value) { m_hyperparametersHasBeenSet = true; m_hyperparameters = std::forward<HyperparametersT>(value); }
87 template<typename HyperparametersT = Aws::Map<Aws::String, Aws::String>>
88 CreateTrainedModelRequest& WithHyperparameters(HyperparametersT&& value) { SetHyperparameters(std::forward<HyperparametersT>(value)); return *this;}
89 template<typename HyperparametersKeyT = Aws::String, typename HyperparametersValueT = Aws::String>
90 CreateTrainedModelRequest& AddHyperparameters(HyperparametersKeyT&& key, HyperparametersValueT&& value) {
91 m_hyperparametersHasBeenSet = true; m_hyperparameters.emplace(std::forward<HyperparametersKeyT>(key), std::forward<HyperparametersValueT>(value)); return *this;
92 }
94
96
99 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const { return m_environment; }
100 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
101 template<typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
102 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment = std::forward<EnvironmentT>(value); }
103 template<typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
104 CreateTrainedModelRequest& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
105 template<typename EnvironmentKeyT = Aws::String, typename EnvironmentValueT = Aws::String>
106 CreateTrainedModelRequest& AddEnvironment(EnvironmentKeyT&& key, EnvironmentValueT&& value) {
107 m_environmentHasBeenSet = true; m_environment.emplace(std::forward<EnvironmentKeyT>(key), std::forward<EnvironmentValueT>(value)); return *this;
108 }
110
112
115 inline const ResourceConfig& GetResourceConfig() const { return m_resourceConfig; }
116 inline bool ResourceConfigHasBeenSet() const { return m_resourceConfigHasBeenSet; }
117 template<typename ResourceConfigT = ResourceConfig>
118 void SetResourceConfig(ResourceConfigT&& value) { m_resourceConfigHasBeenSet = true; m_resourceConfig = std::forward<ResourceConfigT>(value); }
119 template<typename ResourceConfigT = ResourceConfig>
120 CreateTrainedModelRequest& WithResourceConfig(ResourceConfigT&& value) { SetResourceConfig(std::forward<ResourceConfigT>(value)); return *this;}
122
124
127 inline const StoppingCondition& GetStoppingCondition() const { return m_stoppingCondition; }
128 inline bool StoppingConditionHasBeenSet() const { return m_stoppingConditionHasBeenSet; }
129 template<typename StoppingConditionT = StoppingCondition>
130 void SetStoppingCondition(StoppingConditionT&& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = std::forward<StoppingConditionT>(value); }
131 template<typename StoppingConditionT = StoppingCondition>
132 CreateTrainedModelRequest& WithStoppingCondition(StoppingConditionT&& value) { SetStoppingCondition(std::forward<StoppingConditionT>(value)); return *this;}
134
136
144 inline const Aws::Vector<IncrementalTrainingDataChannel>& GetIncrementalTrainingDataChannels() const { return m_incrementalTrainingDataChannels; }
145 inline bool IncrementalTrainingDataChannelsHasBeenSet() const { return m_incrementalTrainingDataChannelsHasBeenSet; }
146 template<typename IncrementalTrainingDataChannelsT = Aws::Vector<IncrementalTrainingDataChannel>>
147 void SetIncrementalTrainingDataChannels(IncrementalTrainingDataChannelsT&& value) { m_incrementalTrainingDataChannelsHasBeenSet = true; m_incrementalTrainingDataChannels = std::forward<IncrementalTrainingDataChannelsT>(value); }
148 template<typename IncrementalTrainingDataChannelsT = Aws::Vector<IncrementalTrainingDataChannel>>
149 CreateTrainedModelRequest& WithIncrementalTrainingDataChannels(IncrementalTrainingDataChannelsT&& value) { SetIncrementalTrainingDataChannels(std::forward<IncrementalTrainingDataChannelsT>(value)); return *this;}
150 template<typename IncrementalTrainingDataChannelsT = IncrementalTrainingDataChannel>
151 CreateTrainedModelRequest& AddIncrementalTrainingDataChannels(IncrementalTrainingDataChannelsT&& value) { m_incrementalTrainingDataChannelsHasBeenSet = true; m_incrementalTrainingDataChannels.emplace_back(std::forward<IncrementalTrainingDataChannelsT>(value)); return *this; }
153
155
160 inline const Aws::Vector<ModelTrainingDataChannel>& GetDataChannels() const { return m_dataChannels; }
161 inline bool DataChannelsHasBeenSet() const { return m_dataChannelsHasBeenSet; }
162 template<typename DataChannelsT = Aws::Vector<ModelTrainingDataChannel>>
163 void SetDataChannels(DataChannelsT&& value) { m_dataChannelsHasBeenSet = true; m_dataChannels = std::forward<DataChannelsT>(value); }
164 template<typename DataChannelsT = Aws::Vector<ModelTrainingDataChannel>>
165 CreateTrainedModelRequest& WithDataChannels(DataChannelsT&& value) { SetDataChannels(std::forward<DataChannelsT>(value)); return *this;}
166 template<typename DataChannelsT = ModelTrainingDataChannel>
167 CreateTrainedModelRequest& AddDataChannels(DataChannelsT&& value) { m_dataChannelsHasBeenSet = true; m_dataChannels.emplace_back(std::forward<DataChannelsT>(value)); return *this; }
169
171
182 inline TrainingInputMode GetTrainingInputMode() const { return m_trainingInputMode; }
183 inline bool TrainingInputModeHasBeenSet() const { return m_trainingInputModeHasBeenSet; }
184 inline void SetTrainingInputMode(TrainingInputMode value) { m_trainingInputModeHasBeenSet = true; m_trainingInputMode = value; }
187
189
192 inline const Aws::String& GetDescription() const { return m_description; }
193 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
194 template<typename DescriptionT = Aws::String>
195 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
196 template<typename DescriptionT = Aws::String>
197 CreateTrainedModelRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
199
201
206 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
207 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
208 template<typename KmsKeyArnT = Aws::String>
209 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
210 template<typename KmsKeyArnT = Aws::String>
211 CreateTrainedModelRequest& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
213
215
235 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
236 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
237 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
238 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
239 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
240 CreateTrainedModelRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
241 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
242 CreateTrainedModelRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
243 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
244 }
246 private:
247
248 Aws::String m_membershipIdentifier;
249 bool m_membershipIdentifierHasBeenSet = false;
250
251 Aws::String m_name;
252 bool m_nameHasBeenSet = false;
253
254 Aws::String m_configuredModelAlgorithmAssociationArn;
255 bool m_configuredModelAlgorithmAssociationArnHasBeenSet = false;
256
257 Aws::Map<Aws::String, Aws::String> m_hyperparameters;
258 bool m_hyperparametersHasBeenSet = false;
259
261 bool m_environmentHasBeenSet = false;
262
263 ResourceConfig m_resourceConfig;
264 bool m_resourceConfigHasBeenSet = false;
265
266 StoppingCondition m_stoppingCondition;
267 bool m_stoppingConditionHasBeenSet = false;
268
269 Aws::Vector<IncrementalTrainingDataChannel> m_incrementalTrainingDataChannels;
270 bool m_incrementalTrainingDataChannelsHasBeenSet = false;
271
273 bool m_dataChannelsHasBeenSet = false;
274
276 bool m_trainingInputModeHasBeenSet = false;
277
278 Aws::String m_description;
279 bool m_descriptionHasBeenSet = false;
280
281 Aws::String m_kmsKeyArn;
282 bool m_kmsKeyArnHasBeenSet = false;
283
285 bool m_tagsHasBeenSet = false;
286 };
287
288} // namespace Model
289} // namespace CleanRoomsML
290} // 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)
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 & 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