AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetContainerHostname(const Aws::String& value) { m_containerHostnameHasBeenSet = true; m_containerHostname = value; }
52 inline void SetContainerHostname(Aws::String&& value) { m_containerHostnameHasBeenSet = true; m_containerHostname = std::move(value); }
53 inline void SetContainerHostname(const char* value) { m_containerHostnameHasBeenSet = true; m_containerHostname.assign(value); }
56 inline ModelPackageContainerDefinition& WithContainerHostname(const char* value) { SetContainerHostname(value); return *this;}
58
60
70 inline const Aws::String& GetImage() const{ return m_image; }
71 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
72 inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; }
73 inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
74 inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); }
75 inline ModelPackageContainerDefinition& WithImage(const Aws::String& value) { SetImage(value); return *this;}
76 inline ModelPackageContainerDefinition& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;}
77 inline ModelPackageContainerDefinition& WithImage(const char* value) { SetImage(value); return *this;}
79
81
85 inline const Aws::String& GetImageDigest() const{ return m_imageDigest; }
86 inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; }
87 inline void SetImageDigest(const Aws::String& value) { m_imageDigestHasBeenSet = true; m_imageDigest = value; }
88 inline void SetImageDigest(Aws::String&& value) { m_imageDigestHasBeenSet = true; m_imageDigest = std::move(value); }
89 inline void SetImageDigest(const char* value) { m_imageDigestHasBeenSet = true; m_imageDigest.assign(value); }
90 inline ModelPackageContainerDefinition& WithImageDigest(const Aws::String& value) { SetImageDigest(value); return *this;}
91 inline ModelPackageContainerDefinition& WithImageDigest(Aws::String&& value) { SetImageDigest(std::move(value)); return *this;}
92 inline ModelPackageContainerDefinition& WithImageDigest(const char* value) { SetImageDigest(value); return *this;}
94
96
103 inline const Aws::String& GetModelDataUrl() const{ return m_modelDataUrl; }
104 inline bool ModelDataUrlHasBeenSet() const { return m_modelDataUrlHasBeenSet; }
105 inline void SetModelDataUrl(const Aws::String& value) { m_modelDataUrlHasBeenSet = true; m_modelDataUrl = value; }
106 inline void SetModelDataUrl(Aws::String&& value) { m_modelDataUrlHasBeenSet = true; m_modelDataUrl = std::move(value); }
107 inline void SetModelDataUrl(const char* value) { m_modelDataUrlHasBeenSet = true; m_modelDataUrl.assign(value); }
109 inline ModelPackageContainerDefinition& WithModelDataUrl(Aws::String&& value) { SetModelDataUrl(std::move(value)); return *this;}
110 inline ModelPackageContainerDefinition& WithModelDataUrl(const char* value) { SetModelDataUrl(value); return *this;}
112
114
118 inline const ModelDataSource& GetModelDataSource() const{ return m_modelDataSource; }
119 inline bool ModelDataSourceHasBeenSet() const { return m_modelDataSourceHasBeenSet; }
120 inline void SetModelDataSource(const ModelDataSource& value) { m_modelDataSourceHasBeenSet = true; m_modelDataSource = value; }
121 inline void SetModelDataSource(ModelDataSource&& value) { m_modelDataSourceHasBeenSet = true; m_modelDataSource = std::move(value); }
125
127
130 inline const Aws::String& GetProductId() const{ return m_productId; }
131 inline bool ProductIdHasBeenSet() const { return m_productIdHasBeenSet; }
132 inline void SetProductId(const Aws::String& value) { m_productIdHasBeenSet = true; m_productId = value; }
133 inline void SetProductId(Aws::String&& value) { m_productIdHasBeenSet = true; m_productId = std::move(value); }
134 inline void SetProductId(const char* value) { m_productIdHasBeenSet = true; m_productId.assign(value); }
135 inline ModelPackageContainerDefinition& WithProductId(const Aws::String& value) { SetProductId(value); return *this;}
136 inline ModelPackageContainerDefinition& WithProductId(Aws::String&& value) { SetProductId(std::move(value)); return *this;}
137 inline ModelPackageContainerDefinition& WithProductId(const char* value) { SetProductId(value); return *this;}
139
141
146 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const{ return m_environment; }
147 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
148 inline void SetEnvironment(const Aws::Map<Aws::String, Aws::String>& value) { m_environmentHasBeenSet = true; m_environment = value; }
149 inline void SetEnvironment(Aws::Map<Aws::String, Aws::String>&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
152 inline ModelPackageContainerDefinition& AddEnvironment(const Aws::String& key, const Aws::String& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, value); return *this; }
153 inline ModelPackageContainerDefinition& AddEnvironment(Aws::String&& key, const Aws::String& value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), value); return *this; }
154 inline ModelPackageContainerDefinition& AddEnvironment(const Aws::String& key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, std::move(value)); return *this; }
155 inline ModelPackageContainerDefinition& AddEnvironment(Aws::String&& key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), std::move(value)); return *this; }
156 inline ModelPackageContainerDefinition& AddEnvironment(const char* key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, std::move(value)); return *this; }
157 inline ModelPackageContainerDefinition& AddEnvironment(Aws::String&& key, const char* value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), value); return *this; }
158 inline ModelPackageContainerDefinition& AddEnvironment(const char* key, const char* value) { m_environmentHasBeenSet = true; m_environment.emplace(key, value); return *this; }
160
162
165 inline const ModelInput& GetModelInput() const{ return m_modelInput; }
166 inline bool ModelInputHasBeenSet() const { return m_modelInputHasBeenSet; }
167 inline void SetModelInput(const ModelInput& value) { m_modelInputHasBeenSet = true; m_modelInput = value; }
168 inline void SetModelInput(ModelInput&& value) { m_modelInputHasBeenSet = true; m_modelInput = std::move(value); }
169 inline ModelPackageContainerDefinition& WithModelInput(const ModelInput& value) { SetModelInput(value); return *this;}
170 inline ModelPackageContainerDefinition& WithModelInput(ModelInput&& value) { SetModelInput(std::move(value)); return *this;}
172
174
177 inline const Aws::String& GetFramework() const{ return m_framework; }
178 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
179 inline void SetFramework(const Aws::String& value) { m_frameworkHasBeenSet = true; m_framework = value; }
180 inline void SetFramework(Aws::String&& value) { m_frameworkHasBeenSet = true; m_framework = std::move(value); }
181 inline void SetFramework(const char* value) { m_frameworkHasBeenSet = true; m_framework.assign(value); }
182 inline ModelPackageContainerDefinition& WithFramework(const Aws::String& value) { SetFramework(value); return *this;}
183 inline ModelPackageContainerDefinition& WithFramework(Aws::String&& value) { SetFramework(std::move(value)); return *this;}
184 inline ModelPackageContainerDefinition& WithFramework(const char* value) { SetFramework(value); return *this;}
186
188
191 inline const Aws::String& GetFrameworkVersion() const{ return m_frameworkVersion; }
192 inline bool FrameworkVersionHasBeenSet() const { return m_frameworkVersionHasBeenSet; }
193 inline void SetFrameworkVersion(const Aws::String& value) { m_frameworkVersionHasBeenSet = true; m_frameworkVersion = value; }
194 inline void SetFrameworkVersion(Aws::String&& value) { m_frameworkVersionHasBeenSet = true; m_frameworkVersion = std::move(value); }
195 inline void SetFrameworkVersion(const char* value) { m_frameworkVersionHasBeenSet = true; m_frameworkVersion.assign(value); }
197 inline ModelPackageContainerDefinition& WithFrameworkVersion(Aws::String&& value) { SetFrameworkVersion(std::move(value)); return *this;}
198 inline ModelPackageContainerDefinition& WithFrameworkVersion(const char* value) { SetFrameworkVersion(value); return *this;}
200
202
207 inline const Aws::String& GetNearestModelName() const{ return m_nearestModelName; }
208 inline bool NearestModelNameHasBeenSet() const { return m_nearestModelNameHasBeenSet; }
209 inline void SetNearestModelName(const Aws::String& value) { m_nearestModelNameHasBeenSet = true; m_nearestModelName = value; }
210 inline void SetNearestModelName(Aws::String&& value) { m_nearestModelNameHasBeenSet = true; m_nearestModelName = std::move(value); }
211 inline void SetNearestModelName(const char* value) { m_nearestModelNameHasBeenSet = true; m_nearestModelName.assign(value); }
213 inline ModelPackageContainerDefinition& WithNearestModelName(Aws::String&& value) { SetNearestModelName(std::move(value)); return *this;}
214 inline ModelPackageContainerDefinition& WithNearestModelName(const char* value) { SetNearestModelName(value); return *this;}
216
218
222 inline const AdditionalS3DataSource& GetAdditionalS3DataSource() const{ return m_additionalS3DataSource; }
223 inline bool AdditionalS3DataSourceHasBeenSet() const { return m_additionalS3DataSourceHasBeenSet; }
224 inline void SetAdditionalS3DataSource(const AdditionalS3DataSource& value) { m_additionalS3DataSourceHasBeenSet = true; m_additionalS3DataSource = value; }
225 inline void SetAdditionalS3DataSource(AdditionalS3DataSource&& value) { m_additionalS3DataSourceHasBeenSet = true; m_additionalS3DataSource = std::move(value); }
229 private:
230
231 Aws::String m_containerHostname;
232 bool m_containerHostnameHasBeenSet = false;
233
234 Aws::String m_image;
235 bool m_imageHasBeenSet = false;
236
237 Aws::String m_imageDigest;
238 bool m_imageDigestHasBeenSet = false;
239
240 Aws::String m_modelDataUrl;
241 bool m_modelDataUrlHasBeenSet = false;
242
243 ModelDataSource m_modelDataSource;
244 bool m_modelDataSourceHasBeenSet = false;
245
246 Aws::String m_productId;
247 bool m_productIdHasBeenSet = false;
248
250 bool m_environmentHasBeenSet = false;
251
252 ModelInput m_modelInput;
253 bool m_modelInputHasBeenSet = false;
254
255 Aws::String m_framework;
256 bool m_frameworkHasBeenSet = false;
257
258 Aws::String m_frameworkVersion;
259 bool m_frameworkVersionHasBeenSet = false;
260
261 Aws::String m_nearestModelName;
262 bool m_nearestModelNameHasBeenSet = false;
263
264 AdditionalS3DataSource m_additionalS3DataSource;
265 bool m_additionalS3DataSourceHasBeenSet = false;
266 };
267
268} // namespace Model
269} // namespace SageMaker
270} // namespace Aws
ModelPackageContainerDefinition & WithProductId(const Aws::String &value)
ModelPackageContainerDefinition & WithContainerHostname(const char *value)
ModelPackageContainerDefinition & WithProductId(const char *value)
ModelPackageContainerDefinition & WithModelInput(ModelInput &&value)
ModelPackageContainerDefinition & WithFrameworkVersion(Aws::String &&value)
ModelPackageContainerDefinition & WithFrameworkVersion(const char *value)
ModelPackageContainerDefinition & WithContainerHostname(Aws::String &&value)
ModelPackageContainerDefinition & WithEnvironment(Aws::Map< Aws::String, Aws::String > &&value)
AWS_SAGEMAKER_API ModelPackageContainerDefinition(Aws::Utils::Json::JsonView jsonValue)
ModelPackageContainerDefinition & WithImage(const Aws::String &value)
void SetEnvironment(Aws::Map< Aws::String, Aws::String > &&value)
ModelPackageContainerDefinition & WithImage(const char *value)
ModelPackageContainerDefinition & WithFrameworkVersion(const Aws::String &value)
ModelPackageContainerDefinition & WithModelDataSource(ModelDataSource &&value)
ModelPackageContainerDefinition & AddEnvironment(const char *key, const char *value)
ModelPackageContainerDefinition & WithNearestModelName(Aws::String &&value)
ModelPackageContainerDefinition & WithNearestModelName(const char *value)
ModelPackageContainerDefinition & WithModelDataUrl(const char *value)
ModelPackageContainerDefinition & WithModelInput(const ModelInput &value)
ModelPackageContainerDefinition & WithEnvironment(const Aws::Map< Aws::String, Aws::String > &value)
ModelPackageContainerDefinition & WithAdditionalS3DataSource(AdditionalS3DataSource &&value)
ModelPackageContainerDefinition & AddEnvironment(const Aws::String &key, Aws::String &&value)
ModelPackageContainerDefinition & WithNearestModelName(const Aws::String &value)
ModelPackageContainerDefinition & AddEnvironment(const Aws::String &key, const Aws::String &value)
ModelPackageContainerDefinition & WithFramework(const Aws::String &value)
ModelPackageContainerDefinition & WithContainerHostname(const Aws::String &value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ModelPackageContainerDefinition & WithFramework(Aws::String &&value)
ModelPackageContainerDefinition & AddEnvironment(const char *key, Aws::String &&value)
ModelPackageContainerDefinition & WithImageDigest(const Aws::String &value)
ModelPackageContainerDefinition & AddEnvironment(Aws::String &&key, const char *value)
AWS_SAGEMAKER_API ModelPackageContainerDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
ModelPackageContainerDefinition & AddEnvironment(Aws::String &&key, Aws::String &&value)
ModelPackageContainerDefinition & WithFramework(const char *value)
ModelPackageContainerDefinition & WithImageDigest(Aws::String &&value)
ModelPackageContainerDefinition & WithModelDataUrl(Aws::String &&value)
ModelPackageContainerDefinition & WithAdditionalS3DataSource(const AdditionalS3DataSource &value)
ModelPackageContainerDefinition & WithProductId(Aws::String &&value)
ModelPackageContainerDefinition & WithModelDataSource(const ModelDataSource &value)
void SetEnvironment(const Aws::Map< Aws::String, Aws::String > &value)
ModelPackageContainerDefinition & WithModelDataUrl(const Aws::String &value)
ModelPackageContainerDefinition & WithImageDigest(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetEnvironment() const
ModelPackageContainerDefinition & AddEnvironment(Aws::String &&key, const Aws::String &value)
ModelPackageContainerDefinition & WithImage(Aws::String &&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
Aws::Utils::Json::JsonValue JsonValue