AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateCompilationJobRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/InputConfig.h>
12#include <aws/sagemaker/model/NeoVpcConfig.h>
13#include <aws/sagemaker/model/OutputConfig.h>
14#include <aws/sagemaker/model/StoppingCondition.h>
15#include <aws/sagemaker/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace SageMaker {
21namespace Model {
22
26 public:
27 AWS_SAGEMAKER_API CreateCompilationJobRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateCompilationJob"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
40
44 inline const Aws::String& GetCompilationJobName() const { return m_compilationJobName; }
45 inline bool CompilationJobNameHasBeenSet() const { return m_compilationJobNameHasBeenSet; }
46 template <typename CompilationJobNameT = Aws::String>
47 void SetCompilationJobName(CompilationJobNameT&& value) {
48 m_compilationJobNameHasBeenSet = true;
49 m_compilationJobName = std::forward<CompilationJobNameT>(value);
50 }
51 template <typename CompilationJobNameT = Aws::String>
53 SetCompilationJobName(std::forward<CompilationJobNameT>(value));
54 return *this;
55 }
57
59
72 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
73 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
74 template <typename RoleArnT = Aws::String>
75 void SetRoleArn(RoleArnT&& value) {
76 m_roleArnHasBeenSet = true;
77 m_roleArn = std::forward<RoleArnT>(value);
78 }
79 template <typename RoleArnT = Aws::String>
81 SetRoleArn(std::forward<RoleArnT>(value));
82 return *this;
83 }
85
87
93 inline const Aws::String& GetModelPackageVersionArn() const { return m_modelPackageVersionArn; }
94 inline bool ModelPackageVersionArnHasBeenSet() const { return m_modelPackageVersionArnHasBeenSet; }
95 template <typename ModelPackageVersionArnT = Aws::String>
96 void SetModelPackageVersionArn(ModelPackageVersionArnT&& value) {
97 m_modelPackageVersionArnHasBeenSet = true;
98 m_modelPackageVersionArn = std::forward<ModelPackageVersionArnT>(value);
99 }
100 template <typename ModelPackageVersionArnT = Aws::String>
101 CreateCompilationJobRequest& WithModelPackageVersionArn(ModelPackageVersionArnT&& value) {
102 SetModelPackageVersionArn(std::forward<ModelPackageVersionArnT>(value));
103 return *this;
104 }
106
108
113 inline const InputConfig& GetInputConfig() const { return m_inputConfig; }
114 inline bool InputConfigHasBeenSet() const { return m_inputConfigHasBeenSet; }
115 template <typename InputConfigT = InputConfig>
116 void SetInputConfig(InputConfigT&& value) {
117 m_inputConfigHasBeenSet = true;
118 m_inputConfig = std::forward<InputConfigT>(value);
119 }
120 template <typename InputConfigT = InputConfig>
122 SetInputConfig(std::forward<InputConfigT>(value));
123 return *this;
124 }
126
128
132 inline const OutputConfig& GetOutputConfig() const { return m_outputConfig; }
133 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
134 template <typename OutputConfigT = OutputConfig>
135 void SetOutputConfig(OutputConfigT&& value) {
136 m_outputConfigHasBeenSet = true;
137 m_outputConfig = std::forward<OutputConfigT>(value);
138 }
139 template <typename OutputConfigT = OutputConfig>
141 SetOutputConfig(std::forward<OutputConfigT>(value));
142 return *this;
143 }
145
147
155 inline const NeoVpcConfig& GetVpcConfig() const { return m_vpcConfig; }
156 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
157 template <typename VpcConfigT = NeoVpcConfig>
158 void SetVpcConfig(VpcConfigT&& value) {
159 m_vpcConfigHasBeenSet = true;
160 m_vpcConfig = std::forward<VpcConfigT>(value);
161 }
162 template <typename VpcConfigT = NeoVpcConfig>
164 SetVpcConfig(std::forward<VpcConfigT>(value));
165 return *this;
166 }
168
170
175 inline const StoppingCondition& GetStoppingCondition() const { return m_stoppingCondition; }
176 inline bool StoppingConditionHasBeenSet() const { return m_stoppingConditionHasBeenSet; }
177 template <typename StoppingConditionT = StoppingCondition>
178 void SetStoppingCondition(StoppingConditionT&& value) {
179 m_stoppingConditionHasBeenSet = true;
180 m_stoppingCondition = std::forward<StoppingConditionT>(value);
181 }
182 template <typename StoppingConditionT = StoppingCondition>
184 SetStoppingCondition(std::forward<StoppingConditionT>(value));
185 return *this;
186 }
188
190
197 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
198 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
199 template <typename TagsT = Aws::Vector<Tag>>
200 void SetTags(TagsT&& value) {
201 m_tagsHasBeenSet = true;
202 m_tags = std::forward<TagsT>(value);
203 }
204 template <typename TagsT = Aws::Vector<Tag>>
206 SetTags(std::forward<TagsT>(value));
207 return *this;
208 }
209 template <typename TagsT = Tag>
211 m_tagsHasBeenSet = true;
212 m_tags.emplace_back(std::forward<TagsT>(value));
213 return *this;
214 }
216 private:
217 Aws::String m_compilationJobName;
218
219 Aws::String m_roleArn;
220
221 Aws::String m_modelPackageVersionArn;
222
223 InputConfig m_inputConfig;
224
225 OutputConfig m_outputConfig;
226
227 NeoVpcConfig m_vpcConfig;
228
229 StoppingCondition m_stoppingCondition;
230
231 Aws::Vector<Tag> m_tags;
232 bool m_compilationJobNameHasBeenSet = false;
233 bool m_roleArnHasBeenSet = false;
234 bool m_modelPackageVersionArnHasBeenSet = false;
235 bool m_inputConfigHasBeenSet = false;
236 bool m_outputConfigHasBeenSet = false;
237 bool m_vpcConfigHasBeenSet = false;
238 bool m_stoppingConditionHasBeenSet = false;
239 bool m_tagsHasBeenSet = false;
240};
241
242} // namespace Model
243} // namespace SageMaker
244} // namespace Aws
CreateCompilationJobRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateCompilationJobRequest & WithInputConfig(InputConfigT &&value)
CreateCompilationJobRequest & WithStoppingCondition(StoppingConditionT &&value)
CreateCompilationJobRequest & WithRoleArn(RoleArnT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AWS_SAGEMAKER_API CreateCompilationJobRequest()=default
CreateCompilationJobRequest & WithVpcConfig(VpcConfigT &&value)
CreateCompilationJobRequest & WithModelPackageVersionArn(ModelPackageVersionArnT &&value)
CreateCompilationJobRequest & WithCompilationJobName(CompilationJobNameT &&value)
CreateCompilationJobRequest & AddTags(TagsT &&value)
void SetModelPackageVersionArn(ModelPackageVersionArnT &&value)
CreateCompilationJobRequest & WithOutputConfig(OutputConfigT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector