AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
CreateModelCustomizationJobRequest.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/BedrockRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock/model/CustomizationType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/bedrock/model/TrainingDataConfig.h>
13#include <aws/bedrock/model/ValidationDataConfig.h>
14#include <aws/bedrock/model/OutputDataConfig.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/bedrock/model/VpcConfig.h>
17#include <aws/bedrock/model/CustomizationConfig.h>
18#include <aws/bedrock/model/Tag.h>
19#include <utility>
20#include <aws/core/utils/UUID.h>
21
22namespace Aws
23{
24namespace Bedrock
25{
26namespace Model
27{
28
32 {
33 public:
34 AWS_BEDROCK_API CreateModelCustomizationJobRequest() = default;
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "CreateModelCustomizationJob"; }
41
42 AWS_BEDROCK_API Aws::String SerializePayload() const override;
43
44
46
49 inline const Aws::String& GetJobName() const { return m_jobName; }
50 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
51 template<typename JobNameT = Aws::String>
52 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
53 template<typename JobNameT = Aws::String>
54 CreateModelCustomizationJobRequest& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
56
58
61 inline const Aws::String& GetCustomModelName() const { return m_customModelName; }
62 inline bool CustomModelNameHasBeenSet() const { return m_customModelNameHasBeenSet; }
63 template<typename CustomModelNameT = Aws::String>
64 void SetCustomModelName(CustomModelNameT&& value) { m_customModelNameHasBeenSet = true; m_customModelName = std::forward<CustomModelNameT>(value); }
65 template<typename CustomModelNameT = Aws::String>
66 CreateModelCustomizationJobRequest& WithCustomModelName(CustomModelNameT&& value) { SetCustomModelName(std::forward<CustomModelNameT>(value)); return *this;}
68
70
77 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
78 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
79 template<typename RoleArnT = Aws::String>
80 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
81 template<typename RoleArnT = Aws::String>
82 CreateModelCustomizationJobRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
84
86
93 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
94 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
95 template<typename ClientRequestTokenT = Aws::String>
96 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
97 template<typename ClientRequestTokenT = Aws::String>
98 CreateModelCustomizationJobRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
100
102
105 inline const Aws::String& GetBaseModelIdentifier() const { return m_baseModelIdentifier; }
106 inline bool BaseModelIdentifierHasBeenSet() const { return m_baseModelIdentifierHasBeenSet; }
107 template<typename BaseModelIdentifierT = Aws::String>
108 void SetBaseModelIdentifier(BaseModelIdentifierT&& value) { m_baseModelIdentifierHasBeenSet = true; m_baseModelIdentifier = std::forward<BaseModelIdentifierT>(value); }
109 template<typename BaseModelIdentifierT = Aws::String>
110 CreateModelCustomizationJobRequest& WithBaseModelIdentifier(BaseModelIdentifierT&& value) { SetBaseModelIdentifier(std::forward<BaseModelIdentifierT>(value)); return *this;}
112
114
117 inline CustomizationType GetCustomizationType() const { return m_customizationType; }
118 inline bool CustomizationTypeHasBeenSet() const { return m_customizationTypeHasBeenSet; }
119 inline void SetCustomizationType(CustomizationType value) { m_customizationTypeHasBeenSet = true; m_customizationType = value; }
122
124
127 inline const Aws::String& GetCustomModelKmsKeyId() const { return m_customModelKmsKeyId; }
128 inline bool CustomModelKmsKeyIdHasBeenSet() const { return m_customModelKmsKeyIdHasBeenSet; }
129 template<typename CustomModelKmsKeyIdT = Aws::String>
130 void SetCustomModelKmsKeyId(CustomModelKmsKeyIdT&& value) { m_customModelKmsKeyIdHasBeenSet = true; m_customModelKmsKeyId = std::forward<CustomModelKmsKeyIdT>(value); }
131 template<typename CustomModelKmsKeyIdT = Aws::String>
132 CreateModelCustomizationJobRequest& WithCustomModelKmsKeyId(CustomModelKmsKeyIdT&& value) { SetCustomModelKmsKeyId(std::forward<CustomModelKmsKeyIdT>(value)); return *this;}
134
136
139 inline const Aws::Vector<Tag>& GetJobTags() const { return m_jobTags; }
140 inline bool JobTagsHasBeenSet() const { return m_jobTagsHasBeenSet; }
141 template<typename JobTagsT = Aws::Vector<Tag>>
142 void SetJobTags(JobTagsT&& value) { m_jobTagsHasBeenSet = true; m_jobTags = std::forward<JobTagsT>(value); }
143 template<typename JobTagsT = Aws::Vector<Tag>>
144 CreateModelCustomizationJobRequest& WithJobTags(JobTagsT&& value) { SetJobTags(std::forward<JobTagsT>(value)); return *this;}
145 template<typename JobTagsT = Tag>
146 CreateModelCustomizationJobRequest& AddJobTags(JobTagsT&& value) { m_jobTagsHasBeenSet = true; m_jobTags.emplace_back(std::forward<JobTagsT>(value)); return *this; }
148
150
153 inline const Aws::Vector<Tag>& GetCustomModelTags() const { return m_customModelTags; }
154 inline bool CustomModelTagsHasBeenSet() const { return m_customModelTagsHasBeenSet; }
155 template<typename CustomModelTagsT = Aws::Vector<Tag>>
156 void SetCustomModelTags(CustomModelTagsT&& value) { m_customModelTagsHasBeenSet = true; m_customModelTags = std::forward<CustomModelTagsT>(value); }
157 template<typename CustomModelTagsT = Aws::Vector<Tag>>
158 CreateModelCustomizationJobRequest& WithCustomModelTags(CustomModelTagsT&& value) { SetCustomModelTags(std::forward<CustomModelTagsT>(value)); return *this;}
159 template<typename CustomModelTagsT = Tag>
160 CreateModelCustomizationJobRequest& AddCustomModelTags(CustomModelTagsT&& value) { m_customModelTagsHasBeenSet = true; m_customModelTags.emplace_back(std::forward<CustomModelTagsT>(value)); return *this; }
162
164
167 inline const TrainingDataConfig& GetTrainingDataConfig() const { return m_trainingDataConfig; }
168 inline bool TrainingDataConfigHasBeenSet() const { return m_trainingDataConfigHasBeenSet; }
169 template<typename TrainingDataConfigT = TrainingDataConfig>
170 void SetTrainingDataConfig(TrainingDataConfigT&& value) { m_trainingDataConfigHasBeenSet = true; m_trainingDataConfig = std::forward<TrainingDataConfigT>(value); }
171 template<typename TrainingDataConfigT = TrainingDataConfig>
172 CreateModelCustomizationJobRequest& WithTrainingDataConfig(TrainingDataConfigT&& value) { SetTrainingDataConfig(std::forward<TrainingDataConfigT>(value)); return *this;}
174
176
179 inline const ValidationDataConfig& GetValidationDataConfig() const { return m_validationDataConfig; }
180 inline bool ValidationDataConfigHasBeenSet() const { return m_validationDataConfigHasBeenSet; }
181 template<typename ValidationDataConfigT = ValidationDataConfig>
182 void SetValidationDataConfig(ValidationDataConfigT&& value) { m_validationDataConfigHasBeenSet = true; m_validationDataConfig = std::forward<ValidationDataConfigT>(value); }
183 template<typename ValidationDataConfigT = ValidationDataConfig>
184 CreateModelCustomizationJobRequest& WithValidationDataConfig(ValidationDataConfigT&& value) { SetValidationDataConfig(std::forward<ValidationDataConfigT>(value)); return *this;}
186
188
191 inline const OutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
192 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
193 template<typename OutputDataConfigT = OutputDataConfig>
194 void SetOutputDataConfig(OutputDataConfigT&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::forward<OutputDataConfigT>(value); }
195 template<typename OutputDataConfigT = OutputDataConfig>
196 CreateModelCustomizationJobRequest& WithOutputDataConfig(OutputDataConfigT&& value) { SetOutputDataConfig(std::forward<OutputDataConfigT>(value)); return *this;}
198
200
206 inline const Aws::Map<Aws::String, Aws::String>& GetHyperParameters() const { return m_hyperParameters; }
207 inline bool HyperParametersHasBeenSet() const { return m_hyperParametersHasBeenSet; }
208 template<typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
209 void SetHyperParameters(HyperParametersT&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters = std::forward<HyperParametersT>(value); }
210 template<typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
211 CreateModelCustomizationJobRequest& WithHyperParameters(HyperParametersT&& value) { SetHyperParameters(std::forward<HyperParametersT>(value)); return *this;}
212 template<typename HyperParametersKeyT = Aws::String, typename HyperParametersValueT = Aws::String>
213 CreateModelCustomizationJobRequest& AddHyperParameters(HyperParametersKeyT&& key, HyperParametersValueT&& value) {
214 m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(std::forward<HyperParametersKeyT>(key), std::forward<HyperParametersValueT>(value)); return *this;
215 }
217
219
225 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
226 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
227 template<typename VpcConfigT = VpcConfig>
228 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
229 template<typename VpcConfigT = VpcConfig>
230 CreateModelCustomizationJobRequest& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
232
234
237 inline const CustomizationConfig& GetCustomizationConfig() const { return m_customizationConfig; }
238 inline bool CustomizationConfigHasBeenSet() const { return m_customizationConfigHasBeenSet; }
239 template<typename CustomizationConfigT = CustomizationConfig>
240 void SetCustomizationConfig(CustomizationConfigT&& value) { m_customizationConfigHasBeenSet = true; m_customizationConfig = std::forward<CustomizationConfigT>(value); }
241 template<typename CustomizationConfigT = CustomizationConfig>
242 CreateModelCustomizationJobRequest& WithCustomizationConfig(CustomizationConfigT&& value) { SetCustomizationConfig(std::forward<CustomizationConfigT>(value)); return *this;}
244 private:
245
246 Aws::String m_jobName;
247 bool m_jobNameHasBeenSet = false;
248
249 Aws::String m_customModelName;
250 bool m_customModelNameHasBeenSet = false;
251
252 Aws::String m_roleArn;
253 bool m_roleArnHasBeenSet = false;
254
255 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
256 bool m_clientRequestTokenHasBeenSet = true;
257
258 Aws::String m_baseModelIdentifier;
259 bool m_baseModelIdentifierHasBeenSet = false;
260
262 bool m_customizationTypeHasBeenSet = false;
263
264 Aws::String m_customModelKmsKeyId;
265 bool m_customModelKmsKeyIdHasBeenSet = false;
266
267 Aws::Vector<Tag> m_jobTags;
268 bool m_jobTagsHasBeenSet = false;
269
270 Aws::Vector<Tag> m_customModelTags;
271 bool m_customModelTagsHasBeenSet = false;
272
273 TrainingDataConfig m_trainingDataConfig;
274 bool m_trainingDataConfigHasBeenSet = false;
275
276 ValidationDataConfig m_validationDataConfig;
277 bool m_validationDataConfigHasBeenSet = false;
278
279 OutputDataConfig m_outputDataConfig;
280 bool m_outputDataConfigHasBeenSet = false;
281
282 Aws::Map<Aws::String, Aws::String> m_hyperParameters;
283 bool m_hyperParametersHasBeenSet = false;
284
285 VpcConfig m_vpcConfig;
286 bool m_vpcConfigHasBeenSet = false;
287
288 CustomizationConfig m_customizationConfig;
289 bool m_customizationConfigHasBeenSet = false;
290 };
291
292} // namespace Model
293} // namespace Bedrock
294} // namespace Aws
CreateModelCustomizationJobRequest & WithBaseModelIdentifier(BaseModelIdentifierT &&value)
AWS_BEDROCK_API Aws::String SerializePayload() const override
CreateModelCustomizationJobRequest & WithRoleArn(RoleArnT &&value)
CreateModelCustomizationJobRequest & WithJobName(JobNameT &&value)
CreateModelCustomizationJobRequest & WithJobTags(JobTagsT &&value)
CreateModelCustomizationJobRequest & AddCustomModelTags(CustomModelTagsT &&value)
CreateModelCustomizationJobRequest & WithClientRequestToken(ClientRequestTokenT &&value)
CreateModelCustomizationJobRequest & WithCustomizationConfig(CustomizationConfigT &&value)
CreateModelCustomizationJobRequest & WithCustomModelKmsKeyId(CustomModelKmsKeyIdT &&value)
CreateModelCustomizationJobRequest & AddHyperParameters(HyperParametersKeyT &&key, HyperParametersValueT &&value)
CreateModelCustomizationJobRequest & WithCustomModelTags(CustomModelTagsT &&value)
CreateModelCustomizationJobRequest & WithCustomModelName(CustomModelNameT &&value)
CreateModelCustomizationJobRequest & WithValidationDataConfig(ValidationDataConfigT &&value)
CreateModelCustomizationJobRequest & WithHyperParameters(HyperParametersT &&value)
const Aws::Map< Aws::String, Aws::String > & GetHyperParameters() const
CreateModelCustomizationJobRequest & WithTrainingDataConfig(TrainingDataConfigT &&value)
CreateModelCustomizationJobRequest & AddJobTags(JobTagsT &&value)
CreateModelCustomizationJobRequest & WithVpcConfig(VpcConfigT &&value)
CreateModelCustomizationJobRequest & WithCustomizationType(CustomizationType value)
CreateModelCustomizationJobRequest & WithOutputDataConfig(OutputDataConfigT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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