AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ModelPackageContainerDefinition.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/AdditionalS3DataSource.h>
11#include <aws/sagemaker/model/BaseModel.h>
12#include <aws/sagemaker/model/ModelDataSource.h>
13#include <aws/sagemaker/model/ModelInput.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker {
25namespace Model {
26
34 public:
35 AWS_SAGEMAKER_API ModelPackageContainerDefinition() = default;
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetContainerHostname() const { return m_containerHostname; }
45 inline bool ContainerHostnameHasBeenSet() const { return m_containerHostnameHasBeenSet; }
46 template <typename ContainerHostnameT = Aws::String>
47 void SetContainerHostname(ContainerHostnameT&& value) {
48 m_containerHostnameHasBeenSet = true;
49 m_containerHostname = std::forward<ContainerHostnameT>(value);
50 }
51 template <typename ContainerHostnameT = Aws::String>
53 SetContainerHostname(std::forward<ContainerHostnameT>(value));
54 return *this;
55 }
57
59
69 inline const Aws::String& GetImage() const { return m_image; }
70 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
71 template <typename ImageT = Aws::String>
72 void SetImage(ImageT&& value) {
73 m_imageHasBeenSet = true;
74 m_image = std::forward<ImageT>(value);
75 }
76 template <typename ImageT = Aws::String>
78 SetImage(std::forward<ImageT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::String& GetImageDigest() const { return m_imageDigest; }
89 inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; }
90 template <typename ImageDigestT = Aws::String>
91 void SetImageDigest(ImageDigestT&& value) {
92 m_imageDigestHasBeenSet = true;
93 m_imageDigest = std::forward<ImageDigestT>(value);
94 }
95 template <typename ImageDigestT = Aws::String>
97 SetImageDigest(std::forward<ImageDigestT>(value));
98 return *this;
99 }
101
103
110 inline const Aws::String& GetModelDataUrl() const { return m_modelDataUrl; }
111 inline bool ModelDataUrlHasBeenSet() const { return m_modelDataUrlHasBeenSet; }
112 template <typename ModelDataUrlT = Aws::String>
113 void SetModelDataUrl(ModelDataUrlT&& value) {
114 m_modelDataUrlHasBeenSet = true;
115 m_modelDataUrl = std::forward<ModelDataUrlT>(value);
116 }
117 template <typename ModelDataUrlT = Aws::String>
119 SetModelDataUrl(std::forward<ModelDataUrlT>(value));
120 return *this;
121 }
123
125
129 inline const ModelDataSource& GetModelDataSource() const { return m_modelDataSource; }
130 inline bool ModelDataSourceHasBeenSet() const { return m_modelDataSourceHasBeenSet; }
131 template <typename ModelDataSourceT = ModelDataSource>
132 void SetModelDataSource(ModelDataSourceT&& value) {
133 m_modelDataSourceHasBeenSet = true;
134 m_modelDataSource = std::forward<ModelDataSourceT>(value);
135 }
136 template <typename ModelDataSourceT = ModelDataSource>
138 SetModelDataSource(std::forward<ModelDataSourceT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetProductId() const { return m_productId; }
148 inline bool ProductIdHasBeenSet() const { return m_productIdHasBeenSet; }
149 template <typename ProductIdT = Aws::String>
150 void SetProductId(ProductIdT&& value) {
151 m_productIdHasBeenSet = true;
152 m_productId = std::forward<ProductIdT>(value);
153 }
154 template <typename ProductIdT = Aws::String>
156 SetProductId(std::forward<ProductIdT>(value));
157 return *this;
158 }
160
162
167 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const { return m_environment; }
168 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
169 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
170 void SetEnvironment(EnvironmentT&& value) {
171 m_environmentHasBeenSet = true;
172 m_environment = std::forward<EnvironmentT>(value);
173 }
174 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
176 SetEnvironment(std::forward<EnvironmentT>(value));
177 return *this;
178 }
179 template <typename EnvironmentKeyT = Aws::String, typename EnvironmentValueT = Aws::String>
180 ModelPackageContainerDefinition& AddEnvironment(EnvironmentKeyT&& key, EnvironmentValueT&& value) {
181 m_environmentHasBeenSet = true;
182 m_environment.emplace(std::forward<EnvironmentKeyT>(key), std::forward<EnvironmentValueT>(value));
183 return *this;
184 }
186
188
191 inline const ModelInput& GetModelInput() const { return m_modelInput; }
192 inline bool ModelInputHasBeenSet() const { return m_modelInputHasBeenSet; }
193 template <typename ModelInputT = ModelInput>
194 void SetModelInput(ModelInputT&& value) {
195 m_modelInputHasBeenSet = true;
196 m_modelInput = std::forward<ModelInputT>(value);
197 }
198 template <typename ModelInputT = ModelInput>
200 SetModelInput(std::forward<ModelInputT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::String& GetFramework() const { return m_framework; }
210 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
211 template <typename FrameworkT = Aws::String>
212 void SetFramework(FrameworkT&& value) {
213 m_frameworkHasBeenSet = true;
214 m_framework = std::forward<FrameworkT>(value);
215 }
216 template <typename FrameworkT = Aws::String>
218 SetFramework(std::forward<FrameworkT>(value));
219 return *this;
220 }
222
224
227 inline const Aws::String& GetFrameworkVersion() const { return m_frameworkVersion; }
228 inline bool FrameworkVersionHasBeenSet() const { return m_frameworkVersionHasBeenSet; }
229 template <typename FrameworkVersionT = Aws::String>
230 void SetFrameworkVersion(FrameworkVersionT&& value) {
231 m_frameworkVersionHasBeenSet = true;
232 m_frameworkVersion = std::forward<FrameworkVersionT>(value);
233 }
234 template <typename FrameworkVersionT = Aws::String>
236 SetFrameworkVersion(std::forward<FrameworkVersionT>(value));
237 return *this;
238 }
240
242
247 inline const Aws::String& GetNearestModelName() const { return m_nearestModelName; }
248 inline bool NearestModelNameHasBeenSet() const { return m_nearestModelNameHasBeenSet; }
249 template <typename NearestModelNameT = Aws::String>
250 void SetNearestModelName(NearestModelNameT&& value) {
251 m_nearestModelNameHasBeenSet = true;
252 m_nearestModelName = std::forward<NearestModelNameT>(value);
253 }
254 template <typename NearestModelNameT = Aws::String>
256 SetNearestModelName(std::forward<NearestModelNameT>(value));
257 return *this;
258 }
260
262
266 inline const AdditionalS3DataSource& GetAdditionalS3DataSource() const { return m_additionalS3DataSource; }
267 inline bool AdditionalS3DataSourceHasBeenSet() const { return m_additionalS3DataSourceHasBeenSet; }
268 template <typename AdditionalS3DataSourceT = AdditionalS3DataSource>
269 void SetAdditionalS3DataSource(AdditionalS3DataSourceT&& value) {
270 m_additionalS3DataSourceHasBeenSet = true;
271 m_additionalS3DataSource = std::forward<AdditionalS3DataSourceT>(value);
272 }
273 template <typename AdditionalS3DataSourceT = AdditionalS3DataSource>
275 SetAdditionalS3DataSource(std::forward<AdditionalS3DataSourceT>(value));
276 return *this;
277 }
279
281
284 inline const Aws::String& GetModelDataETag() const { return m_modelDataETag; }
285 inline bool ModelDataETagHasBeenSet() const { return m_modelDataETagHasBeenSet; }
286 template <typename ModelDataETagT = Aws::String>
287 void SetModelDataETag(ModelDataETagT&& value) {
288 m_modelDataETagHasBeenSet = true;
289 m_modelDataETag = std::forward<ModelDataETagT>(value);
290 }
291 template <typename ModelDataETagT = Aws::String>
293 SetModelDataETag(std::forward<ModelDataETagT>(value));
294 return *this;
295 }
297
299
302 inline bool GetIsCheckpoint() const { return m_isCheckpoint; }
303 inline bool IsCheckpointHasBeenSet() const { return m_isCheckpointHasBeenSet; }
304 inline void SetIsCheckpoint(bool value) {
305 m_isCheckpointHasBeenSet = true;
306 m_isCheckpoint = value;
307 }
309 SetIsCheckpoint(value);
310 return *this;
311 }
313
315
318 inline const BaseModel& GetBaseModel() const { return m_baseModel; }
319 inline bool BaseModelHasBeenSet() const { return m_baseModelHasBeenSet; }
320 template <typename BaseModelT = BaseModel>
321 void SetBaseModel(BaseModelT&& value) {
322 m_baseModelHasBeenSet = true;
323 m_baseModel = std::forward<BaseModelT>(value);
324 }
325 template <typename BaseModelT = BaseModel>
327 SetBaseModel(std::forward<BaseModelT>(value));
328 return *this;
329 }
331 private:
332 Aws::String m_containerHostname;
333
334 Aws::String m_image;
335
336 Aws::String m_imageDigest;
337
338 Aws::String m_modelDataUrl;
339
340 ModelDataSource m_modelDataSource;
341
342 Aws::String m_productId;
343
345
346 ModelInput m_modelInput;
347
348 Aws::String m_framework;
349
350 Aws::String m_frameworkVersion;
351
352 Aws::String m_nearestModelName;
353
354 AdditionalS3DataSource m_additionalS3DataSource;
355
356 Aws::String m_modelDataETag;
357
358 bool m_isCheckpoint{false};
359
360 BaseModel m_baseModel;
361 bool m_containerHostnameHasBeenSet = false;
362 bool m_imageHasBeenSet = false;
363 bool m_imageDigestHasBeenSet = false;
364 bool m_modelDataUrlHasBeenSet = false;
365 bool m_modelDataSourceHasBeenSet = false;
366 bool m_productIdHasBeenSet = false;
367 bool m_environmentHasBeenSet = false;
368 bool m_modelInputHasBeenSet = false;
369 bool m_frameworkHasBeenSet = false;
370 bool m_frameworkVersionHasBeenSet = false;
371 bool m_nearestModelNameHasBeenSet = false;
372 bool m_additionalS3DataSourceHasBeenSet = false;
373 bool m_modelDataETagHasBeenSet = false;
374 bool m_isCheckpointHasBeenSet = false;
375 bool m_baseModelHasBeenSet = false;
376};
377
378} // namespace Model
379} // namespace SageMaker
380} // namespace Aws
ModelPackageContainerDefinition & WithModelDataSource(ModelDataSourceT &&value)
ModelPackageContainerDefinition & WithAdditionalS3DataSource(AdditionalS3DataSourceT &&value)
ModelPackageContainerDefinition & WithFramework(FrameworkT &&value)
AWS_SAGEMAKER_API ModelPackageContainerDefinition(Aws::Utils::Json::JsonView jsonValue)
ModelPackageContainerDefinition & AddEnvironment(EnvironmentKeyT &&key, EnvironmentValueT &&value)
ModelPackageContainerDefinition & WithBaseModel(BaseModelT &&value)
ModelPackageContainerDefinition & WithNearestModelName(NearestModelNameT &&value)
ModelPackageContainerDefinition & WithContainerHostname(ContainerHostnameT &&value)
ModelPackageContainerDefinition & WithModelDataETag(ModelDataETagT &&value)
AWS_SAGEMAKER_API ModelPackageContainerDefinition()=default
ModelPackageContainerDefinition & WithIsCheckpoint(bool value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ModelPackageContainerDefinition & WithFrameworkVersion(FrameworkVersionT &&value)
ModelPackageContainerDefinition & WithModelInput(ModelInputT &&value)
ModelPackageContainerDefinition & WithImageDigest(ImageDigestT &&value)
AWS_SAGEMAKER_API ModelPackageContainerDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
ModelPackageContainerDefinition & WithProductId(ProductIdT &&value)
ModelPackageContainerDefinition & WithModelDataUrl(ModelDataUrlT &&value)
ModelPackageContainerDefinition & WithEnvironment(EnvironmentT &&value)
ModelPackageContainerDefinition & WithImage(ImageT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEnvironment() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue