AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ModelPackageContainerDefinition.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/ModelDataSource.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/sagemaker/model/ModelInput.h>
12#include <aws/sagemaker/model/AdditionalS3DataSource.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SageMaker
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_SAGEMAKER_API ModelPackageContainerDefinition() = default;
42 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetContainerHostname() const { return m_containerHostname; }
50 inline bool ContainerHostnameHasBeenSet() const { return m_containerHostnameHasBeenSet; }
51 template<typename ContainerHostnameT = Aws::String>
52 void SetContainerHostname(ContainerHostnameT&& value) { m_containerHostnameHasBeenSet = true; m_containerHostname = std::forward<ContainerHostnameT>(value); }
53 template<typename ContainerHostnameT = Aws::String>
54 ModelPackageContainerDefinition& WithContainerHostname(ContainerHostnameT&& value) { SetContainerHostname(std::forward<ContainerHostnameT>(value)); return *this;}
56
58
68 inline const Aws::String& GetImage() const { return m_image; }
69 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
70 template<typename ImageT = Aws::String>
71 void SetImage(ImageT&& value) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
72 template<typename ImageT = Aws::String>
73 ModelPackageContainerDefinition& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
75
77
81 inline const Aws::String& GetImageDigest() const { return m_imageDigest; }
82 inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; }
83 template<typename ImageDigestT = Aws::String>
84 void SetImageDigest(ImageDigestT&& value) { m_imageDigestHasBeenSet = true; m_imageDigest = std::forward<ImageDigestT>(value); }
85 template<typename ImageDigestT = Aws::String>
86 ModelPackageContainerDefinition& WithImageDigest(ImageDigestT&& value) { SetImageDigest(std::forward<ImageDigestT>(value)); return *this;}
88
90
97 inline const Aws::String& GetModelDataUrl() const { return m_modelDataUrl; }
98 inline bool ModelDataUrlHasBeenSet() const { return m_modelDataUrlHasBeenSet; }
99 template<typename ModelDataUrlT = Aws::String>
100 void SetModelDataUrl(ModelDataUrlT&& value) { m_modelDataUrlHasBeenSet = true; m_modelDataUrl = std::forward<ModelDataUrlT>(value); }
101 template<typename ModelDataUrlT = Aws::String>
102 ModelPackageContainerDefinition& WithModelDataUrl(ModelDataUrlT&& value) { SetModelDataUrl(std::forward<ModelDataUrlT>(value)); return *this;}
104
106
110 inline const ModelDataSource& GetModelDataSource() const { return m_modelDataSource; }
111 inline bool ModelDataSourceHasBeenSet() const { return m_modelDataSourceHasBeenSet; }
112 template<typename ModelDataSourceT = ModelDataSource>
113 void SetModelDataSource(ModelDataSourceT&& value) { m_modelDataSourceHasBeenSet = true; m_modelDataSource = std::forward<ModelDataSourceT>(value); }
114 template<typename ModelDataSourceT = ModelDataSource>
115 ModelPackageContainerDefinition& WithModelDataSource(ModelDataSourceT&& value) { SetModelDataSource(std::forward<ModelDataSourceT>(value)); return *this;}
117
119
122 inline const Aws::String& GetProductId() const { return m_productId; }
123 inline bool ProductIdHasBeenSet() const { return m_productIdHasBeenSet; }
124 template<typename ProductIdT = Aws::String>
125 void SetProductId(ProductIdT&& value) { m_productIdHasBeenSet = true; m_productId = std::forward<ProductIdT>(value); }
126 template<typename ProductIdT = Aws::String>
127 ModelPackageContainerDefinition& WithProductId(ProductIdT&& value) { SetProductId(std::forward<ProductIdT>(value)); return *this;}
129
131
136 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const { return m_environment; }
137 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
138 template<typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
139 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment = std::forward<EnvironmentT>(value); }
140 template<typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
141 ModelPackageContainerDefinition& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
142 template<typename EnvironmentKeyT = Aws::String, typename EnvironmentValueT = Aws::String>
143 ModelPackageContainerDefinition& AddEnvironment(EnvironmentKeyT&& key, EnvironmentValueT&& value) {
144 m_environmentHasBeenSet = true; m_environment.emplace(std::forward<EnvironmentKeyT>(key), std::forward<EnvironmentValueT>(value)); return *this;
145 }
147
149
152 inline const ModelInput& GetModelInput() const { return m_modelInput; }
153 inline bool ModelInputHasBeenSet() const { return m_modelInputHasBeenSet; }
154 template<typename ModelInputT = ModelInput>
155 void SetModelInput(ModelInputT&& value) { m_modelInputHasBeenSet = true; m_modelInput = std::forward<ModelInputT>(value); }
156 template<typename ModelInputT = ModelInput>
157 ModelPackageContainerDefinition& WithModelInput(ModelInputT&& value) { SetModelInput(std::forward<ModelInputT>(value)); return *this;}
159
161
164 inline const Aws::String& GetFramework() const { return m_framework; }
165 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
166 template<typename FrameworkT = Aws::String>
167 void SetFramework(FrameworkT&& value) { m_frameworkHasBeenSet = true; m_framework = std::forward<FrameworkT>(value); }
168 template<typename FrameworkT = Aws::String>
169 ModelPackageContainerDefinition& WithFramework(FrameworkT&& value) { SetFramework(std::forward<FrameworkT>(value)); return *this;}
171
173
176 inline const Aws::String& GetFrameworkVersion() const { return m_frameworkVersion; }
177 inline bool FrameworkVersionHasBeenSet() const { return m_frameworkVersionHasBeenSet; }
178 template<typename FrameworkVersionT = Aws::String>
179 void SetFrameworkVersion(FrameworkVersionT&& value) { m_frameworkVersionHasBeenSet = true; m_frameworkVersion = std::forward<FrameworkVersionT>(value); }
180 template<typename FrameworkVersionT = Aws::String>
181 ModelPackageContainerDefinition& WithFrameworkVersion(FrameworkVersionT&& value) { SetFrameworkVersion(std::forward<FrameworkVersionT>(value)); return *this;}
183
185
190 inline const Aws::String& GetNearestModelName() const { return m_nearestModelName; }
191 inline bool NearestModelNameHasBeenSet() const { return m_nearestModelNameHasBeenSet; }
192 template<typename NearestModelNameT = Aws::String>
193 void SetNearestModelName(NearestModelNameT&& value) { m_nearestModelNameHasBeenSet = true; m_nearestModelName = std::forward<NearestModelNameT>(value); }
194 template<typename NearestModelNameT = Aws::String>
195 ModelPackageContainerDefinition& WithNearestModelName(NearestModelNameT&& value) { SetNearestModelName(std::forward<NearestModelNameT>(value)); return *this;}
197
199
203 inline const AdditionalS3DataSource& GetAdditionalS3DataSource() const { return m_additionalS3DataSource; }
204 inline bool AdditionalS3DataSourceHasBeenSet() const { return m_additionalS3DataSourceHasBeenSet; }
205 template<typename AdditionalS3DataSourceT = AdditionalS3DataSource>
206 void SetAdditionalS3DataSource(AdditionalS3DataSourceT&& value) { m_additionalS3DataSourceHasBeenSet = true; m_additionalS3DataSource = std::forward<AdditionalS3DataSourceT>(value); }
207 template<typename AdditionalS3DataSourceT = AdditionalS3DataSource>
208 ModelPackageContainerDefinition& WithAdditionalS3DataSource(AdditionalS3DataSourceT&& value) { SetAdditionalS3DataSource(std::forward<AdditionalS3DataSourceT>(value)); return *this;}
210
212
215 inline const Aws::String& GetModelDataETag() const { return m_modelDataETag; }
216 inline bool ModelDataETagHasBeenSet() const { return m_modelDataETagHasBeenSet; }
217 template<typename ModelDataETagT = Aws::String>
218 void SetModelDataETag(ModelDataETagT&& value) { m_modelDataETagHasBeenSet = true; m_modelDataETag = std::forward<ModelDataETagT>(value); }
219 template<typename ModelDataETagT = Aws::String>
220 ModelPackageContainerDefinition& WithModelDataETag(ModelDataETagT&& value) { SetModelDataETag(std::forward<ModelDataETagT>(value)); return *this;}
222 private:
223
224 Aws::String m_containerHostname;
225 bool m_containerHostnameHasBeenSet = false;
226
227 Aws::String m_image;
228 bool m_imageHasBeenSet = false;
229
230 Aws::String m_imageDigest;
231 bool m_imageDigestHasBeenSet = false;
232
233 Aws::String m_modelDataUrl;
234 bool m_modelDataUrlHasBeenSet = false;
235
236 ModelDataSource m_modelDataSource;
237 bool m_modelDataSourceHasBeenSet = false;
238
239 Aws::String m_productId;
240 bool m_productIdHasBeenSet = false;
241
243 bool m_environmentHasBeenSet = false;
244
245 ModelInput m_modelInput;
246 bool m_modelInputHasBeenSet = false;
247
248 Aws::String m_framework;
249 bool m_frameworkHasBeenSet = false;
250
251 Aws::String m_frameworkVersion;
252 bool m_frameworkVersionHasBeenSet = false;
253
254 Aws::String m_nearestModelName;
255 bool m_nearestModelNameHasBeenSet = false;
256
257 AdditionalS3DataSource m_additionalS3DataSource;
258 bool m_additionalS3DataSourceHasBeenSet = false;
259
260 Aws::String m_modelDataETag;
261 bool m_modelDataETagHasBeenSet = false;
262 };
263
264} // namespace Model
265} // namespace SageMaker
266} // 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 & WithNearestModelName(NearestModelNameT &&value)
ModelPackageContainerDefinition & WithContainerHostname(ContainerHostnameT &&value)
ModelPackageContainerDefinition & WithModelDataETag(ModelDataETagT &&value)
AWS_SAGEMAKER_API ModelPackageContainerDefinition()=default
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