AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ContainerDefinition.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/ContainerMode.h>
13#include <aws/sagemaker/model/ImageConfig.h>
14#include <aws/sagemaker/model/ModelDataSource.h>
15#include <aws/sagemaker/model/MultiModelConfig.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 ContainerDefinition() = default;
38 AWS_SAGEMAKER_API ContainerDefinition(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
58 inline const Aws::String& GetContainerHostname() const { return m_containerHostname; }
59 inline bool ContainerHostnameHasBeenSet() const { return m_containerHostnameHasBeenSet; }
60 template <typename ContainerHostnameT = Aws::String>
61 void SetContainerHostname(ContainerHostnameT&& value) {
62 m_containerHostnameHasBeenSet = true;
63 m_containerHostname = std::forward<ContainerHostnameT>(value);
64 }
65 template <typename ContainerHostnameT = Aws::String>
66 ContainerDefinition& WithContainerHostname(ContainerHostnameT&& value) {
67 SetContainerHostname(std::forward<ContainerHostnameT>(value));
68 return *this;
69 }
71
73
88 inline const Aws::String& GetImage() const { return m_image; }
89 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
90 template <typename ImageT = Aws::String>
91 void SetImage(ImageT&& value) {
92 m_imageHasBeenSet = true;
93 m_image = std::forward<ImageT>(value);
94 }
95 template <typename ImageT = Aws::String>
96 ContainerDefinition& WithImage(ImageT&& value) {
97 SetImage(std::forward<ImageT>(value));
98 return *this;
99 }
101
103
113 inline const ImageConfig& GetImageConfig() const { return m_imageConfig; }
114 inline bool ImageConfigHasBeenSet() const { return m_imageConfigHasBeenSet; }
115 template <typename ImageConfigT = ImageConfig>
116 void SetImageConfig(ImageConfigT&& value) {
117 m_imageConfigHasBeenSet = true;
118 m_imageConfig = std::forward<ImageConfigT>(value);
119 }
120 template <typename ImageConfigT = ImageConfig>
121 ContainerDefinition& WithImageConfig(ImageConfigT&& value) {
122 SetImageConfig(std::forward<ImageConfigT>(value));
123 return *this;
124 }
126
128
131 inline ContainerMode GetMode() const { return m_mode; }
132 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
133 inline void SetMode(ContainerMode value) {
134 m_modeHasBeenSet = true;
135 m_mode = value;
136 }
138 SetMode(value);
139 return *this;
140 }
142
144
165 inline const Aws::String& GetModelDataUrl() const { return m_modelDataUrl; }
166 inline bool ModelDataUrlHasBeenSet() const { return m_modelDataUrlHasBeenSet; }
167 template <typename ModelDataUrlT = Aws::String>
168 void SetModelDataUrl(ModelDataUrlT&& value) {
169 m_modelDataUrlHasBeenSet = true;
170 m_modelDataUrl = std::forward<ModelDataUrlT>(value);
171 }
172 template <typename ModelDataUrlT = Aws::String>
173 ContainerDefinition& WithModelDataUrl(ModelDataUrlT&& value) {
174 SetModelDataUrl(std::forward<ModelDataUrlT>(value));
175 return *this;
176 }
178
180
186 inline const ModelDataSource& GetModelDataSource() const { return m_modelDataSource; }
187 inline bool ModelDataSourceHasBeenSet() const { return m_modelDataSourceHasBeenSet; }
188 template <typename ModelDataSourceT = ModelDataSource>
189 void SetModelDataSource(ModelDataSourceT&& value) {
190 m_modelDataSourceHasBeenSet = true;
191 m_modelDataSource = std::forward<ModelDataSourceT>(value);
192 }
193 template <typename ModelDataSourceT = ModelDataSource>
194 ContainerDefinition& WithModelDataSource(ModelDataSourceT&& value) {
195 SetModelDataSource(std::forward<ModelDataSourceT>(value));
196 return *this;
197 }
199
201
206 inline const Aws::Vector<AdditionalModelDataSource>& GetAdditionalModelDataSources() const { return m_additionalModelDataSources; }
207 inline bool AdditionalModelDataSourcesHasBeenSet() const { return m_additionalModelDataSourcesHasBeenSet; }
208 template <typename AdditionalModelDataSourcesT = Aws::Vector<AdditionalModelDataSource>>
209 void SetAdditionalModelDataSources(AdditionalModelDataSourcesT&& value) {
210 m_additionalModelDataSourcesHasBeenSet = true;
211 m_additionalModelDataSources = std::forward<AdditionalModelDataSourcesT>(value);
212 }
213 template <typename AdditionalModelDataSourcesT = Aws::Vector<AdditionalModelDataSource>>
214 ContainerDefinition& WithAdditionalModelDataSources(AdditionalModelDataSourcesT&& value) {
215 SetAdditionalModelDataSources(std::forward<AdditionalModelDataSourcesT>(value));
216 return *this;
217 }
218 template <typename AdditionalModelDataSourcesT = AdditionalModelDataSource>
219 ContainerDefinition& AddAdditionalModelDataSources(AdditionalModelDataSourcesT&& value) {
220 m_additionalModelDataSourcesHasBeenSet = true;
221 m_additionalModelDataSources.emplace_back(std::forward<AdditionalModelDataSourcesT>(value));
222 return *this;
223 }
225
227
235 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const { return m_environment; }
236 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
237 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
238 void SetEnvironment(EnvironmentT&& value) {
239 m_environmentHasBeenSet = true;
240 m_environment = std::forward<EnvironmentT>(value);
241 }
242 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
243 ContainerDefinition& WithEnvironment(EnvironmentT&& value) {
244 SetEnvironment(std::forward<EnvironmentT>(value));
245 return *this;
246 }
247 template <typename EnvironmentKeyT = Aws::String, typename EnvironmentValueT = Aws::String>
248 ContainerDefinition& AddEnvironment(EnvironmentKeyT&& key, EnvironmentValueT&& value) {
249 m_environmentHasBeenSet = true;
250 m_environment.emplace(std::forward<EnvironmentKeyT>(key), std::forward<EnvironmentValueT>(value));
251 return *this;
252 }
254
256
260 inline const Aws::String& GetModelPackageName() const { return m_modelPackageName; }
261 inline bool ModelPackageNameHasBeenSet() const { return m_modelPackageNameHasBeenSet; }
262 template <typename ModelPackageNameT = Aws::String>
263 void SetModelPackageName(ModelPackageNameT&& value) {
264 m_modelPackageNameHasBeenSet = true;
265 m_modelPackageName = std::forward<ModelPackageNameT>(value);
266 }
267 template <typename ModelPackageNameT = Aws::String>
268 ContainerDefinition& WithModelPackageName(ModelPackageNameT&& value) {
269 SetModelPackageName(std::forward<ModelPackageNameT>(value));
270 return *this;
271 }
273
275
278 inline const Aws::String& GetInferenceSpecificationName() const { return m_inferenceSpecificationName; }
279 inline bool InferenceSpecificationNameHasBeenSet() const { return m_inferenceSpecificationNameHasBeenSet; }
280 template <typename InferenceSpecificationNameT = Aws::String>
281 void SetInferenceSpecificationName(InferenceSpecificationNameT&& value) {
282 m_inferenceSpecificationNameHasBeenSet = true;
283 m_inferenceSpecificationName = std::forward<InferenceSpecificationNameT>(value);
284 }
285 template <typename InferenceSpecificationNameT = Aws::String>
286 ContainerDefinition& WithInferenceSpecificationName(InferenceSpecificationNameT&& value) {
287 SetInferenceSpecificationName(std::forward<InferenceSpecificationNameT>(value));
288 return *this;
289 }
291
293
296 inline const MultiModelConfig& GetMultiModelConfig() const { return m_multiModelConfig; }
297 inline bool MultiModelConfigHasBeenSet() const { return m_multiModelConfigHasBeenSet; }
298 template <typename MultiModelConfigT = MultiModelConfig>
299 void SetMultiModelConfig(MultiModelConfigT&& value) {
300 m_multiModelConfigHasBeenSet = true;
301 m_multiModelConfig = std::forward<MultiModelConfigT>(value);
302 }
303 template <typename MultiModelConfigT = MultiModelConfig>
304 ContainerDefinition& WithMultiModelConfig(MultiModelConfigT&& value) {
305 SetMultiModelConfig(std::forward<MultiModelConfigT>(value));
306 return *this;
307 }
309 private:
310 Aws::String m_containerHostname;
311
312 Aws::String m_image;
313
314 ImageConfig m_imageConfig;
315
317
318 Aws::String m_modelDataUrl;
319
320 ModelDataSource m_modelDataSource;
321
322 Aws::Vector<AdditionalModelDataSource> m_additionalModelDataSources;
323
325
326 Aws::String m_modelPackageName;
327
328 Aws::String m_inferenceSpecificationName;
329
330 MultiModelConfig m_multiModelConfig;
331 bool m_containerHostnameHasBeenSet = false;
332 bool m_imageHasBeenSet = false;
333 bool m_imageConfigHasBeenSet = false;
334 bool m_modeHasBeenSet = false;
335 bool m_modelDataUrlHasBeenSet = false;
336 bool m_modelDataSourceHasBeenSet = false;
337 bool m_additionalModelDataSourcesHasBeenSet = false;
338 bool m_environmentHasBeenSet = false;
339 bool m_modelPackageNameHasBeenSet = false;
340 bool m_inferenceSpecificationNameHasBeenSet = false;
341 bool m_multiModelConfigHasBeenSet = false;
342};
343
344} // namespace Model
345} // namespace SageMaker
346} // namespace Aws
ContainerDefinition & WithContainerHostname(ContainerHostnameT &&value)
void SetInferenceSpecificationName(InferenceSpecificationNameT &&value)
const Aws::String & GetContainerHostname() const
void SetModelPackageName(ModelPackageNameT &&value)
AWS_SAGEMAKER_API ContainerDefinition(Aws::Utils::Json::JsonView jsonValue)
ContainerDefinition & WithModelPackageName(ModelPackageNameT &&value)
AWS_SAGEMAKER_API ContainerDefinition()=default
ContainerDefinition & AddEnvironment(EnvironmentKeyT &&key, EnvironmentValueT &&value)
void SetAdditionalModelDataSources(AdditionalModelDataSourcesT &&value)
ContainerDefinition & WithModelDataSource(ModelDataSourceT &&value)
ContainerDefinition & WithMode(ContainerMode value)
const Aws::String & GetInferenceSpecificationName() const
ContainerDefinition & WithAdditionalModelDataSources(AdditionalModelDataSourcesT &&value)
ContainerDefinition & AddAdditionalModelDataSources(AdditionalModelDataSourcesT &&value)
const MultiModelConfig & GetMultiModelConfig() const
ContainerDefinition & WithInferenceSpecificationName(InferenceSpecificationNameT &&value)
ContainerDefinition & WithEnvironment(EnvironmentT &&value)
void SetModelDataSource(ModelDataSourceT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API ContainerDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerDefinition & WithMultiModelConfig(MultiModelConfigT &&value)
const ModelDataSource & GetModelDataSource() const
void SetContainerHostname(ContainerHostnameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEnvironment() const
ContainerDefinition & WithImage(ImageT &&value)
ContainerDefinition & WithImageConfig(ImageConfigT &&value)
ContainerDefinition & WithModelDataUrl(ModelDataUrlT &&value)
void SetMultiModelConfig(MultiModelConfigT &&value)
const Aws::Vector< AdditionalModelDataSource > & GetAdditionalModelDataSources() 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