AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ContainerDefinition.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/ImageConfig.h>
10#include <aws/sagemaker/model/ContainerMode.h>
11#include <aws/sagemaker/model/ModelDataSource.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/sagemaker/model/MultiModelConfig.h>
15#include <aws/sagemaker/model/AdditionalModelDataSource.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace SageMaker
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_SAGEMAKER_API ContainerDefinition() = default;
43 AWS_SAGEMAKER_API ContainerDefinition(Aws::Utils::Json::JsonView jsonValue);
45 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
64 inline const Aws::String& GetContainerHostname() const { return m_containerHostname; }
65 inline bool ContainerHostnameHasBeenSet() const { return m_containerHostnameHasBeenSet; }
66 template<typename ContainerHostnameT = Aws::String>
67 void SetContainerHostname(ContainerHostnameT&& value) { m_containerHostnameHasBeenSet = true; m_containerHostname = std::forward<ContainerHostnameT>(value); }
68 template<typename ContainerHostnameT = Aws::String>
69 ContainerDefinition& WithContainerHostname(ContainerHostnameT&& value) { SetContainerHostname(std::forward<ContainerHostnameT>(value)); return *this;}
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) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
92 template<typename ImageT = Aws::String>
93 ContainerDefinition& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
95
97
107 inline const ImageConfig& GetImageConfig() const { return m_imageConfig; }
108 inline bool ImageConfigHasBeenSet() const { return m_imageConfigHasBeenSet; }
109 template<typename ImageConfigT = ImageConfig>
110 void SetImageConfig(ImageConfigT&& value) { m_imageConfigHasBeenSet = true; m_imageConfig = std::forward<ImageConfigT>(value); }
111 template<typename ImageConfigT = ImageConfig>
112 ContainerDefinition& WithImageConfig(ImageConfigT&& value) { SetImageConfig(std::forward<ImageConfigT>(value)); return *this;}
114
116
119 inline ContainerMode GetMode() const { return m_mode; }
120 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
121 inline void SetMode(ContainerMode value) { m_modeHasBeenSet = true; m_mode = value; }
122 inline ContainerDefinition& WithMode(ContainerMode value) { SetMode(value); return *this;}
124
126
147 inline const Aws::String& GetModelDataUrl() const { return m_modelDataUrl; }
148 inline bool ModelDataUrlHasBeenSet() const { return m_modelDataUrlHasBeenSet; }
149 template<typename ModelDataUrlT = Aws::String>
150 void SetModelDataUrl(ModelDataUrlT&& value) { m_modelDataUrlHasBeenSet = true; m_modelDataUrl = std::forward<ModelDataUrlT>(value); }
151 template<typename ModelDataUrlT = Aws::String>
152 ContainerDefinition& WithModelDataUrl(ModelDataUrlT&& value) { SetModelDataUrl(std::forward<ModelDataUrlT>(value)); return *this;}
154
156
162 inline const ModelDataSource& GetModelDataSource() const { return m_modelDataSource; }
163 inline bool ModelDataSourceHasBeenSet() const { return m_modelDataSourceHasBeenSet; }
164 template<typename ModelDataSourceT = ModelDataSource>
165 void SetModelDataSource(ModelDataSourceT&& value) { m_modelDataSourceHasBeenSet = true; m_modelDataSource = std::forward<ModelDataSourceT>(value); }
166 template<typename ModelDataSourceT = ModelDataSource>
167 ContainerDefinition& WithModelDataSource(ModelDataSourceT&& value) { SetModelDataSource(std::forward<ModelDataSourceT>(value)); return *this;}
169
171
176 inline const Aws::Vector<AdditionalModelDataSource>& GetAdditionalModelDataSources() const { return m_additionalModelDataSources; }
177 inline bool AdditionalModelDataSourcesHasBeenSet() const { return m_additionalModelDataSourcesHasBeenSet; }
178 template<typename AdditionalModelDataSourcesT = Aws::Vector<AdditionalModelDataSource>>
179 void SetAdditionalModelDataSources(AdditionalModelDataSourcesT&& value) { m_additionalModelDataSourcesHasBeenSet = true; m_additionalModelDataSources = std::forward<AdditionalModelDataSourcesT>(value); }
180 template<typename AdditionalModelDataSourcesT = Aws::Vector<AdditionalModelDataSource>>
181 ContainerDefinition& WithAdditionalModelDataSources(AdditionalModelDataSourcesT&& value) { SetAdditionalModelDataSources(std::forward<AdditionalModelDataSourcesT>(value)); return *this;}
182 template<typename AdditionalModelDataSourcesT = AdditionalModelDataSource>
183 ContainerDefinition& AddAdditionalModelDataSources(AdditionalModelDataSourcesT&& value) { m_additionalModelDataSourcesHasBeenSet = true; m_additionalModelDataSources.emplace_back(std::forward<AdditionalModelDataSourcesT>(value)); return *this; }
185
187
195 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const { return m_environment; }
196 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
197 template<typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
198 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment = std::forward<EnvironmentT>(value); }
199 template<typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
200 ContainerDefinition& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
201 template<typename EnvironmentKeyT = Aws::String, typename EnvironmentValueT = Aws::String>
202 ContainerDefinition& AddEnvironment(EnvironmentKeyT&& key, EnvironmentValueT&& value) {
203 m_environmentHasBeenSet = true; m_environment.emplace(std::forward<EnvironmentKeyT>(key), std::forward<EnvironmentValueT>(value)); return *this;
204 }
206
208
212 inline const Aws::String& GetModelPackageName() const { return m_modelPackageName; }
213 inline bool ModelPackageNameHasBeenSet() const { return m_modelPackageNameHasBeenSet; }
214 template<typename ModelPackageNameT = Aws::String>
215 void SetModelPackageName(ModelPackageNameT&& value) { m_modelPackageNameHasBeenSet = true; m_modelPackageName = std::forward<ModelPackageNameT>(value); }
216 template<typename ModelPackageNameT = Aws::String>
217 ContainerDefinition& WithModelPackageName(ModelPackageNameT&& value) { SetModelPackageName(std::forward<ModelPackageNameT>(value)); return *this;}
219
221
224 inline const Aws::String& GetInferenceSpecificationName() const { return m_inferenceSpecificationName; }
225 inline bool InferenceSpecificationNameHasBeenSet() const { return m_inferenceSpecificationNameHasBeenSet; }
226 template<typename InferenceSpecificationNameT = Aws::String>
227 void SetInferenceSpecificationName(InferenceSpecificationNameT&& value) { m_inferenceSpecificationNameHasBeenSet = true; m_inferenceSpecificationName = std::forward<InferenceSpecificationNameT>(value); }
228 template<typename InferenceSpecificationNameT = Aws::String>
229 ContainerDefinition& WithInferenceSpecificationName(InferenceSpecificationNameT&& value) { SetInferenceSpecificationName(std::forward<InferenceSpecificationNameT>(value)); return *this;}
231
233
236 inline const MultiModelConfig& GetMultiModelConfig() const { return m_multiModelConfig; }
237 inline bool MultiModelConfigHasBeenSet() const { return m_multiModelConfigHasBeenSet; }
238 template<typename MultiModelConfigT = MultiModelConfig>
239 void SetMultiModelConfig(MultiModelConfigT&& value) { m_multiModelConfigHasBeenSet = true; m_multiModelConfig = std::forward<MultiModelConfigT>(value); }
240 template<typename MultiModelConfigT = MultiModelConfig>
241 ContainerDefinition& WithMultiModelConfig(MultiModelConfigT&& value) { SetMultiModelConfig(std::forward<MultiModelConfigT>(value)); return *this;}
243 private:
244
245 Aws::String m_containerHostname;
246 bool m_containerHostnameHasBeenSet = false;
247
248 Aws::String m_image;
249 bool m_imageHasBeenSet = false;
250
251 ImageConfig m_imageConfig;
252 bool m_imageConfigHasBeenSet = false;
253
255 bool m_modeHasBeenSet = false;
256
257 Aws::String m_modelDataUrl;
258 bool m_modelDataUrlHasBeenSet = false;
259
260 ModelDataSource m_modelDataSource;
261 bool m_modelDataSourceHasBeenSet = false;
262
263 Aws::Vector<AdditionalModelDataSource> m_additionalModelDataSources;
264 bool m_additionalModelDataSourcesHasBeenSet = false;
265
267 bool m_environmentHasBeenSet = false;
268
269 Aws::String m_modelPackageName;
270 bool m_modelPackageNameHasBeenSet = false;
271
272 Aws::String m_inferenceSpecificationName;
273 bool m_inferenceSpecificationNameHasBeenSet = false;
274
275 MultiModelConfig m_multiModelConfig;
276 bool m_multiModelConfigHasBeenSet = false;
277 };
278
279} // namespace Model
280} // namespace SageMaker
281} // 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