AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetContainerHostname(const Aws::String& value) { m_containerHostnameHasBeenSet = true; m_containerHostname = value; }
67 inline void SetContainerHostname(Aws::String&& value) { m_containerHostnameHasBeenSet = true; m_containerHostname = std::move(value); }
68 inline void SetContainerHostname(const char* value) { m_containerHostnameHasBeenSet = true; m_containerHostname.assign(value); }
69 inline ContainerDefinition& WithContainerHostname(const Aws::String& value) { SetContainerHostname(value); return *this;}
70 inline ContainerDefinition& WithContainerHostname(Aws::String&& value) { SetContainerHostname(std::move(value)); return *this;}
71 inline ContainerDefinition& WithContainerHostname(const char* value) { SetContainerHostname(value); return *this;}
73
75
90 inline const Aws::String& GetImage() const{ return m_image; }
91 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
92 inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; }
93 inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
94 inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); }
95 inline ContainerDefinition& WithImage(const Aws::String& value) { SetImage(value); return *this;}
96 inline ContainerDefinition& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;}
97 inline ContainerDefinition& WithImage(const char* value) { SetImage(value); return *this;}
99
101
111 inline const ImageConfig& GetImageConfig() const{ return m_imageConfig; }
112 inline bool ImageConfigHasBeenSet() const { return m_imageConfigHasBeenSet; }
113 inline void SetImageConfig(const ImageConfig& value) { m_imageConfigHasBeenSet = true; m_imageConfig = value; }
114 inline void SetImageConfig(ImageConfig&& value) { m_imageConfigHasBeenSet = true; m_imageConfig = std::move(value); }
115 inline ContainerDefinition& WithImageConfig(const ImageConfig& value) { SetImageConfig(value); return *this;}
116 inline ContainerDefinition& WithImageConfig(ImageConfig&& value) { SetImageConfig(std::move(value)); return *this;}
118
120
123 inline const ContainerMode& GetMode() const{ return m_mode; }
124 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
125 inline void SetMode(const ContainerMode& value) { m_modeHasBeenSet = true; m_mode = value; }
126 inline void SetMode(ContainerMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
127 inline ContainerDefinition& WithMode(const ContainerMode& value) { SetMode(value); return *this;}
128 inline ContainerDefinition& WithMode(ContainerMode&& value) { SetMode(std::move(value)); return *this;}
130
132
153 inline const Aws::String& GetModelDataUrl() const{ return m_modelDataUrl; }
154 inline bool ModelDataUrlHasBeenSet() const { return m_modelDataUrlHasBeenSet; }
155 inline void SetModelDataUrl(const Aws::String& value) { m_modelDataUrlHasBeenSet = true; m_modelDataUrl = value; }
156 inline void SetModelDataUrl(Aws::String&& value) { m_modelDataUrlHasBeenSet = true; m_modelDataUrl = std::move(value); }
157 inline void SetModelDataUrl(const char* value) { m_modelDataUrlHasBeenSet = true; m_modelDataUrl.assign(value); }
158 inline ContainerDefinition& WithModelDataUrl(const Aws::String& value) { SetModelDataUrl(value); return *this;}
159 inline ContainerDefinition& WithModelDataUrl(Aws::String&& value) { SetModelDataUrl(std::move(value)); return *this;}
160 inline ContainerDefinition& WithModelDataUrl(const char* value) { SetModelDataUrl(value); return *this;}
162
164
170 inline const ModelDataSource& GetModelDataSource() const{ return m_modelDataSource; }
171 inline bool ModelDataSourceHasBeenSet() const { return m_modelDataSourceHasBeenSet; }
172 inline void SetModelDataSource(const ModelDataSource& value) { m_modelDataSourceHasBeenSet = true; m_modelDataSource = value; }
173 inline void SetModelDataSource(ModelDataSource&& value) { m_modelDataSourceHasBeenSet = true; m_modelDataSource = std::move(value); }
174 inline ContainerDefinition& WithModelDataSource(const ModelDataSource& value) { SetModelDataSource(value); return *this;}
175 inline ContainerDefinition& WithModelDataSource(ModelDataSource&& value) { SetModelDataSource(std::move(value)); return *this;}
177
179
184 inline const Aws::Vector<AdditionalModelDataSource>& GetAdditionalModelDataSources() const{ return m_additionalModelDataSources; }
185 inline bool AdditionalModelDataSourcesHasBeenSet() const { return m_additionalModelDataSourcesHasBeenSet; }
186 inline void SetAdditionalModelDataSources(const Aws::Vector<AdditionalModelDataSource>& value) { m_additionalModelDataSourcesHasBeenSet = true; m_additionalModelDataSources = value; }
187 inline void SetAdditionalModelDataSources(Aws::Vector<AdditionalModelDataSource>&& value) { m_additionalModelDataSourcesHasBeenSet = true; m_additionalModelDataSources = std::move(value); }
190 inline ContainerDefinition& AddAdditionalModelDataSources(const AdditionalModelDataSource& value) { m_additionalModelDataSourcesHasBeenSet = true; m_additionalModelDataSources.push_back(value); return *this; }
191 inline ContainerDefinition& AddAdditionalModelDataSources(AdditionalModelDataSource&& value) { m_additionalModelDataSourcesHasBeenSet = true; m_additionalModelDataSources.push_back(std::move(value)); return *this; }
193
195
203 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const{ return m_environment; }
204 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
205 inline void SetEnvironment(const Aws::Map<Aws::String, Aws::String>& value) { m_environmentHasBeenSet = true; m_environment = value; }
206 inline void SetEnvironment(Aws::Map<Aws::String, Aws::String>&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
209 inline ContainerDefinition& AddEnvironment(const Aws::String& key, const Aws::String& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, value); return *this; }
210 inline ContainerDefinition& AddEnvironment(Aws::String&& key, const Aws::String& value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), value); return *this; }
211 inline ContainerDefinition& AddEnvironment(const Aws::String& key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, std::move(value)); return *this; }
212 inline ContainerDefinition& AddEnvironment(Aws::String&& key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), std::move(value)); return *this; }
213 inline ContainerDefinition& AddEnvironment(const char* key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, std::move(value)); return *this; }
214 inline ContainerDefinition& AddEnvironment(Aws::String&& key, const char* value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), value); return *this; }
215 inline ContainerDefinition& AddEnvironment(const char* key, const char* value) { m_environmentHasBeenSet = true; m_environment.emplace(key, value); return *this; }
217
219
223 inline const Aws::String& GetModelPackageName() const{ return m_modelPackageName; }
224 inline bool ModelPackageNameHasBeenSet() const { return m_modelPackageNameHasBeenSet; }
225 inline void SetModelPackageName(const Aws::String& value) { m_modelPackageNameHasBeenSet = true; m_modelPackageName = value; }
226 inline void SetModelPackageName(Aws::String&& value) { m_modelPackageNameHasBeenSet = true; m_modelPackageName = std::move(value); }
227 inline void SetModelPackageName(const char* value) { m_modelPackageNameHasBeenSet = true; m_modelPackageName.assign(value); }
228 inline ContainerDefinition& WithModelPackageName(const Aws::String& value) { SetModelPackageName(value); return *this;}
229 inline ContainerDefinition& WithModelPackageName(Aws::String&& value) { SetModelPackageName(std::move(value)); return *this;}
230 inline ContainerDefinition& WithModelPackageName(const char* value) { SetModelPackageName(value); return *this;}
232
234
237 inline const Aws::String& GetInferenceSpecificationName() const{ return m_inferenceSpecificationName; }
238 inline bool InferenceSpecificationNameHasBeenSet() const { return m_inferenceSpecificationNameHasBeenSet; }
239 inline void SetInferenceSpecificationName(const Aws::String& value) { m_inferenceSpecificationNameHasBeenSet = true; m_inferenceSpecificationName = value; }
240 inline void SetInferenceSpecificationName(Aws::String&& value) { m_inferenceSpecificationNameHasBeenSet = true; m_inferenceSpecificationName = std::move(value); }
241 inline void SetInferenceSpecificationName(const char* value) { m_inferenceSpecificationNameHasBeenSet = true; m_inferenceSpecificationName.assign(value); }
244 inline ContainerDefinition& WithInferenceSpecificationName(const char* value) { SetInferenceSpecificationName(value); return *this;}
246
248
251 inline const MultiModelConfig& GetMultiModelConfig() const{ return m_multiModelConfig; }
252 inline bool MultiModelConfigHasBeenSet() const { return m_multiModelConfigHasBeenSet; }
253 inline void SetMultiModelConfig(const MultiModelConfig& value) { m_multiModelConfigHasBeenSet = true; m_multiModelConfig = value; }
254 inline void SetMultiModelConfig(MultiModelConfig&& value) { m_multiModelConfigHasBeenSet = true; m_multiModelConfig = std::move(value); }
256 inline ContainerDefinition& WithMultiModelConfig(MultiModelConfig&& value) { SetMultiModelConfig(std::move(value)); return *this;}
258 private:
259
260 Aws::String m_containerHostname;
261 bool m_containerHostnameHasBeenSet = false;
262
263 Aws::String m_image;
264 bool m_imageHasBeenSet = false;
265
266 ImageConfig m_imageConfig;
267 bool m_imageConfigHasBeenSet = false;
268
269 ContainerMode m_mode;
270 bool m_modeHasBeenSet = false;
271
272 Aws::String m_modelDataUrl;
273 bool m_modelDataUrlHasBeenSet = false;
274
275 ModelDataSource m_modelDataSource;
276 bool m_modelDataSourceHasBeenSet = false;
277
278 Aws::Vector<AdditionalModelDataSource> m_additionalModelDataSources;
279 bool m_additionalModelDataSourcesHasBeenSet = false;
280
282 bool m_environmentHasBeenSet = false;
283
284 Aws::String m_modelPackageName;
285 bool m_modelPackageNameHasBeenSet = false;
286
287 Aws::String m_inferenceSpecificationName;
288 bool m_inferenceSpecificationNameHasBeenSet = false;
289
290 MultiModelConfig m_multiModelConfig;
291 bool m_multiModelConfigHasBeenSet = false;
292 };
293
294} // namespace Model
295} // namespace SageMaker
296} // namespace Aws
const Aws::String & GetContainerHostname() const
ContainerDefinition & WithContainerHostname(const char *value)
ContainerDefinition & AddAdditionalModelDataSources(AdditionalModelDataSource &&value)
void SetEnvironment(Aws::Map< Aws::String, Aws::String > &&value)
ContainerDefinition & WithMultiModelConfig(MultiModelConfig &&value)
void SetModelPackageName(const Aws::String &value)
void SetModelDataUrl(const Aws::String &value)
AWS_SAGEMAKER_API ContainerDefinition(Aws::Utils::Json::JsonView jsonValue)
ContainerDefinition & WithContainerHostname(Aws::String &&value)
ContainerDefinition & WithContainerHostname(const Aws::String &value)
ContainerDefinition & WithModelDataUrl(Aws::String &&value)
ContainerDefinition & WithMode(const ContainerMode &value)
ContainerDefinition & WithMode(ContainerMode &&value)
ContainerDefinition & WithImage(const char *value)
ContainerDefinition & WithInferenceSpecificationName(const Aws::String &value)
void SetContainerHostname(const Aws::String &value)
const Aws::String & GetInferenceSpecificationName() const
ContainerDefinition & WithAdditionalModelDataSources(const Aws::Vector< AdditionalModelDataSource > &value)
ContainerDefinition & AddEnvironment(const Aws::String &key, const Aws::String &value)
void SetModelDataSource(ModelDataSource &&value)
ContainerDefinition & AddEnvironment(const Aws::String &key, Aws::String &&value)
ContainerDefinition & WithModelPackageName(const Aws::String &value)
ContainerDefinition & WithModelDataUrl(const char *value)
ContainerDefinition & WithImage(const Aws::String &value)
void SetImageConfig(const ImageConfig &value)
const MultiModelConfig & GetMultiModelConfig() const
ContainerDefinition & AddEnvironment(Aws::String &&key, Aws::String &&value)
void SetInferenceSpecificationName(Aws::String &&value)
ContainerDefinition & AddEnvironment(const char *key, const char *value)
ContainerDefinition & AddEnvironment(Aws::String &&key, const Aws::String &value)
ContainerDefinition & WithImage(Aws::String &&value)
void SetEnvironment(const Aws::Map< Aws::String, Aws::String > &value)
ContainerDefinition & WithEnvironment(const Aws::Map< Aws::String, Aws::String > &value)
void SetModelDataSource(const ModelDataSource &value)
ContainerDefinition & WithModelDataUrl(const Aws::String &value)
ContainerDefinition & WithMultiModelConfig(const MultiModelConfig &value)
void SetAdditionalModelDataSources(Aws::Vector< AdditionalModelDataSource > &&value)
ContainerDefinition & WithImageConfig(const ImageConfig &value)
ContainerDefinition & WithInferenceSpecificationName(const char *value)
void SetAdditionalModelDataSources(const Aws::Vector< AdditionalModelDataSource > &value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerDefinition & AddEnvironment(const char *key, Aws::String &&value)
ContainerDefinition & WithModelDataSource(const ModelDataSource &value)
ContainerDefinition & AddAdditionalModelDataSources(const AdditionalModelDataSource &value)
AWS_SAGEMAKER_API ContainerDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerDefinition & WithEnvironment(Aws::Map< Aws::String, Aws::String > &&value)
void SetMultiModelConfig(const MultiModelConfig &value)
void SetMode(const ContainerMode &value)
ContainerDefinition & WithModelPackageName(Aws::String &&value)
const ModelDataSource & GetModelDataSource() const
ContainerDefinition & WithModelDataSource(ModelDataSource &&value)
const Aws::Map< Aws::String, Aws::String > & GetEnvironment() const
ContainerDefinition & WithInferenceSpecificationName(Aws::String &&value)
void SetMultiModelConfig(MultiModelConfig &&value)
ContainerDefinition & AddEnvironment(Aws::String &&key, const char *value)
ContainerDefinition & WithModelPackageName(const char *value)
ContainerDefinition & WithImageConfig(ImageConfig &&value)
void SetInferenceSpecificationName(const Aws::String &value)
const Aws::Vector< AdditionalModelDataSource > & GetAdditionalModelDataSources() const
ContainerDefinition & WithAdditionalModelDataSources(Aws::Vector< AdditionalModelDataSource > &&value)
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