AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateCompilationJobRequest.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/InputConfig.h>
11#include <aws/sagemaker/model/OutputConfig.h>
12#include <aws/sagemaker/model/NeoVpcConfig.h>
13#include <aws/sagemaker/model/StoppingCondition.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/sagemaker/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace SageMaker
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_SAGEMAKER_API CreateCompilationJobRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateCompilationJob"; }
37
38 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
39
41
42
44
48 inline const Aws::String& GetCompilationJobName() const { return m_compilationJobName; }
49 inline bool CompilationJobNameHasBeenSet() const { return m_compilationJobNameHasBeenSet; }
50 template<typename CompilationJobNameT = Aws::String>
51 void SetCompilationJobName(CompilationJobNameT&& value) { m_compilationJobNameHasBeenSet = true; m_compilationJobName = std::forward<CompilationJobNameT>(value); }
52 template<typename CompilationJobNameT = Aws::String>
53 CreateCompilationJobRequest& WithCompilationJobName(CompilationJobNameT&& value) { SetCompilationJobName(std::forward<CompilationJobNameT>(value)); return *this;}
55
57
70 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
71 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
72 template<typename RoleArnT = Aws::String>
73 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
74 template<typename RoleArnT = Aws::String>
75 CreateCompilationJobRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
77
79
85 inline const Aws::String& GetModelPackageVersionArn() const { return m_modelPackageVersionArn; }
86 inline bool ModelPackageVersionArnHasBeenSet() const { return m_modelPackageVersionArnHasBeenSet; }
87 template<typename ModelPackageVersionArnT = Aws::String>
88 void SetModelPackageVersionArn(ModelPackageVersionArnT&& value) { m_modelPackageVersionArnHasBeenSet = true; m_modelPackageVersionArn = std::forward<ModelPackageVersionArnT>(value); }
89 template<typename ModelPackageVersionArnT = Aws::String>
90 CreateCompilationJobRequest& WithModelPackageVersionArn(ModelPackageVersionArnT&& value) { SetModelPackageVersionArn(std::forward<ModelPackageVersionArnT>(value)); return *this;}
92
94
99 inline const InputConfig& GetInputConfig() const { return m_inputConfig; }
100 inline bool InputConfigHasBeenSet() const { return m_inputConfigHasBeenSet; }
101 template<typename InputConfigT = InputConfig>
102 void SetInputConfig(InputConfigT&& value) { m_inputConfigHasBeenSet = true; m_inputConfig = std::forward<InputConfigT>(value); }
103 template<typename InputConfigT = InputConfig>
104 CreateCompilationJobRequest& WithInputConfig(InputConfigT&& value) { SetInputConfig(std::forward<InputConfigT>(value)); return *this;}
106
108
112 inline const OutputConfig& GetOutputConfig() const { return m_outputConfig; }
113 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
114 template<typename OutputConfigT = OutputConfig>
115 void SetOutputConfig(OutputConfigT&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::forward<OutputConfigT>(value); }
116 template<typename OutputConfigT = OutputConfig>
117 CreateCompilationJobRequest& WithOutputConfig(OutputConfigT&& value) { SetOutputConfig(std::forward<OutputConfigT>(value)); return *this;}
119
121
129 inline const NeoVpcConfig& GetVpcConfig() const { return m_vpcConfig; }
130 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
131 template<typename VpcConfigT = NeoVpcConfig>
132 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
133 template<typename VpcConfigT = NeoVpcConfig>
134 CreateCompilationJobRequest& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
136
138
143 inline const StoppingCondition& GetStoppingCondition() const { return m_stoppingCondition; }
144 inline bool StoppingConditionHasBeenSet() const { return m_stoppingConditionHasBeenSet; }
145 template<typename StoppingConditionT = StoppingCondition>
146 void SetStoppingCondition(StoppingConditionT&& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = std::forward<StoppingConditionT>(value); }
147 template<typename StoppingConditionT = StoppingCondition>
148 CreateCompilationJobRequest& WithStoppingCondition(StoppingConditionT&& value) { SetStoppingCondition(std::forward<StoppingConditionT>(value)); return *this;}
150
152
159 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
160 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
161 template<typename TagsT = Aws::Vector<Tag>>
162 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
163 template<typename TagsT = Aws::Vector<Tag>>
164 CreateCompilationJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
165 template<typename TagsT = Tag>
166 CreateCompilationJobRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
168 private:
169
170 Aws::String m_compilationJobName;
171 bool m_compilationJobNameHasBeenSet = false;
172
173 Aws::String m_roleArn;
174 bool m_roleArnHasBeenSet = false;
175
176 Aws::String m_modelPackageVersionArn;
177 bool m_modelPackageVersionArnHasBeenSet = false;
178
179 InputConfig m_inputConfig;
180 bool m_inputConfigHasBeenSet = false;
181
182 OutputConfig m_outputConfig;
183 bool m_outputConfigHasBeenSet = false;
184
185 NeoVpcConfig m_vpcConfig;
186 bool m_vpcConfigHasBeenSet = false;
187
188 StoppingCondition m_stoppingCondition;
189 bool m_stoppingConditionHasBeenSet = false;
190
191 Aws::Vector<Tag> m_tags;
192 bool m_tagsHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace SageMaker
197} // 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