AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateImageVersionRequest.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
16namespace Aws
17{
18namespace SageMaker
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SAGEMAKER_API UpdateImageVersionRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateImageVersion"; }
35
36 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetImageName() const{ return m_imageName; }
46 inline bool ImageNameHasBeenSet() const { return m_imageNameHasBeenSet; }
47 inline void SetImageName(const Aws::String& value) { m_imageNameHasBeenSet = true; m_imageName = value; }
48 inline void SetImageName(Aws::String&& value) { m_imageNameHasBeenSet = true; m_imageName = std::move(value); }
49 inline void SetImageName(const char* value) { m_imageNameHasBeenSet = true; m_imageName.assign(value); }
50 inline UpdateImageVersionRequest& WithImageName(const Aws::String& value) { SetImageName(value); return *this;}
51 inline UpdateImageVersionRequest& WithImageName(Aws::String&& value) { SetImageName(std::move(value)); return *this;}
52 inline UpdateImageVersionRequest& WithImageName(const char* value) { SetImageName(value); return *this;}
54
56
59 inline const Aws::String& GetAlias() const{ return m_alias; }
60 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
61 inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
62 inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
63 inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
64 inline UpdateImageVersionRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
65 inline UpdateImageVersionRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
66 inline UpdateImageVersionRequest& WithAlias(const char* value) { SetAlias(value); return *this;}
68
70
73 inline int GetVersion() const{ return m_version; }
74 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
75 inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; }
76 inline UpdateImageVersionRequest& WithVersion(int value) { SetVersion(value); return *this;}
78
80
83 inline const Aws::Vector<Aws::String>& GetAliasesToAdd() const{ return m_aliasesToAdd; }
84 inline bool AliasesToAddHasBeenSet() const { return m_aliasesToAddHasBeenSet; }
85 inline void SetAliasesToAdd(const Aws::Vector<Aws::String>& value) { m_aliasesToAddHasBeenSet = true; m_aliasesToAdd = value; }
86 inline void SetAliasesToAdd(Aws::Vector<Aws::String>&& value) { m_aliasesToAddHasBeenSet = true; m_aliasesToAdd = std::move(value); }
88 inline UpdateImageVersionRequest& WithAliasesToAdd(Aws::Vector<Aws::String>&& value) { SetAliasesToAdd(std::move(value)); return *this;}
89 inline UpdateImageVersionRequest& AddAliasesToAdd(const Aws::String& value) { m_aliasesToAddHasBeenSet = true; m_aliasesToAdd.push_back(value); return *this; }
90 inline UpdateImageVersionRequest& AddAliasesToAdd(Aws::String&& value) { m_aliasesToAddHasBeenSet = true; m_aliasesToAdd.push_back(std::move(value)); return *this; }
91 inline UpdateImageVersionRequest& AddAliasesToAdd(const char* value) { m_aliasesToAddHasBeenSet = true; m_aliasesToAdd.push_back(value); return *this; }
93
95
98 inline const Aws::Vector<Aws::String>& GetAliasesToDelete() const{ return m_aliasesToDelete; }
99 inline bool AliasesToDeleteHasBeenSet() const { return m_aliasesToDeleteHasBeenSet; }
100 inline void SetAliasesToDelete(const Aws::Vector<Aws::String>& value) { m_aliasesToDeleteHasBeenSet = true; m_aliasesToDelete = value; }
101 inline void SetAliasesToDelete(Aws::Vector<Aws::String>&& value) { m_aliasesToDeleteHasBeenSet = true; m_aliasesToDelete = std::move(value); }
104 inline UpdateImageVersionRequest& AddAliasesToDelete(const Aws::String& value) { m_aliasesToDeleteHasBeenSet = true; m_aliasesToDelete.push_back(value); return *this; }
105 inline UpdateImageVersionRequest& AddAliasesToDelete(Aws::String&& value) { m_aliasesToDeleteHasBeenSet = true; m_aliasesToDelete.push_back(std::move(value)); return *this; }
106 inline UpdateImageVersionRequest& AddAliasesToDelete(const char* value) { m_aliasesToDeleteHasBeenSet = true; m_aliasesToDelete.push_back(value); return *this; }
108
110
120 inline const VendorGuidance& GetVendorGuidance() const{ return m_vendorGuidance; }
121 inline bool VendorGuidanceHasBeenSet() const { return m_vendorGuidanceHasBeenSet; }
122 inline void SetVendorGuidance(const VendorGuidance& value) { m_vendorGuidanceHasBeenSet = true; m_vendorGuidance = value; }
123 inline void SetVendorGuidance(VendorGuidance&& value) { m_vendorGuidanceHasBeenSet = true; m_vendorGuidance = std::move(value); }
125 inline UpdateImageVersionRequest& WithVendorGuidance(VendorGuidance&& value) { SetVendorGuidance(std::move(value)); return *this;}
127
129
136 inline const JobType& GetJobType() const{ return m_jobType; }
137 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
138 inline void SetJobType(const JobType& value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
139 inline void SetJobType(JobType&& value) { m_jobTypeHasBeenSet = true; m_jobType = std::move(value); }
140 inline UpdateImageVersionRequest& WithJobType(const JobType& value) { SetJobType(value); return *this;}
141 inline UpdateImageVersionRequest& WithJobType(JobType&& value) { SetJobType(std::move(value)); return *this;}
143
145
148 inline const Aws::String& GetMLFramework() const{ return m_mLFramework; }
149 inline bool MLFrameworkHasBeenSet() const { return m_mLFrameworkHasBeenSet; }
150 inline void SetMLFramework(const Aws::String& value) { m_mLFrameworkHasBeenSet = true; m_mLFramework = value; }
151 inline void SetMLFramework(Aws::String&& value) { m_mLFrameworkHasBeenSet = true; m_mLFramework = std::move(value); }
152 inline void SetMLFramework(const char* value) { m_mLFrameworkHasBeenSet = true; m_mLFramework.assign(value); }
153 inline UpdateImageVersionRequest& WithMLFramework(const Aws::String& value) { SetMLFramework(value); return *this;}
154 inline UpdateImageVersionRequest& WithMLFramework(Aws::String&& value) { SetMLFramework(std::move(value)); return *this;}
155 inline UpdateImageVersionRequest& WithMLFramework(const char* value) { SetMLFramework(value); return *this;}
157
159
162 inline const Aws::String& GetProgrammingLang() const{ return m_programmingLang; }
163 inline bool ProgrammingLangHasBeenSet() const { return m_programmingLangHasBeenSet; }
164 inline void SetProgrammingLang(const Aws::String& value) { m_programmingLangHasBeenSet = true; m_programmingLang = value; }
165 inline void SetProgrammingLang(Aws::String&& value) { m_programmingLangHasBeenSet = true; m_programmingLang = std::move(value); }
166 inline void SetProgrammingLang(const char* value) { m_programmingLangHasBeenSet = true; m_programmingLang.assign(value); }
168 inline UpdateImageVersionRequest& WithProgrammingLang(Aws::String&& value) { SetProgrammingLang(std::move(value)); return *this;}
169 inline UpdateImageVersionRequest& WithProgrammingLang(const char* value) { SetProgrammingLang(value); return *this;}
171
173
178 inline const Processor& GetProcessor() const{ return m_processor; }
179 inline bool ProcessorHasBeenSet() const { return m_processorHasBeenSet; }
180 inline void SetProcessor(const Processor& value) { m_processorHasBeenSet = true; m_processor = value; }
181 inline void SetProcessor(Processor&& value) { m_processorHasBeenSet = true; m_processor = std::move(value); }
182 inline UpdateImageVersionRequest& WithProcessor(const Processor& value) { SetProcessor(value); return *this;}
183 inline UpdateImageVersionRequest& WithProcessor(Processor&& value) { SetProcessor(std::move(value)); return *this;}
185
187
190 inline bool GetHorovod() const{ return m_horovod; }
191 inline bool HorovodHasBeenSet() const { return m_horovodHasBeenSet; }
192 inline void SetHorovod(bool value) { m_horovodHasBeenSet = true; m_horovod = value; }
193 inline UpdateImageVersionRequest& WithHorovod(bool value) { SetHorovod(value); return *this;}
195
197
200 inline const Aws::String& GetReleaseNotes() const{ return m_releaseNotes; }
201 inline bool ReleaseNotesHasBeenSet() const { return m_releaseNotesHasBeenSet; }
202 inline void SetReleaseNotes(const Aws::String& value) { m_releaseNotesHasBeenSet = true; m_releaseNotes = value; }
203 inline void SetReleaseNotes(Aws::String&& value) { m_releaseNotesHasBeenSet = true; m_releaseNotes = std::move(value); }
204 inline void SetReleaseNotes(const char* value) { m_releaseNotesHasBeenSet = true; m_releaseNotes.assign(value); }
205 inline UpdateImageVersionRequest& WithReleaseNotes(const Aws::String& value) { SetReleaseNotes(value); return *this;}
206 inline UpdateImageVersionRequest& WithReleaseNotes(Aws::String&& value) { SetReleaseNotes(std::move(value)); return *this;}
207 inline UpdateImageVersionRequest& WithReleaseNotes(const char* value) { SetReleaseNotes(value); return *this;}
209 private:
210
211 Aws::String m_imageName;
212 bool m_imageNameHasBeenSet = false;
213
214 Aws::String m_alias;
215 bool m_aliasHasBeenSet = false;
216
217 int m_version;
218 bool m_versionHasBeenSet = false;
219
220 Aws::Vector<Aws::String> m_aliasesToAdd;
221 bool m_aliasesToAddHasBeenSet = false;
222
223 Aws::Vector<Aws::String> m_aliasesToDelete;
224 bool m_aliasesToDeleteHasBeenSet = false;
225
226 VendorGuidance m_vendorGuidance;
227 bool m_vendorGuidanceHasBeenSet = false;
228
229 JobType m_jobType;
230 bool m_jobTypeHasBeenSet = false;
231
232 Aws::String m_mLFramework;
233 bool m_mLFrameworkHasBeenSet = false;
234
235 Aws::String m_programmingLang;
236 bool m_programmingLangHasBeenSet = false;
237
238 Processor m_processor;
239 bool m_processorHasBeenSet = false;
240
241 bool m_horovod;
242 bool m_horovodHasBeenSet = false;
243
244 Aws::String m_releaseNotes;
245 bool m_releaseNotesHasBeenSet = false;
246 };
247
248} // namespace Model
249} // namespace SageMaker
250} // namespace Aws
UpdateImageVersionRequest & WithProcessor(Processor &&value)
UpdateImageVersionRequest & AddAliasesToDelete(const Aws::String &value)
UpdateImageVersionRequest & WithAlias(const Aws::String &value)
const Aws::Vector< Aws::String > & GetAliasesToAdd() const
UpdateImageVersionRequest & WithReleaseNotes(Aws::String &&value)
UpdateImageVersionRequest & WithProcessor(const Processor &value)
UpdateImageVersionRequest & WithMLFramework(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateImageVersionRequest & WithVendorGuidance(VendorGuidance &&value)
UpdateImageVersionRequest & AddAliasesToAdd(Aws::String &&value)
UpdateImageVersionRequest & WithAliasesToDelete(const Aws::Vector< Aws::String > &value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateImageVersionRequest & WithVendorGuidance(const VendorGuidance &value)
UpdateImageVersionRequest & WithImageName(Aws::String &&value)
UpdateImageVersionRequest & WithImageName(const Aws::String &value)
void SetAliasesToDelete(const Aws::Vector< Aws::String > &value)
UpdateImageVersionRequest & WithAliasesToDelete(Aws::Vector< Aws::String > &&value)
UpdateImageVersionRequest & WithReleaseNotes(const char *value)
UpdateImageVersionRequest & WithJobType(const JobType &value)
UpdateImageVersionRequest & AddAliasesToAdd(const Aws::String &value)
UpdateImageVersionRequest & WithAlias(const char *value)
void SetAliasesToAdd(Aws::Vector< Aws::String > &&value)
UpdateImageVersionRequest & WithHorovod(bool value)
UpdateImageVersionRequest & WithAliasesToAdd(const Aws::Vector< Aws::String > &value)
UpdateImageVersionRequest & AddAliasesToDelete(const char *value)
UpdateImageVersionRequest & WithMLFramework(const Aws::String &value)
void SetAliasesToAdd(const Aws::Vector< Aws::String > &value)
UpdateImageVersionRequest & WithProgrammingLang(Aws::String &&value)
UpdateImageVersionRequest & WithVersion(int value)
UpdateImageVersionRequest & WithJobType(JobType &&value)
UpdateImageVersionRequest & WithReleaseNotes(const Aws::String &value)
UpdateImageVersionRequest & WithMLFramework(const char *value)
UpdateImageVersionRequest & WithAlias(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAliasesToDelete() const
UpdateImageVersionRequest & AddAliasesToAdd(const char *value)
void SetAliasesToDelete(Aws::Vector< Aws::String > &&value)
UpdateImageVersionRequest & AddAliasesToDelete(Aws::String &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
UpdateImageVersionRequest & WithProgrammingLang(const char *value)
UpdateImageVersionRequest & WithImageName(const char *value)
UpdateImageVersionRequest & WithAliasesToAdd(Aws::Vector< Aws::String > &&value)
UpdateImageVersionRequest & WithProgrammingLang(const Aws::String &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