AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/Tag.h>
18#include <utility>
19#include <aws/core/utils/UUID.h>
20
21namespace Aws
22{
23namespace Bedrock
24{
25namespace Model
26{
27
31 {
32 public:
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreateModelCustomizationJob"; }
40
41 AWS_BEDROCK_API Aws::String SerializePayload() const override;
42
43
45
48 inline const Aws::String& GetJobName() const{ return m_jobName; }
49 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
50 inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
51 inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
52 inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
53 inline CreateModelCustomizationJobRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
54 inline CreateModelCustomizationJobRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
55 inline CreateModelCustomizationJobRequest& WithJobName(const char* value) { SetJobName(value); return *this;}
57
59
62 inline const Aws::String& GetCustomModelName() const{ return m_customModelName; }
63 inline bool CustomModelNameHasBeenSet() const { return m_customModelNameHasBeenSet; }
64 inline void SetCustomModelName(const Aws::String& value) { m_customModelNameHasBeenSet = true; m_customModelName = value; }
65 inline void SetCustomModelName(Aws::String&& value) { m_customModelNameHasBeenSet = true; m_customModelName = std::move(value); }
66 inline void SetCustomModelName(const char* value) { m_customModelNameHasBeenSet = true; m_customModelName.assign(value); }
68 inline CreateModelCustomizationJobRequest& WithCustomModelName(Aws::String&& value) { SetCustomModelName(std::move(value)); return *this;}
69 inline CreateModelCustomizationJobRequest& WithCustomModelName(const char* value) { SetCustomModelName(value); return *this;}
71
73
80 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
81 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
82 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
83 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
84 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
85 inline CreateModelCustomizationJobRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
86 inline CreateModelCustomizationJobRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
87 inline CreateModelCustomizationJobRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
89
91
98 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
99 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
100 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
101 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
102 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
105 inline CreateModelCustomizationJobRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
107
109
112 inline const Aws::String& GetBaseModelIdentifier() const{ return m_baseModelIdentifier; }
113 inline bool BaseModelIdentifierHasBeenSet() const { return m_baseModelIdentifierHasBeenSet; }
114 inline void SetBaseModelIdentifier(const Aws::String& value) { m_baseModelIdentifierHasBeenSet = true; m_baseModelIdentifier = value; }
115 inline void SetBaseModelIdentifier(Aws::String&& value) { m_baseModelIdentifierHasBeenSet = true; m_baseModelIdentifier = std::move(value); }
116 inline void SetBaseModelIdentifier(const char* value) { m_baseModelIdentifierHasBeenSet = true; m_baseModelIdentifier.assign(value); }
121
123
126 inline const CustomizationType& GetCustomizationType() const{ return m_customizationType; }
127 inline bool CustomizationTypeHasBeenSet() const { return m_customizationTypeHasBeenSet; }
128 inline void SetCustomizationType(const CustomizationType& value) { m_customizationTypeHasBeenSet = true; m_customizationType = value; }
129 inline void SetCustomizationType(CustomizationType&& value) { m_customizationTypeHasBeenSet = true; m_customizationType = std::move(value); }
133
135
138 inline const Aws::String& GetCustomModelKmsKeyId() const{ return m_customModelKmsKeyId; }
139 inline bool CustomModelKmsKeyIdHasBeenSet() const { return m_customModelKmsKeyIdHasBeenSet; }
140 inline void SetCustomModelKmsKeyId(const Aws::String& value) { m_customModelKmsKeyIdHasBeenSet = true; m_customModelKmsKeyId = value; }
141 inline void SetCustomModelKmsKeyId(Aws::String&& value) { m_customModelKmsKeyIdHasBeenSet = true; m_customModelKmsKeyId = std::move(value); }
142 inline void SetCustomModelKmsKeyId(const char* value) { m_customModelKmsKeyIdHasBeenSet = true; m_customModelKmsKeyId.assign(value); }
147
149
152 inline const Aws::Vector<Tag>& GetJobTags() const{ return m_jobTags; }
153 inline bool JobTagsHasBeenSet() const { return m_jobTagsHasBeenSet; }
154 inline void SetJobTags(const Aws::Vector<Tag>& value) { m_jobTagsHasBeenSet = true; m_jobTags = value; }
155 inline void SetJobTags(Aws::Vector<Tag>&& value) { m_jobTagsHasBeenSet = true; m_jobTags = std::move(value); }
156 inline CreateModelCustomizationJobRequest& WithJobTags(const Aws::Vector<Tag>& value) { SetJobTags(value); return *this;}
157 inline CreateModelCustomizationJobRequest& WithJobTags(Aws::Vector<Tag>&& value) { SetJobTags(std::move(value)); return *this;}
158 inline CreateModelCustomizationJobRequest& AddJobTags(const Tag& value) { m_jobTagsHasBeenSet = true; m_jobTags.push_back(value); return *this; }
159 inline CreateModelCustomizationJobRequest& AddJobTags(Tag&& value) { m_jobTagsHasBeenSet = true; m_jobTags.push_back(std::move(value)); return *this; }
161
163
166 inline const Aws::Vector<Tag>& GetCustomModelTags() const{ return m_customModelTags; }
167 inline bool CustomModelTagsHasBeenSet() const { return m_customModelTagsHasBeenSet; }
168 inline void SetCustomModelTags(const Aws::Vector<Tag>& value) { m_customModelTagsHasBeenSet = true; m_customModelTags = value; }
169 inline void SetCustomModelTags(Aws::Vector<Tag>&& value) { m_customModelTagsHasBeenSet = true; m_customModelTags = std::move(value); }
172 inline CreateModelCustomizationJobRequest& AddCustomModelTags(const Tag& value) { m_customModelTagsHasBeenSet = true; m_customModelTags.push_back(value); return *this; }
173 inline CreateModelCustomizationJobRequest& AddCustomModelTags(Tag&& value) { m_customModelTagsHasBeenSet = true; m_customModelTags.push_back(std::move(value)); return *this; }
175
177
180 inline const TrainingDataConfig& GetTrainingDataConfig() const{ return m_trainingDataConfig; }
181 inline bool TrainingDataConfigHasBeenSet() const { return m_trainingDataConfigHasBeenSet; }
182 inline void SetTrainingDataConfig(const TrainingDataConfig& value) { m_trainingDataConfigHasBeenSet = true; m_trainingDataConfig = value; }
183 inline void SetTrainingDataConfig(TrainingDataConfig&& value) { m_trainingDataConfigHasBeenSet = true; m_trainingDataConfig = std::move(value); }
187
189
192 inline const ValidationDataConfig& GetValidationDataConfig() const{ return m_validationDataConfig; }
193 inline bool ValidationDataConfigHasBeenSet() const { return m_validationDataConfigHasBeenSet; }
194 inline void SetValidationDataConfig(const ValidationDataConfig& value) { m_validationDataConfigHasBeenSet = true; m_validationDataConfig = value; }
195 inline void SetValidationDataConfig(ValidationDataConfig&& value) { m_validationDataConfigHasBeenSet = true; m_validationDataConfig = std::move(value); }
199
201
204 inline const OutputDataConfig& GetOutputDataConfig() const{ return m_outputDataConfig; }
205 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
206 inline void SetOutputDataConfig(const OutputDataConfig& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = value; }
207 inline void SetOutputDataConfig(OutputDataConfig&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::move(value); }
211
213
219 inline const Aws::Map<Aws::String, Aws::String>& GetHyperParameters() const{ return m_hyperParameters; }
220 inline bool HyperParametersHasBeenSet() const { return m_hyperParametersHasBeenSet; }
221 inline void SetHyperParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters = value; }
222 inline void SetHyperParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters = std::move(value); }
225 inline CreateModelCustomizationJobRequest& AddHyperParameters(const Aws::String& key, const Aws::String& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(key, value); return *this; }
226 inline CreateModelCustomizationJobRequest& AddHyperParameters(Aws::String&& key, const Aws::String& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(std::move(key), value); return *this; }
227 inline CreateModelCustomizationJobRequest& AddHyperParameters(const Aws::String& key, Aws::String&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(key, std::move(value)); return *this; }
228 inline CreateModelCustomizationJobRequest& AddHyperParameters(Aws::String&& key, Aws::String&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(std::move(key), std::move(value)); return *this; }
229 inline CreateModelCustomizationJobRequest& AddHyperParameters(const char* key, Aws::String&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(key, std::move(value)); return *this; }
230 inline CreateModelCustomizationJobRequest& AddHyperParameters(Aws::String&& key, const char* value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(std::move(key), value); return *this; }
231 inline CreateModelCustomizationJobRequest& AddHyperParameters(const char* key, const char* value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(key, value); return *this; }
233
235
241 inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
242 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
243 inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
244 inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
245 inline CreateModelCustomizationJobRequest& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
246 inline CreateModelCustomizationJobRequest& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
248 private:
249
250 Aws::String m_jobName;
251 bool m_jobNameHasBeenSet = false;
252
253 Aws::String m_customModelName;
254 bool m_customModelNameHasBeenSet = false;
255
256 Aws::String m_roleArn;
257 bool m_roleArnHasBeenSet = false;
258
259 Aws::String m_clientRequestToken;
260 bool m_clientRequestTokenHasBeenSet = false;
261
262 Aws::String m_baseModelIdentifier;
263 bool m_baseModelIdentifierHasBeenSet = false;
264
265 CustomizationType m_customizationType;
266 bool m_customizationTypeHasBeenSet = false;
267
268 Aws::String m_customModelKmsKeyId;
269 bool m_customModelKmsKeyIdHasBeenSet = false;
270
271 Aws::Vector<Tag> m_jobTags;
272 bool m_jobTagsHasBeenSet = false;
273
274 Aws::Vector<Tag> m_customModelTags;
275 bool m_customModelTagsHasBeenSet = false;
276
277 TrainingDataConfig m_trainingDataConfig;
278 bool m_trainingDataConfigHasBeenSet = false;
279
280 ValidationDataConfig m_validationDataConfig;
281 bool m_validationDataConfigHasBeenSet = false;
282
283 OutputDataConfig m_outputDataConfig;
284 bool m_outputDataConfigHasBeenSet = false;
285
286 Aws::Map<Aws::String, Aws::String> m_hyperParameters;
287 bool m_hyperParametersHasBeenSet = false;
288
289 VpcConfig m_vpcConfig;
290 bool m_vpcConfigHasBeenSet = false;
291 };
292
293} // namespace Model
294} // namespace Bedrock
295} // namespace Aws
CreateModelCustomizationJobRequest & WithBaseModelIdentifier(const Aws::String &value)
CreateModelCustomizationJobRequest & WithOutputDataConfig(OutputDataConfig &&value)
CreateModelCustomizationJobRequest & WithCustomizationType(CustomizationType &&value)
AWS_BEDROCK_API Aws::String SerializePayload() const override
CreateModelCustomizationJobRequest & WithJobName(const char *value)
CreateModelCustomizationJobRequest & WithCustomModelKmsKeyId(const Aws::String &value)
CreateModelCustomizationJobRequest & WithCustomModelName(Aws::String &&value)
CreateModelCustomizationJobRequest & WithVpcConfig(const VpcConfig &value)
CreateModelCustomizationJobRequest & WithCustomModelTags(Aws::Vector< Tag > &&value)
void SetHyperParameters(Aws::Map< Aws::String, Aws::String > &&value)
CreateModelCustomizationJobRequest & WithRoleArn(Aws::String &&value)
CreateModelCustomizationJobRequest & AddHyperParameters(const Aws::String &key, Aws::String &&value)
CreateModelCustomizationJobRequest & WithBaseModelIdentifier(const char *value)
CreateModelCustomizationJobRequest & WithCustomModelName(const char *value)
CreateModelCustomizationJobRequest & WithValidationDataConfig(ValidationDataConfig &&value)
CreateModelCustomizationJobRequest & WithJobTags(const Aws::Vector< Tag > &value)
CreateModelCustomizationJobRequest & WithValidationDataConfig(const ValidationDataConfig &value)
CreateModelCustomizationJobRequest & WithCustomModelKmsKeyId(Aws::String &&value)
CreateModelCustomizationJobRequest & WithClientRequestToken(const Aws::String &value)
CreateModelCustomizationJobRequest & WithClientRequestToken(Aws::String &&value)
CreateModelCustomizationJobRequest & AddHyperParameters(const Aws::String &key, const Aws::String &value)
CreateModelCustomizationJobRequest & AddHyperParameters(const char *key, Aws::String &&value)
void SetHyperParameters(const Aws::Map< Aws::String, Aws::String > &value)
CreateModelCustomizationJobRequest & AddHyperParameters(Aws::String &&key, Aws::String &&value)
CreateModelCustomizationJobRequest & WithTrainingDataConfig(TrainingDataConfig &&value)
CreateModelCustomizationJobRequest & WithJobName(Aws::String &&value)
CreateModelCustomizationJobRequest & WithCustomModelName(const Aws::String &value)
CreateModelCustomizationJobRequest & WithTrainingDataConfig(const TrainingDataConfig &value)
CreateModelCustomizationJobRequest & AddHyperParameters(const char *key, const char *value)
CreateModelCustomizationJobRequest & WithJobName(const Aws::String &value)
CreateModelCustomizationJobRequest & WithHyperParameters(Aws::Map< Aws::String, Aws::String > &&value)
CreateModelCustomizationJobRequest & AddHyperParameters(Aws::String &&key, const char *value)
CreateModelCustomizationJobRequest & WithVpcConfig(VpcConfig &&value)
CreateModelCustomizationJobRequest & WithCustomModelTags(const Aws::Vector< Tag > &value)
CreateModelCustomizationJobRequest & AddCustomModelTags(const Tag &value)
CreateModelCustomizationJobRequest & AddJobTags(const Tag &value)
CreateModelCustomizationJobRequest & WithCustomizationType(const CustomizationType &value)
CreateModelCustomizationJobRequest & WithOutputDataConfig(const OutputDataConfig &value)
CreateModelCustomizationJobRequest & WithJobTags(Aws::Vector< Tag > &&value)
CreateModelCustomizationJobRequest & WithCustomModelKmsKeyId(const char *value)
CreateModelCustomizationJobRequest & WithClientRequestToken(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetHyperParameters() const
CreateModelCustomizationJobRequest & WithRoleArn(const char *value)
CreateModelCustomizationJobRequest & WithHyperParameters(const Aws::Map< Aws::String, Aws::String > &value)
CreateModelCustomizationJobRequest & AddCustomModelTags(Tag &&value)
CreateModelCustomizationJobRequest & AddHyperParameters(Aws::String &&key, const Aws::String &value)
CreateModelCustomizationJobRequest & WithBaseModelIdentifier(Aws::String &&value)
CreateModelCustomizationJobRequest & WithRoleArn(const Aws::String &value)
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