AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCompilationJobName(const Aws::String& value) { m_compilationJobNameHasBeenSet = true; m_compilationJobName = value; }
51 inline void SetCompilationJobName(Aws::String&& value) { m_compilationJobNameHasBeenSet = true; m_compilationJobName = std::move(value); }
52 inline void SetCompilationJobName(const char* value) { m_compilationJobNameHasBeenSet = true; m_compilationJobName.assign(value); }
54 inline CreateCompilationJobRequest& WithCompilationJobName(Aws::String&& value) { SetCompilationJobName(std::move(value)); return *this;}
55 inline CreateCompilationJobRequest& WithCompilationJobName(const char* value) { SetCompilationJobName(value); return *this;}
57
59
72 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
73 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
74 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
75 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
76 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
77 inline CreateCompilationJobRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
78 inline CreateCompilationJobRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
79 inline CreateCompilationJobRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
81
83
89 inline const Aws::String& GetModelPackageVersionArn() const{ return m_modelPackageVersionArn; }
90 inline bool ModelPackageVersionArnHasBeenSet() const { return m_modelPackageVersionArnHasBeenSet; }
91 inline void SetModelPackageVersionArn(const Aws::String& value) { m_modelPackageVersionArnHasBeenSet = true; m_modelPackageVersionArn = value; }
92 inline void SetModelPackageVersionArn(Aws::String&& value) { m_modelPackageVersionArnHasBeenSet = true; m_modelPackageVersionArn = std::move(value); }
93 inline void SetModelPackageVersionArn(const char* value) { m_modelPackageVersionArnHasBeenSet = true; m_modelPackageVersionArn.assign(value); }
96 inline CreateCompilationJobRequest& WithModelPackageVersionArn(const char* value) { SetModelPackageVersionArn(value); return *this;}
98
100
105 inline const InputConfig& GetInputConfig() const{ return m_inputConfig; }
106 inline bool InputConfigHasBeenSet() const { return m_inputConfigHasBeenSet; }
107 inline void SetInputConfig(const InputConfig& value) { m_inputConfigHasBeenSet = true; m_inputConfig = value; }
108 inline void SetInputConfig(InputConfig&& value) { m_inputConfigHasBeenSet = true; m_inputConfig = std::move(value); }
109 inline CreateCompilationJobRequest& WithInputConfig(const InputConfig& value) { SetInputConfig(value); return *this;}
110 inline CreateCompilationJobRequest& WithInputConfig(InputConfig&& value) { SetInputConfig(std::move(value)); return *this;}
112
114
118 inline const OutputConfig& GetOutputConfig() const{ return m_outputConfig; }
119 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
120 inline void SetOutputConfig(const OutputConfig& value) { m_outputConfigHasBeenSet = true; m_outputConfig = value; }
121 inline void SetOutputConfig(OutputConfig&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::move(value); }
122 inline CreateCompilationJobRequest& WithOutputConfig(const OutputConfig& value) { SetOutputConfig(value); return *this;}
123 inline CreateCompilationJobRequest& WithOutputConfig(OutputConfig&& value) { SetOutputConfig(std::move(value)); return *this;}
125
127
135 inline const NeoVpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
136 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
137 inline void SetVpcConfig(const NeoVpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
138 inline void SetVpcConfig(NeoVpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
139 inline CreateCompilationJobRequest& WithVpcConfig(const NeoVpcConfig& value) { SetVpcConfig(value); return *this;}
140 inline CreateCompilationJobRequest& WithVpcConfig(NeoVpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
142
144
149 inline const StoppingCondition& GetStoppingCondition() const{ return m_stoppingCondition; }
150 inline bool StoppingConditionHasBeenSet() const { return m_stoppingConditionHasBeenSet; }
151 inline void SetStoppingCondition(const StoppingCondition& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = value; }
152 inline void SetStoppingCondition(StoppingCondition&& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = std::move(value); }
156
158
165 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
166 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
167 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
168 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
169 inline CreateCompilationJobRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
170 inline CreateCompilationJobRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
171 inline CreateCompilationJobRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
172 inline CreateCompilationJobRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
174 private:
175
176 Aws::String m_compilationJobName;
177 bool m_compilationJobNameHasBeenSet = false;
178
179 Aws::String m_roleArn;
180 bool m_roleArnHasBeenSet = false;
181
182 Aws::String m_modelPackageVersionArn;
183 bool m_modelPackageVersionArnHasBeenSet = false;
184
185 InputConfig m_inputConfig;
186 bool m_inputConfigHasBeenSet = false;
187
188 OutputConfig m_outputConfig;
189 bool m_outputConfigHasBeenSet = false;
190
191 NeoVpcConfig m_vpcConfig;
192 bool m_vpcConfigHasBeenSet = false;
193
194 StoppingCondition m_stoppingCondition;
195 bool m_stoppingConditionHasBeenSet = false;
196
197 Aws::Vector<Tag> m_tags;
198 bool m_tagsHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace SageMaker
203} // namespace Aws
CreateCompilationJobRequest & WithCompilationJobName(Aws::String &&value)
CreateCompilationJobRequest & WithRoleArn(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateCompilationJobRequest & WithCompilationJobName(const Aws::String &value)
CreateCompilationJobRequest & WithVpcConfig(const NeoVpcConfig &value)
CreateCompilationJobRequest & AddTags(const Tag &value)
CreateCompilationJobRequest & WithModelPackageVersionArn(const char *value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateCompilationJobRequest & WithModelPackageVersionArn(const Aws::String &value)
CreateCompilationJobRequest & WithModelPackageVersionArn(Aws::String &&value)
CreateCompilationJobRequest & WithInputConfig(const InputConfig &value)
CreateCompilationJobRequest & WithStoppingCondition(StoppingCondition &&value)
CreateCompilationJobRequest & WithStoppingCondition(const StoppingCondition &value)
CreateCompilationJobRequest & WithInputConfig(InputConfig &&value)
CreateCompilationJobRequest & WithRoleArn(const char *value)
CreateCompilationJobRequest & WithOutputConfig(const OutputConfig &value)
CreateCompilationJobRequest & WithOutputConfig(OutputConfig &&value)
CreateCompilationJobRequest & WithTags(const Aws::Vector< Tag > &value)
CreateCompilationJobRequest & WithCompilationJobName(const char *value)
CreateCompilationJobRequest & WithRoleArn(const Aws::String &value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateCompilationJobRequest & WithVpcConfig(NeoVpcConfig &&value)
CreateCompilationJobRequest & WithTags(Aws::Vector< Tag > &&value)
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