AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateImageVersionRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/model/VendorGuidance.h>
12#include <aws/sagemaker/model/JobType.h>
13#include <aws/sagemaker/model/Processor.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace SageMaker
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SAGEMAKER_API CreateImageVersionRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateImageVersion"; }
36
37 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
38
40
41
43
49 inline const Aws::String& GetBaseImage() const{ return m_baseImage; }
50 inline bool BaseImageHasBeenSet() const { return m_baseImageHasBeenSet; }
51 inline void SetBaseImage(const Aws::String& value) { m_baseImageHasBeenSet = true; m_baseImage = value; }
52 inline void SetBaseImage(Aws::String&& value) { m_baseImageHasBeenSet = true; m_baseImage = std::move(value); }
53 inline void SetBaseImage(const char* value) { m_baseImageHasBeenSet = true; m_baseImage.assign(value); }
54 inline CreateImageVersionRequest& WithBaseImage(const Aws::String& value) { SetBaseImage(value); return *this;}
55 inline CreateImageVersionRequest& WithBaseImage(Aws::String&& value) { SetBaseImage(std::move(value)); return *this;}
56 inline CreateImageVersionRequest& WithBaseImage(const char* value) { SetBaseImage(value); return *this;}
58
60
65 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
66 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
67 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
68 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
69 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
70 inline CreateImageVersionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
71 inline CreateImageVersionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
72 inline CreateImageVersionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
74
76
80 inline const Aws::String& GetImageName() const{ return m_imageName; }
81 inline bool ImageNameHasBeenSet() const { return m_imageNameHasBeenSet; }
82 inline void SetImageName(const Aws::String& value) { m_imageNameHasBeenSet = true; m_imageName = value; }
83 inline void SetImageName(Aws::String&& value) { m_imageNameHasBeenSet = true; m_imageName = std::move(value); }
84 inline void SetImageName(const char* value) { m_imageNameHasBeenSet = true; m_imageName.assign(value); }
85 inline CreateImageVersionRequest& WithImageName(const Aws::String& value) { SetImageName(value); return *this;}
86 inline CreateImageVersionRequest& WithImageName(Aws::String&& value) { SetImageName(std::move(value)); return *this;}
87 inline CreateImageVersionRequest& WithImageName(const char* value) { SetImageName(value); return *this;}
89
91
94 inline const Aws::Vector<Aws::String>& GetAliases() const{ return m_aliases; }
95 inline bool AliasesHasBeenSet() const { return m_aliasesHasBeenSet; }
96 inline void SetAliases(const Aws::Vector<Aws::String>& value) { m_aliasesHasBeenSet = true; m_aliases = value; }
97 inline void SetAliases(Aws::Vector<Aws::String>&& value) { m_aliasesHasBeenSet = true; m_aliases = std::move(value); }
98 inline CreateImageVersionRequest& WithAliases(const Aws::Vector<Aws::String>& value) { SetAliases(value); return *this;}
99 inline CreateImageVersionRequest& WithAliases(Aws::Vector<Aws::String>&& value) { SetAliases(std::move(value)); return *this;}
100 inline CreateImageVersionRequest& AddAliases(const Aws::String& value) { m_aliasesHasBeenSet = true; m_aliases.push_back(value); return *this; }
101 inline CreateImageVersionRequest& AddAliases(Aws::String&& value) { m_aliasesHasBeenSet = true; m_aliases.push_back(std::move(value)); return *this; }
102 inline CreateImageVersionRequest& AddAliases(const char* value) { m_aliasesHasBeenSet = true; m_aliases.push_back(value); return *this; }
104
106
116 inline const VendorGuidance& GetVendorGuidance() const{ return m_vendorGuidance; }
117 inline bool VendorGuidanceHasBeenSet() const { return m_vendorGuidanceHasBeenSet; }
118 inline void SetVendorGuidance(const VendorGuidance& value) { m_vendorGuidanceHasBeenSet = true; m_vendorGuidance = value; }
119 inline void SetVendorGuidance(VendorGuidance&& value) { m_vendorGuidanceHasBeenSet = true; m_vendorGuidance = std::move(value); }
121 inline CreateImageVersionRequest& WithVendorGuidance(VendorGuidance&& value) { SetVendorGuidance(std::move(value)); return *this;}
123
125
132 inline const JobType& GetJobType() const{ return m_jobType; }
133 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
134 inline void SetJobType(const JobType& value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
135 inline void SetJobType(JobType&& value) { m_jobTypeHasBeenSet = true; m_jobType = std::move(value); }
136 inline CreateImageVersionRequest& WithJobType(const JobType& value) { SetJobType(value); return *this;}
137 inline CreateImageVersionRequest& WithJobType(JobType&& value) { SetJobType(std::move(value)); return *this;}
139
141
144 inline const Aws::String& GetMLFramework() const{ return m_mLFramework; }
145 inline bool MLFrameworkHasBeenSet() const { return m_mLFrameworkHasBeenSet; }
146 inline void SetMLFramework(const Aws::String& value) { m_mLFrameworkHasBeenSet = true; m_mLFramework = value; }
147 inline void SetMLFramework(Aws::String&& value) { m_mLFrameworkHasBeenSet = true; m_mLFramework = std::move(value); }
148 inline void SetMLFramework(const char* value) { m_mLFrameworkHasBeenSet = true; m_mLFramework.assign(value); }
149 inline CreateImageVersionRequest& WithMLFramework(const Aws::String& value) { SetMLFramework(value); return *this;}
150 inline CreateImageVersionRequest& WithMLFramework(Aws::String&& value) { SetMLFramework(std::move(value)); return *this;}
151 inline CreateImageVersionRequest& WithMLFramework(const char* value) { SetMLFramework(value); return *this;}
153
155
158 inline const Aws::String& GetProgrammingLang() const{ return m_programmingLang; }
159 inline bool ProgrammingLangHasBeenSet() const { return m_programmingLangHasBeenSet; }
160 inline void SetProgrammingLang(const Aws::String& value) { m_programmingLangHasBeenSet = true; m_programmingLang = value; }
161 inline void SetProgrammingLang(Aws::String&& value) { m_programmingLangHasBeenSet = true; m_programmingLang = std::move(value); }
162 inline void SetProgrammingLang(const char* value) { m_programmingLangHasBeenSet = true; m_programmingLang.assign(value); }
164 inline CreateImageVersionRequest& WithProgrammingLang(Aws::String&& value) { SetProgrammingLang(std::move(value)); return *this;}
165 inline CreateImageVersionRequest& WithProgrammingLang(const char* value) { SetProgrammingLang(value); return *this;}
167
169
174 inline const Processor& GetProcessor() const{ return m_processor; }
175 inline bool ProcessorHasBeenSet() const { return m_processorHasBeenSet; }
176 inline void SetProcessor(const Processor& value) { m_processorHasBeenSet = true; m_processor = value; }
177 inline void SetProcessor(Processor&& value) { m_processorHasBeenSet = true; m_processor = std::move(value); }
178 inline CreateImageVersionRequest& WithProcessor(const Processor& value) { SetProcessor(value); return *this;}
179 inline CreateImageVersionRequest& WithProcessor(Processor&& value) { SetProcessor(std::move(value)); return *this;}
181
183
186 inline bool GetHorovod() const{ return m_horovod; }
187 inline bool HorovodHasBeenSet() const { return m_horovodHasBeenSet; }
188 inline void SetHorovod(bool value) { m_horovodHasBeenSet = true; m_horovod = value; }
189 inline CreateImageVersionRequest& WithHorovod(bool value) { SetHorovod(value); return *this;}
191
193
196 inline const Aws::String& GetReleaseNotes() const{ return m_releaseNotes; }
197 inline bool ReleaseNotesHasBeenSet() const { return m_releaseNotesHasBeenSet; }
198 inline void SetReleaseNotes(const Aws::String& value) { m_releaseNotesHasBeenSet = true; m_releaseNotes = value; }
199 inline void SetReleaseNotes(Aws::String&& value) { m_releaseNotesHasBeenSet = true; m_releaseNotes = std::move(value); }
200 inline void SetReleaseNotes(const char* value) { m_releaseNotesHasBeenSet = true; m_releaseNotes.assign(value); }
201 inline CreateImageVersionRequest& WithReleaseNotes(const Aws::String& value) { SetReleaseNotes(value); return *this;}
202 inline CreateImageVersionRequest& WithReleaseNotes(Aws::String&& value) { SetReleaseNotes(std::move(value)); return *this;}
203 inline CreateImageVersionRequest& WithReleaseNotes(const char* value) { SetReleaseNotes(value); return *this;}
205 private:
206
207 Aws::String m_baseImage;
208 bool m_baseImageHasBeenSet = false;
209
210 Aws::String m_clientToken;
211 bool m_clientTokenHasBeenSet = false;
212
213 Aws::String m_imageName;
214 bool m_imageNameHasBeenSet = false;
215
216 Aws::Vector<Aws::String> m_aliases;
217 bool m_aliasesHasBeenSet = false;
218
219 VendorGuidance m_vendorGuidance;
220 bool m_vendorGuidanceHasBeenSet = false;
221
222 JobType m_jobType;
223 bool m_jobTypeHasBeenSet = false;
224
225 Aws::String m_mLFramework;
226 bool m_mLFrameworkHasBeenSet = false;
227
228 Aws::String m_programmingLang;
229 bool m_programmingLangHasBeenSet = false;
230
231 Processor m_processor;
232 bool m_processorHasBeenSet = false;
233
234 bool m_horovod;
235 bool m_horovodHasBeenSet = false;
236
237 Aws::String m_releaseNotes;
238 bool m_releaseNotesHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace SageMaker
243} // namespace Aws
CreateImageVersionRequest & WithImageName(const Aws::String &value)
CreateImageVersionRequest & WithMLFramework(Aws::String &&value)
CreateImageVersionRequest & WithBaseImage(const Aws::String &value)
void SetAliases(Aws::Vector< Aws::String > &&value)
CreateImageVersionRequest & WithReleaseNotes(Aws::String &&value)
CreateImageVersionRequest & WithVendorGuidance(const VendorGuidance &value)
CreateImageVersionRequest & AddAliases(const char *value)
CreateImageVersionRequest & AddAliases(const Aws::String &value)
CreateImageVersionRequest & WithProgrammingLang(Aws::String &&value)
CreateImageVersionRequest & WithBaseImage(Aws::String &&value)
CreateImageVersionRequest & WithAliases(Aws::Vector< Aws::String > &&value)
CreateImageVersionRequest & WithHorovod(bool value)
CreateImageVersionRequest & WithProgrammingLang(const char *value)
CreateImageVersionRequest & WithProgrammingLang(const Aws::String &value)
CreateImageVersionRequest & WithVendorGuidance(VendorGuidance &&value)
CreateImageVersionRequest & WithProcessor(const Processor &value)
CreateImageVersionRequest & WithMLFramework(const Aws::String &value)
CreateImageVersionRequest & WithReleaseNotes(const Aws::String &value)
CreateImageVersionRequest & WithClientToken(Aws::String &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateImageVersionRequest & WithBaseImage(const char *value)
CreateImageVersionRequest & WithAliases(const Aws::Vector< Aws::String > &value)
CreateImageVersionRequest & WithProcessor(Processor &&value)
CreateImageVersionRequest & WithClientToken(const char *value)
CreateImageVersionRequest & WithImageName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateImageVersionRequest & WithClientToken(const Aws::String &value)
CreateImageVersionRequest & WithMLFramework(const char *value)
void SetAliases(const Aws::Vector< Aws::String > &value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateImageVersionRequest & WithImageName(const char *value)
CreateImageVersionRequest & WithReleaseNotes(const char *value)
CreateImageVersionRequest & AddAliases(Aws::String &&value)
CreateImageVersionRequest & WithJobType(JobType &&value)
const Aws::Vector< Aws::String > & GetAliases() const
CreateImageVersionRequest & WithJobType(const JobType &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