AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
CreateModelCustomizationJobRequest.h
1
6#pragma once
7#include <aws/bedrock/BedrockRequest.h>
8#include <aws/bedrock/Bedrock_EXPORTS.h>
9#include <aws/bedrock/model/CustomizationConfig.h>
10#include <aws/bedrock/model/CustomizationType.h>
11#include <aws/bedrock/model/OutputDataConfig.h>
12#include <aws/bedrock/model/Tag.h>
13#include <aws/bedrock/model/TrainingDataConfig.h>
14#include <aws/bedrock/model/ValidationDataConfig.h>
15#include <aws/bedrock/model/VpcConfig.h>
16#include <aws/core/utils/UUID.h>
17#include <aws/core/utils/memory/stl/AWSMap.h>
18#include <aws/core/utils/memory/stl/AWSString.h>
19#include <aws/core/utils/memory/stl/AWSVector.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Bedrock {
25namespace Model {
26
30 public:
31 AWS_BEDROCK_API CreateModelCustomizationJobRequest() = 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 "CreateModelCustomizationJob"; }
38
39 AWS_BEDROCK_API Aws::String SerializePayload() const override;
40
42
45 inline const Aws::String& GetJobName() const { return m_jobName; }
46 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
47 template <typename JobNameT = Aws::String>
48 void SetJobName(JobNameT&& value) {
49 m_jobNameHasBeenSet = true;
50 m_jobName = std::forward<JobNameT>(value);
51 }
52 template <typename JobNameT = Aws::String>
54 SetJobName(std::forward<JobNameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetCustomModelName() const { return m_customModelName; }
64 inline bool CustomModelNameHasBeenSet() const { return m_customModelNameHasBeenSet; }
65 template <typename CustomModelNameT = Aws::String>
67 m_customModelNameHasBeenSet = true;
68 m_customModelName = std::forward<CustomModelNameT>(value);
69 }
70 template <typename CustomModelNameT = Aws::String>
72 SetCustomModelName(std::forward<CustomModelNameT>(value));
73 return *this;
74 }
76
78
85 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
86 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
87 template <typename RoleArnT = Aws::String>
88 void SetRoleArn(RoleArnT&& value) {
89 m_roleArnHasBeenSet = true;
90 m_roleArn = std::forward<RoleArnT>(value);
91 }
92 template <typename RoleArnT = Aws::String>
94 SetRoleArn(std::forward<RoleArnT>(value));
95 return *this;
96 }
98
100
107 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
108 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
109 template <typename ClientRequestTokenT = Aws::String>
111 m_clientRequestTokenHasBeenSet = true;
112 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
113 }
114 template <typename ClientRequestTokenT = Aws::String>
116 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetBaseModelIdentifier() const { return m_baseModelIdentifier; }
126 inline bool BaseModelIdentifierHasBeenSet() const { return m_baseModelIdentifierHasBeenSet; }
127 template <typename BaseModelIdentifierT = Aws::String>
129 m_baseModelIdentifierHasBeenSet = true;
130 m_baseModelIdentifier = std::forward<BaseModelIdentifierT>(value);
131 }
132 template <typename BaseModelIdentifierT = Aws::String>
134 SetBaseModelIdentifier(std::forward<BaseModelIdentifierT>(value));
135 return *this;
136 }
138
140
143 inline CustomizationType GetCustomizationType() const { return m_customizationType; }
144 inline bool CustomizationTypeHasBeenSet() const { return m_customizationTypeHasBeenSet; }
146 m_customizationTypeHasBeenSet = true;
147 m_customizationType = value;
148 }
151 return *this;
152 }
154
156
159 inline const Aws::String& GetCustomModelKmsKeyId() const { return m_customModelKmsKeyId; }
160 inline bool CustomModelKmsKeyIdHasBeenSet() const { return m_customModelKmsKeyIdHasBeenSet; }
161 template <typename CustomModelKmsKeyIdT = Aws::String>
163 m_customModelKmsKeyIdHasBeenSet = true;
164 m_customModelKmsKeyId = std::forward<CustomModelKmsKeyIdT>(value);
165 }
166 template <typename CustomModelKmsKeyIdT = Aws::String>
168 SetCustomModelKmsKeyId(std::forward<CustomModelKmsKeyIdT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Vector<Tag>& GetJobTags() const { return m_jobTags; }
178 inline bool JobTagsHasBeenSet() const { return m_jobTagsHasBeenSet; }
179 template <typename JobTagsT = Aws::Vector<Tag>>
180 void SetJobTags(JobTagsT&& value) {
181 m_jobTagsHasBeenSet = true;
182 m_jobTags = std::forward<JobTagsT>(value);
183 }
184 template <typename JobTagsT = Aws::Vector<Tag>>
186 SetJobTags(std::forward<JobTagsT>(value));
187 return *this;
188 }
189 template <typename JobTagsT = Tag>
191 m_jobTagsHasBeenSet = true;
192 m_jobTags.emplace_back(std::forward<JobTagsT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::Vector<Tag>& GetCustomModelTags() const { return m_customModelTags; }
202 inline bool CustomModelTagsHasBeenSet() const { return m_customModelTagsHasBeenSet; }
203 template <typename CustomModelTagsT = Aws::Vector<Tag>>
205 m_customModelTagsHasBeenSet = true;
206 m_customModelTags = std::forward<CustomModelTagsT>(value);
207 }
208 template <typename CustomModelTagsT = Aws::Vector<Tag>>
210 SetCustomModelTags(std::forward<CustomModelTagsT>(value));
211 return *this;
212 }
213 template <typename CustomModelTagsT = Tag>
215 m_customModelTagsHasBeenSet = true;
216 m_customModelTags.emplace_back(std::forward<CustomModelTagsT>(value));
217 return *this;
218 }
220
222
225 inline const TrainingDataConfig& GetTrainingDataConfig() const { return m_trainingDataConfig; }
226 inline bool TrainingDataConfigHasBeenSet() const { return m_trainingDataConfigHasBeenSet; }
227 template <typename TrainingDataConfigT = TrainingDataConfig>
229 m_trainingDataConfigHasBeenSet = true;
230 m_trainingDataConfig = std::forward<TrainingDataConfigT>(value);
231 }
232 template <typename TrainingDataConfigT = TrainingDataConfig>
234 SetTrainingDataConfig(std::forward<TrainingDataConfigT>(value));
235 return *this;
236 }
238
240
243 inline const ValidationDataConfig& GetValidationDataConfig() const { return m_validationDataConfig; }
244 inline bool ValidationDataConfigHasBeenSet() const { return m_validationDataConfigHasBeenSet; }
245 template <typename ValidationDataConfigT = ValidationDataConfig>
247 m_validationDataConfigHasBeenSet = true;
248 m_validationDataConfig = std::forward<ValidationDataConfigT>(value);
249 }
250 template <typename ValidationDataConfigT = ValidationDataConfig>
252 SetValidationDataConfig(std::forward<ValidationDataConfigT>(value));
253 return *this;
254 }
256
258
261 inline const OutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
262 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
263 template <typename OutputDataConfigT = OutputDataConfig>
265 m_outputDataConfigHasBeenSet = true;
266 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
267 }
268 template <typename OutputDataConfigT = OutputDataConfig>
270 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
271 return *this;
272 }
274
276
282 inline const Aws::Map<Aws::String, Aws::String>& GetHyperParameters() const { return m_hyperParameters; }
283 inline bool HyperParametersHasBeenSet() const { return m_hyperParametersHasBeenSet; }
284 template <typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
286 m_hyperParametersHasBeenSet = true;
287 m_hyperParameters = std::forward<HyperParametersT>(value);
288 }
289 template <typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
291 SetHyperParameters(std::forward<HyperParametersT>(value));
292 return *this;
293 }
294 template <typename HyperParametersKeyT = Aws::String, typename HyperParametersValueT = Aws::String>
296 m_hyperParametersHasBeenSet = true;
297 m_hyperParameters.emplace(std::forward<HyperParametersKeyT>(key), std::forward<HyperParametersValueT>(value));
298 return *this;
299 }
301
303
309 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
310 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
311 template <typename VpcConfigT = VpcConfig>
312 void SetVpcConfig(VpcConfigT&& value) {
313 m_vpcConfigHasBeenSet = true;
314 m_vpcConfig = std::forward<VpcConfigT>(value);
315 }
316 template <typename VpcConfigT = VpcConfig>
318 SetVpcConfig(std::forward<VpcConfigT>(value));
319 return *this;
320 }
322
324
327 inline const CustomizationConfig& GetCustomizationConfig() const { return m_customizationConfig; }
328 inline bool CustomizationConfigHasBeenSet() const { return m_customizationConfigHasBeenSet; }
329 template <typename CustomizationConfigT = CustomizationConfig>
331 m_customizationConfigHasBeenSet = true;
332 m_customizationConfig = std::forward<CustomizationConfigT>(value);
333 }
334 template <typename CustomizationConfigT = CustomizationConfig>
336 SetCustomizationConfig(std::forward<CustomizationConfigT>(value));
337 return *this;
338 }
340 private:
341 Aws::String m_jobName;
342
343 Aws::String m_customModelName;
344
345 Aws::String m_roleArn;
346
347 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
348
349 Aws::String m_baseModelIdentifier;
350
352
353 Aws::String m_customModelKmsKeyId;
354
355 Aws::Vector<Tag> m_jobTags;
356
357 Aws::Vector<Tag> m_customModelTags;
358
359 TrainingDataConfig m_trainingDataConfig;
360
361 ValidationDataConfig m_validationDataConfig;
362
363 OutputDataConfig m_outputDataConfig;
364
365 Aws::Map<Aws::String, Aws::String> m_hyperParameters;
366
367 VpcConfig m_vpcConfig;
368
369 CustomizationConfig m_customizationConfig;
370 bool m_jobNameHasBeenSet = false;
371 bool m_customModelNameHasBeenSet = false;
372 bool m_roleArnHasBeenSet = false;
373 bool m_clientRequestTokenHasBeenSet = true;
374 bool m_baseModelIdentifierHasBeenSet = false;
375 bool m_customizationTypeHasBeenSet = false;
376 bool m_customModelKmsKeyIdHasBeenSet = false;
377 bool m_jobTagsHasBeenSet = false;
378 bool m_customModelTagsHasBeenSet = false;
379 bool m_trainingDataConfigHasBeenSet = false;
380 bool m_validationDataConfigHasBeenSet = false;
381 bool m_outputDataConfigHasBeenSet = false;
382 bool m_hyperParametersHasBeenSet = false;
383 bool m_vpcConfigHasBeenSet = false;
384 bool m_customizationConfigHasBeenSet = false;
385};
386
387} // namespace Model
388} // namespace Bedrock
389} // 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::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
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