AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateOptimizationJobRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/OptimizationJobModelSource.h>
11#include <aws/sagemaker/model/OptimizationJobDeploymentInstanceType.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/sagemaker/model/OptimizationJobOutputConfig.h>
15#include <aws/sagemaker/model/StoppingCondition.h>
16#include <aws/sagemaker/model/OptimizationVpcConfig.h>
17#include <aws/sagemaker/model/OptimizationConfig.h>
18#include <aws/sagemaker/model/Tag.h>
19#include <utility>
20
21namespace Aws
22{
23namespace SageMaker
24{
25namespace Model
26{
27
31 {
32 public:
33 AWS_SAGEMAKER_API CreateOptimizationJobRequest();
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 "CreateOptimizationJob"; }
40
41 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
42
44
45
47
50 inline const Aws::String& GetOptimizationJobName() const{ return m_optimizationJobName; }
51 inline bool OptimizationJobNameHasBeenSet() const { return m_optimizationJobNameHasBeenSet; }
52 inline void SetOptimizationJobName(const Aws::String& value) { m_optimizationJobNameHasBeenSet = true; m_optimizationJobName = value; }
53 inline void SetOptimizationJobName(Aws::String&& value) { m_optimizationJobNameHasBeenSet = true; m_optimizationJobName = std::move(value); }
54 inline void SetOptimizationJobName(const char* value) { m_optimizationJobNameHasBeenSet = true; m_optimizationJobName.assign(value); }
57 inline CreateOptimizationJobRequest& WithOptimizationJobName(const char* value) { SetOptimizationJobName(value); return *this;}
59
61
74 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
75 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
76 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
77 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
78 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
79 inline CreateOptimizationJobRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
80 inline CreateOptimizationJobRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
81 inline CreateOptimizationJobRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
83
85
88 inline const OptimizationJobModelSource& GetModelSource() const{ return m_modelSource; }
89 inline bool ModelSourceHasBeenSet() const { return m_modelSourceHasBeenSet; }
90 inline void SetModelSource(const OptimizationJobModelSource& value) { m_modelSourceHasBeenSet = true; m_modelSource = value; }
91 inline void SetModelSource(OptimizationJobModelSource&& value) { m_modelSourceHasBeenSet = true; m_modelSource = std::move(value); }
95
97
101 inline const OptimizationJobDeploymentInstanceType& GetDeploymentInstanceType() const{ return m_deploymentInstanceType; }
102 inline bool DeploymentInstanceTypeHasBeenSet() const { return m_deploymentInstanceTypeHasBeenSet; }
103 inline void SetDeploymentInstanceType(const OptimizationJobDeploymentInstanceType& value) { m_deploymentInstanceTypeHasBeenSet = true; m_deploymentInstanceType = value; }
104 inline void SetDeploymentInstanceType(OptimizationJobDeploymentInstanceType&& value) { m_deploymentInstanceTypeHasBeenSet = true; m_deploymentInstanceType = std::move(value); }
108
110
113 inline const Aws::Map<Aws::String, Aws::String>& GetOptimizationEnvironment() const{ return m_optimizationEnvironment; }
114 inline bool OptimizationEnvironmentHasBeenSet() const { return m_optimizationEnvironmentHasBeenSet; }
115 inline void SetOptimizationEnvironment(const Aws::Map<Aws::String, Aws::String>& value) { m_optimizationEnvironmentHasBeenSet = true; m_optimizationEnvironment = value; }
116 inline void SetOptimizationEnvironment(Aws::Map<Aws::String, Aws::String>&& value) { m_optimizationEnvironmentHasBeenSet = true; m_optimizationEnvironment = std::move(value); }
119 inline CreateOptimizationJobRequest& AddOptimizationEnvironment(const Aws::String& key, const Aws::String& value) { m_optimizationEnvironmentHasBeenSet = true; m_optimizationEnvironment.emplace(key, value); return *this; }
120 inline CreateOptimizationJobRequest& AddOptimizationEnvironment(Aws::String&& key, const Aws::String& value) { m_optimizationEnvironmentHasBeenSet = true; m_optimizationEnvironment.emplace(std::move(key), value); return *this; }
121 inline CreateOptimizationJobRequest& AddOptimizationEnvironment(const Aws::String& key, Aws::String&& value) { m_optimizationEnvironmentHasBeenSet = true; m_optimizationEnvironment.emplace(key, std::move(value)); return *this; }
122 inline CreateOptimizationJobRequest& AddOptimizationEnvironment(Aws::String&& key, Aws::String&& value) { m_optimizationEnvironmentHasBeenSet = true; m_optimizationEnvironment.emplace(std::move(key), std::move(value)); return *this; }
123 inline CreateOptimizationJobRequest& AddOptimizationEnvironment(const char* key, Aws::String&& value) { m_optimizationEnvironmentHasBeenSet = true; m_optimizationEnvironment.emplace(key, std::move(value)); return *this; }
124 inline CreateOptimizationJobRequest& AddOptimizationEnvironment(Aws::String&& key, const char* value) { m_optimizationEnvironmentHasBeenSet = true; m_optimizationEnvironment.emplace(std::move(key), value); return *this; }
125 inline CreateOptimizationJobRequest& AddOptimizationEnvironment(const char* key, const char* value) { m_optimizationEnvironmentHasBeenSet = true; m_optimizationEnvironment.emplace(key, value); return *this; }
127
129
132 inline const Aws::Vector<OptimizationConfig>& GetOptimizationConfigs() const{ return m_optimizationConfigs; }
133 inline bool OptimizationConfigsHasBeenSet() const { return m_optimizationConfigsHasBeenSet; }
134 inline void SetOptimizationConfigs(const Aws::Vector<OptimizationConfig>& value) { m_optimizationConfigsHasBeenSet = true; m_optimizationConfigs = value; }
135 inline void SetOptimizationConfigs(Aws::Vector<OptimizationConfig>&& value) { m_optimizationConfigsHasBeenSet = true; m_optimizationConfigs = std::move(value); }
138 inline CreateOptimizationJobRequest& AddOptimizationConfigs(const OptimizationConfig& value) { m_optimizationConfigsHasBeenSet = true; m_optimizationConfigs.push_back(value); return *this; }
139 inline CreateOptimizationJobRequest& AddOptimizationConfigs(OptimizationConfig&& value) { m_optimizationConfigsHasBeenSet = true; m_optimizationConfigs.push_back(std::move(value)); return *this; }
141
143
147 inline const OptimizationJobOutputConfig& GetOutputConfig() const{ return m_outputConfig; }
148 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
149 inline void SetOutputConfig(const OptimizationJobOutputConfig& value) { m_outputConfigHasBeenSet = true; m_outputConfig = value; }
150 inline void SetOutputConfig(OptimizationJobOutputConfig&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::move(value); }
154
156
157 inline const StoppingCondition& GetStoppingCondition() const{ return m_stoppingCondition; }
158 inline bool StoppingConditionHasBeenSet() const { return m_stoppingConditionHasBeenSet; }
159 inline void SetStoppingCondition(const StoppingCondition& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = value; }
160 inline void SetStoppingCondition(StoppingCondition&& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = std::move(value); }
164
166
173 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
174 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
175 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
176 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
177 inline CreateOptimizationJobRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
178 inline CreateOptimizationJobRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
179 inline CreateOptimizationJobRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
180 inline CreateOptimizationJobRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
182
184
187 inline const OptimizationVpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
188 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
189 inline void SetVpcConfig(const OptimizationVpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
190 inline void SetVpcConfig(OptimizationVpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
192 inline CreateOptimizationJobRequest& WithVpcConfig(OptimizationVpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
194 private:
195
196 Aws::String m_optimizationJobName;
197 bool m_optimizationJobNameHasBeenSet = false;
198
199 Aws::String m_roleArn;
200 bool m_roleArnHasBeenSet = false;
201
202 OptimizationJobModelSource m_modelSource;
203 bool m_modelSourceHasBeenSet = false;
204
205 OptimizationJobDeploymentInstanceType m_deploymentInstanceType;
206 bool m_deploymentInstanceTypeHasBeenSet = false;
207
208 Aws::Map<Aws::String, Aws::String> m_optimizationEnvironment;
209 bool m_optimizationEnvironmentHasBeenSet = false;
210
211 Aws::Vector<OptimizationConfig> m_optimizationConfigs;
212 bool m_optimizationConfigsHasBeenSet = false;
213
214 OptimizationJobOutputConfig m_outputConfig;
215 bool m_outputConfigHasBeenSet = false;
216
217 StoppingCondition m_stoppingCondition;
218 bool m_stoppingConditionHasBeenSet = false;
219
220 Aws::Vector<Tag> m_tags;
221 bool m_tagsHasBeenSet = false;
222
223 OptimizationVpcConfig m_vpcConfig;
224 bool m_vpcConfigHasBeenSet = false;
225 };
226
227} // namespace Model
228} // namespace SageMaker
229} // namespace Aws
CreateOptimizationJobRequest & WithOptimizationJobName(const char *value)
const Aws::Vector< OptimizationConfig > & GetOptimizationConfigs() const
CreateOptimizationJobRequest & WithOutputConfig(OptimizationJobOutputConfig &&value)
void SetOutputConfig(OptimizationJobOutputConfig &&value)
CreateOptimizationJobRequest & WithOptimizationEnvironment(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetOptimizationEnvironment() const
CreateOptimizationJobRequest & AddOptimizationEnvironment(Aws::String &&key, const char *value)
void SetOptimizationEnvironment(Aws::Map< Aws::String, Aws::String > &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateOptimizationJobRequest & AddOptimizationEnvironment(const Aws::String &key, const Aws::String &value)
const OptimizationJobModelSource & GetModelSource() const
CreateOptimizationJobRequest & WithStoppingCondition(StoppingCondition &&value)
CreateOptimizationJobRequest & WithDeploymentInstanceType(const OptimizationJobDeploymentInstanceType &value)
CreateOptimizationJobRequest & WithOutputConfig(const OptimizationJobOutputConfig &value)
const OptimizationJobDeploymentInstanceType & GetDeploymentInstanceType() const
CreateOptimizationJobRequest & WithRoleArn(const Aws::String &value)
CreateOptimizationJobRequest & AddOptimizationEnvironment(const Aws::String &key, Aws::String &&value)
void SetDeploymentInstanceType(const OptimizationJobDeploymentInstanceType &value)
CreateOptimizationJobRequest & AddTags(const Tag &value)
CreateOptimizationJobRequest & WithTags(Aws::Vector< Tag > &&value)
CreateOptimizationJobRequest & AddOptimizationEnvironment(Aws::String &&key, const Aws::String &value)
CreateOptimizationJobRequest & WithRoleArn(Aws::String &&value)
CreateOptimizationJobRequest & WithStoppingCondition(const StoppingCondition &value)
CreateOptimizationJobRequest & WithVpcConfig(OptimizationVpcConfig &&value)
CreateOptimizationJobRequest & AddOptimizationEnvironment(const char *key, const char *value)
CreateOptimizationJobRequest & WithModelSource(OptimizationJobModelSource &&value)
CreateOptimizationJobRequest & WithModelSource(const OptimizationJobModelSource &value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateOptimizationJobRequest & WithOptimizationJobName(const Aws::String &value)
CreateOptimizationJobRequest & WithOptimizationJobName(Aws::String &&value)
CreateOptimizationJobRequest & AddOptimizationEnvironment(Aws::String &&key, Aws::String &&value)
CreateOptimizationJobRequest & AddOptimizationConfigs(OptimizationConfig &&value)
const OptimizationJobOutputConfig & GetOutputConfig() const
CreateOptimizationJobRequest & WithOptimizationEnvironment(Aws::Map< Aws::String, Aws::String > &&value)
void SetOptimizationConfigs(const Aws::Vector< OptimizationConfig > &value)
CreateOptimizationJobRequest & WithRoleArn(const char *value)
CreateOptimizationJobRequest & WithOptimizationConfigs(const Aws::Vector< OptimizationConfig > &value)
void SetModelSource(const OptimizationJobModelSource &value)
void SetOutputConfig(const OptimizationJobOutputConfig &value)
CreateOptimizationJobRequest & WithDeploymentInstanceType(OptimizationJobDeploymentInstanceType &&value)
CreateOptimizationJobRequest & WithOptimizationConfigs(Aws::Vector< OptimizationConfig > &&value)
void SetOptimizationEnvironment(const Aws::Map< Aws::String, Aws::String > &value)
void SetDeploymentInstanceType(OptimizationJobDeploymentInstanceType &&value)
CreateOptimizationJobRequest & AddOptimizationConfigs(const OptimizationConfig &value)
CreateOptimizationJobRequest & AddOptimizationEnvironment(const char *key, Aws::String &&value)
CreateOptimizationJobRequest & WithVpcConfig(const OptimizationVpcConfig &value)
CreateOptimizationJobRequest & WithTags(const Aws::Vector< Tag > &value)
void SetOptimizationConfigs(Aws::Vector< OptimizationConfig > &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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