AWS SDK for C++

AWS SDK for C++ Version 1.11.804

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/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/AdditionalModelDataSource.h>
12#include <aws/sagemaker/model/AdditionalS3DataSource.h>
13#include <aws/sagemaker/model/BaseModel.h>
14#include <aws/sagemaker/model/ModelDataSource.h>
15#include <aws/sagemaker/model/ModelInput.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SageMaker {
27namespace Model {
28
36 public:
37 AWS_SAGEMAKER_API ModelPackageContainerDefinition() = default;
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetContainerHostname() const { return m_containerHostname; }
47 inline bool ContainerHostnameHasBeenSet() const { return m_containerHostnameHasBeenSet; }
48 template <typename ContainerHostnameT = Aws::String>
49 void SetContainerHostname(ContainerHostnameT&& value) {
50 m_containerHostnameHasBeenSet = true;
51 m_containerHostname = std::forward<ContainerHostnameT>(value);
52 }
53 template <typename ContainerHostnameT = Aws::String>
55 SetContainerHostname(std::forward<ContainerHostnameT>(value));
56 return *this;
57 }
59
61
71 inline const Aws::String& GetImage() const { return m_image; }
72 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
73 template <typename ImageT = Aws::String>
74 void SetImage(ImageT&& value) {
75 m_imageHasBeenSet = true;
76 m_image = std::forward<ImageT>(value);
77 }
78 template <typename ImageT = Aws::String>
80 SetImage(std::forward<ImageT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::String& GetImageDigest() const { return m_imageDigest; }
91 inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; }
92 template <typename ImageDigestT = Aws::String>
93 void SetImageDigest(ImageDigestT&& value) {
94 m_imageDigestHasBeenSet = true;
95 m_imageDigest = std::forward<ImageDigestT>(value);
96 }
97 template <typename ImageDigestT = Aws::String>
99 SetImageDigest(std::forward<ImageDigestT>(value));
100 return *this;
101 }
103
105
112 inline const Aws::String& GetModelDataUrl() const { return m_modelDataUrl; }
113 inline bool ModelDataUrlHasBeenSet() const { return m_modelDataUrlHasBeenSet; }
114 template <typename ModelDataUrlT = Aws::String>
115 void SetModelDataUrl(ModelDataUrlT&& value) {
116 m_modelDataUrlHasBeenSet = true;
117 m_modelDataUrl = std::forward<ModelDataUrlT>(value);
118 }
119 template <typename ModelDataUrlT = Aws::String>
121 SetModelDataUrl(std::forward<ModelDataUrlT>(value));
122 return *this;
123 }
125
127
131 inline const ModelDataSource& GetModelDataSource() const { return m_modelDataSource; }
132 inline bool ModelDataSourceHasBeenSet() const { return m_modelDataSourceHasBeenSet; }
133 template <typename ModelDataSourceT = ModelDataSource>
134 void SetModelDataSource(ModelDataSourceT&& value) {
135 m_modelDataSourceHasBeenSet = true;
136 m_modelDataSource = std::forward<ModelDataSourceT>(value);
137 }
138 template <typename ModelDataSourceT = ModelDataSource>
140 SetModelDataSource(std::forward<ModelDataSourceT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetProductId() const { return m_productId; }
150 inline bool ProductIdHasBeenSet() const { return m_productIdHasBeenSet; }
151 template <typename ProductIdT = Aws::String>
152 void SetProductId(ProductIdT&& value) {
153 m_productIdHasBeenSet = true;
154 m_productId = std::forward<ProductIdT>(value);
155 }
156 template <typename ProductIdT = Aws::String>
158 SetProductId(std::forward<ProductIdT>(value));
159 return *this;
160 }
162
164
169 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const { return m_environment; }
170 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
171 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
172 void SetEnvironment(EnvironmentT&& value) {
173 m_environmentHasBeenSet = true;
174 m_environment = std::forward<EnvironmentT>(value);
175 }
176 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
178 SetEnvironment(std::forward<EnvironmentT>(value));
179 return *this;
180 }
181 template <typename EnvironmentKeyT = Aws::String, typename EnvironmentValueT = Aws::String>
182 ModelPackageContainerDefinition& AddEnvironment(EnvironmentKeyT&& key, EnvironmentValueT&& value) {
183 m_environmentHasBeenSet = true;
184 m_environment.emplace(std::forward<EnvironmentKeyT>(key), std::forward<EnvironmentValueT>(value));
185 return *this;
186 }
188
190
193 inline const ModelInput& GetModelInput() const { return m_modelInput; }
194 inline bool ModelInputHasBeenSet() const { return m_modelInputHasBeenSet; }
195 template <typename ModelInputT = ModelInput>
196 void SetModelInput(ModelInputT&& value) {
197 m_modelInputHasBeenSet = true;
198 m_modelInput = std::forward<ModelInputT>(value);
199 }
200 template <typename ModelInputT = ModelInput>
202 SetModelInput(std::forward<ModelInputT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::String& GetFramework() const { return m_framework; }
212 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
213 template <typename FrameworkT = Aws::String>
214 void SetFramework(FrameworkT&& value) {
215 m_frameworkHasBeenSet = true;
216 m_framework = std::forward<FrameworkT>(value);
217 }
218 template <typename FrameworkT = Aws::String>
220 SetFramework(std::forward<FrameworkT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::String& GetFrameworkVersion() const { return m_frameworkVersion; }
230 inline bool FrameworkVersionHasBeenSet() const { return m_frameworkVersionHasBeenSet; }
231 template <typename FrameworkVersionT = Aws::String>
232 void SetFrameworkVersion(FrameworkVersionT&& value) {
233 m_frameworkVersionHasBeenSet = true;
234 m_frameworkVersion = std::forward<FrameworkVersionT>(value);
235 }
236 template <typename FrameworkVersionT = Aws::String>
238 SetFrameworkVersion(std::forward<FrameworkVersionT>(value));
239 return *this;
240 }
242
244
249 inline const Aws::String& GetNearestModelName() const { return m_nearestModelName; }
250 inline bool NearestModelNameHasBeenSet() const { return m_nearestModelNameHasBeenSet; }
251 template <typename NearestModelNameT = Aws::String>
252 void SetNearestModelName(NearestModelNameT&& value) {
253 m_nearestModelNameHasBeenSet = true;
254 m_nearestModelName = std::forward<NearestModelNameT>(value);
255 }
256 template <typename NearestModelNameT = Aws::String>
258 SetNearestModelName(std::forward<NearestModelNameT>(value));
259 return *this;
260 }
262
264
269 inline const Aws::Vector<AdditionalModelDataSource>& GetAdditionalModelDataSources() const { return m_additionalModelDataSources; }
270 inline bool AdditionalModelDataSourcesHasBeenSet() const { return m_additionalModelDataSourcesHasBeenSet; }
271 template <typename AdditionalModelDataSourcesT = Aws::Vector<AdditionalModelDataSource>>
272 void SetAdditionalModelDataSources(AdditionalModelDataSourcesT&& value) {
273 m_additionalModelDataSourcesHasBeenSet = true;
274 m_additionalModelDataSources = std::forward<AdditionalModelDataSourcesT>(value);
275 }
276 template <typename AdditionalModelDataSourcesT = Aws::Vector<AdditionalModelDataSource>>
278 SetAdditionalModelDataSources(std::forward<AdditionalModelDataSourcesT>(value));
279 return *this;
280 }
281 template <typename AdditionalModelDataSourcesT = AdditionalModelDataSource>
283 m_additionalModelDataSourcesHasBeenSet = true;
284 m_additionalModelDataSources.emplace_back(std::forward<AdditionalModelDataSourcesT>(value));
285 return *this;
286 }
288
290
294 inline const AdditionalS3DataSource& GetAdditionalS3DataSource() const { return m_additionalS3DataSource; }
295 inline bool AdditionalS3DataSourceHasBeenSet() const { return m_additionalS3DataSourceHasBeenSet; }
296 template <typename AdditionalS3DataSourceT = AdditionalS3DataSource>
297 void SetAdditionalS3DataSource(AdditionalS3DataSourceT&& value) {
298 m_additionalS3DataSourceHasBeenSet = true;
299 m_additionalS3DataSource = std::forward<AdditionalS3DataSourceT>(value);
300 }
301 template <typename AdditionalS3DataSourceT = AdditionalS3DataSource>
303 SetAdditionalS3DataSource(std::forward<AdditionalS3DataSourceT>(value));
304 return *this;
305 }
307
309
312 inline const Aws::String& GetModelDataETag() const { return m_modelDataETag; }
313 inline bool ModelDataETagHasBeenSet() const { return m_modelDataETagHasBeenSet; }
314 template <typename ModelDataETagT = Aws::String>
315 void SetModelDataETag(ModelDataETagT&& value) {
316 m_modelDataETagHasBeenSet = true;
317 m_modelDataETag = std::forward<ModelDataETagT>(value);
318 }
319 template <typename ModelDataETagT = Aws::String>
321 SetModelDataETag(std::forward<ModelDataETagT>(value));
322 return *this;
323 }
325
327
330 inline bool GetIsCheckpoint() const { return m_isCheckpoint; }
331 inline bool IsCheckpointHasBeenSet() const { return m_isCheckpointHasBeenSet; }
332 inline void SetIsCheckpoint(bool value) {
333 m_isCheckpointHasBeenSet = true;
334 m_isCheckpoint = value;
335 }
337 SetIsCheckpoint(value);
338 return *this;
339 }
341
343
347 inline const BaseModel& GetBaseModel() const { return m_baseModel; }
348 inline bool BaseModelHasBeenSet() const { return m_baseModelHasBeenSet; }
349 template <typename BaseModelT = BaseModel>
350 void SetBaseModel(BaseModelT&& value) {
351 m_baseModelHasBeenSet = true;
352 m_baseModel = std::forward<BaseModelT>(value);
353 }
354 template <typename BaseModelT = BaseModel>
356 SetBaseModel(std::forward<BaseModelT>(value));
357 return *this;
358 }
360 private:
361 Aws::String m_containerHostname;
362
363 Aws::String m_image;
364
365 Aws::String m_imageDigest;
366
367 Aws::String m_modelDataUrl;
368
369 ModelDataSource m_modelDataSource;
370
371 Aws::String m_productId;
372
374
375 ModelInput m_modelInput;
376
377 Aws::String m_framework;
378
379 Aws::String m_frameworkVersion;
380
381 Aws::String m_nearestModelName;
382
383 Aws::Vector<AdditionalModelDataSource> m_additionalModelDataSources;
384
385 AdditionalS3DataSource m_additionalS3DataSource;
386
387 Aws::String m_modelDataETag;
388
389 bool m_isCheckpoint{false};
390
391 BaseModel m_baseModel;
392 bool m_containerHostnameHasBeenSet = false;
393 bool m_imageHasBeenSet = false;
394 bool m_imageDigestHasBeenSet = false;
395 bool m_modelDataUrlHasBeenSet = false;
396 bool m_modelDataSourceHasBeenSet = false;
397 bool m_productIdHasBeenSet = false;
398 bool m_environmentHasBeenSet = false;
399 bool m_modelInputHasBeenSet = false;
400 bool m_frameworkHasBeenSet = false;
401 bool m_frameworkVersionHasBeenSet = false;
402 bool m_nearestModelNameHasBeenSet = false;
403 bool m_additionalModelDataSourcesHasBeenSet = false;
404 bool m_additionalS3DataSourceHasBeenSet = false;
405 bool m_modelDataETagHasBeenSet = false;
406 bool m_isCheckpointHasBeenSet = false;
407 bool m_baseModelHasBeenSet = false;
408};
409
410} // namespace Model
411} // namespace SageMaker
412} // namespace Aws
ModelPackageContainerDefinition & WithModelDataSource(ModelDataSourceT &&value)
ModelPackageContainerDefinition & WithAdditionalS3DataSource(AdditionalS3DataSourceT &&value)
ModelPackageContainerDefinition & AddAdditionalModelDataSources(AdditionalModelDataSourcesT &&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)
const Aws::Vector< AdditionalModelDataSource > & GetAdditionalModelDataSources() const
AWS_SAGEMAKER_API ModelPackageContainerDefinition()=default
ModelPackageContainerDefinition & WithIsCheckpoint(bool value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ModelPackageContainerDefinition & WithFrameworkVersion(FrameworkVersionT &&value)
void SetAdditionalModelDataSources(AdditionalModelDataSourcesT &&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 & WithAdditionalModelDataSources(AdditionalModelDataSourcesT &&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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue