AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
Model.h
1
6#pragma once
7#include <aws/core/utils/DateTime.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/ContainerDefinition.h>
12#include <aws/sagemaker/model/DeploymentRecommendation.h>
13#include <aws/sagemaker/model/InferenceExecutionConfig.h>
14#include <aws/sagemaker/model/Tag.h>
15#include <aws/sagemaker/model/VpcConfig.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
36class Model {
37 public:
38 AWS_SAGEMAKER_API Model() = default;
39 AWS_SAGEMAKER_API Model(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKER_API Model& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetModelName() const { return m_modelName; }
48 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
49 template <typename ModelNameT = Aws::String>
50 void SetModelName(ModelNameT&& value) {
51 m_modelNameHasBeenSet = true;
52 m_modelName = std::forward<ModelNameT>(value);
53 }
54 template <typename ModelNameT = Aws::String>
55 Model& WithModelName(ModelNameT&& value) {
56 SetModelName(std::forward<ModelNameT>(value));
57 return *this;
58 }
60
62
63 inline const ContainerDefinition& GetPrimaryContainer() const { return m_primaryContainer; }
64 inline bool PrimaryContainerHasBeenSet() const { return m_primaryContainerHasBeenSet; }
65 template <typename PrimaryContainerT = ContainerDefinition>
66 void SetPrimaryContainer(PrimaryContainerT&& value) {
67 m_primaryContainerHasBeenSet = true;
68 m_primaryContainer = std::forward<PrimaryContainerT>(value);
69 }
70 template <typename PrimaryContainerT = ContainerDefinition>
71 Model& WithPrimaryContainer(PrimaryContainerT&& value) {
72 SetPrimaryContainer(std::forward<PrimaryContainerT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Vector<ContainerDefinition>& GetContainers() const { return m_containers; }
82 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
83 template <typename ContainersT = Aws::Vector<ContainerDefinition>>
84 void SetContainers(ContainersT&& value) {
85 m_containersHasBeenSet = true;
86 m_containers = std::forward<ContainersT>(value);
87 }
88 template <typename ContainersT = Aws::Vector<ContainerDefinition>>
89 Model& WithContainers(ContainersT&& value) {
90 SetContainers(std::forward<ContainersT>(value));
91 return *this;
92 }
93 template <typename ContainersT = ContainerDefinition>
94 Model& AddContainers(ContainersT&& value) {
95 m_containersHasBeenSet = true;
96 m_containers.emplace_back(std::forward<ContainersT>(value));
97 return *this;
98 }
100
102
103 inline const InferenceExecutionConfig& GetInferenceExecutionConfig() const { return m_inferenceExecutionConfig; }
104 inline bool InferenceExecutionConfigHasBeenSet() const { return m_inferenceExecutionConfigHasBeenSet; }
105 template <typename InferenceExecutionConfigT = InferenceExecutionConfig>
106 void SetInferenceExecutionConfig(InferenceExecutionConfigT&& value) {
107 m_inferenceExecutionConfigHasBeenSet = true;
108 m_inferenceExecutionConfig = std::forward<InferenceExecutionConfigT>(value);
109 }
110 template <typename InferenceExecutionConfigT = InferenceExecutionConfig>
111 Model& WithInferenceExecutionConfig(InferenceExecutionConfigT&& value) {
112 SetInferenceExecutionConfig(std::forward<InferenceExecutionConfigT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
123 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
124 template <typename ExecutionRoleArnT = Aws::String>
125 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
126 m_executionRoleArnHasBeenSet = true;
127 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
128 }
129 template <typename ExecutionRoleArnT = Aws::String>
130 Model& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
131 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
132 return *this;
133 }
135
137
138 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
139 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
140 template <typename VpcConfigT = VpcConfig>
141 void SetVpcConfig(VpcConfigT&& value) {
142 m_vpcConfigHasBeenSet = true;
143 m_vpcConfig = std::forward<VpcConfigT>(value);
144 }
145 template <typename VpcConfigT = VpcConfig>
146 Model& WithVpcConfig(VpcConfigT&& value) {
147 SetVpcConfig(std::forward<VpcConfigT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
157 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
158 template <typename CreationTimeT = Aws::Utils::DateTime>
159 void SetCreationTime(CreationTimeT&& value) {
160 m_creationTimeHasBeenSet = true;
161 m_creationTime = std::forward<CreationTimeT>(value);
162 }
163 template <typename CreationTimeT = Aws::Utils::DateTime>
164 Model& WithCreationTime(CreationTimeT&& value) {
165 SetCreationTime(std::forward<CreationTimeT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::String& GetModelArn() const { return m_modelArn; }
175 inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; }
176 template <typename ModelArnT = Aws::String>
177 void SetModelArn(ModelArnT&& value) {
178 m_modelArnHasBeenSet = true;
179 m_modelArn = std::forward<ModelArnT>(value);
180 }
181 template <typename ModelArnT = Aws::String>
182 Model& WithModelArn(ModelArnT&& value) {
183 SetModelArn(std::forward<ModelArnT>(value));
184 return *this;
185 }
187
189
193 inline bool GetEnableNetworkIsolation() const { return m_enableNetworkIsolation; }
194 inline bool EnableNetworkIsolationHasBeenSet() const { return m_enableNetworkIsolationHasBeenSet; }
195 inline void SetEnableNetworkIsolation(bool value) {
196 m_enableNetworkIsolationHasBeenSet = true;
197 m_enableNetworkIsolation = value;
198 }
199 inline Model& WithEnableNetworkIsolation(bool value) {
201 return *this;
202 }
204
206
213 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
214 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
215 template <typename TagsT = Aws::Vector<Tag>>
216 void SetTags(TagsT&& value) {
217 m_tagsHasBeenSet = true;
218 m_tags = std::forward<TagsT>(value);
219 }
220 template <typename TagsT = Aws::Vector<Tag>>
221 Model& WithTags(TagsT&& value) {
222 SetTags(std::forward<TagsT>(value));
223 return *this;
224 }
225 template <typename TagsT = Tag>
226 Model& AddTags(TagsT&& value) {
227 m_tagsHasBeenSet = true;
228 m_tags.emplace_back(std::forward<TagsT>(value));
229 return *this;
230 }
232
234
237 inline const DeploymentRecommendation& GetDeploymentRecommendation() const { return m_deploymentRecommendation; }
238 inline bool DeploymentRecommendationHasBeenSet() const { return m_deploymentRecommendationHasBeenSet; }
239 template <typename DeploymentRecommendationT = DeploymentRecommendation>
240 void SetDeploymentRecommendation(DeploymentRecommendationT&& value) {
241 m_deploymentRecommendationHasBeenSet = true;
242 m_deploymentRecommendation = std::forward<DeploymentRecommendationT>(value);
243 }
244 template <typename DeploymentRecommendationT = DeploymentRecommendation>
245 Model& WithDeploymentRecommendation(DeploymentRecommendationT&& value) {
246 SetDeploymentRecommendation(std::forward<DeploymentRecommendationT>(value));
247 return *this;
248 }
250 private:
251 Aws::String m_modelName;
252
253 ContainerDefinition m_primaryContainer;
254
256
257 InferenceExecutionConfig m_inferenceExecutionConfig;
258
259 Aws::String m_executionRoleArn;
260
261 VpcConfig m_vpcConfig;
262
263 Aws::Utils::DateTime m_creationTime{};
264
265 Aws::String m_modelArn;
266
267 bool m_enableNetworkIsolation{false};
268
269 Aws::Vector<Tag> m_tags;
270
271 DeploymentRecommendation m_deploymentRecommendation;
272 bool m_modelNameHasBeenSet = false;
273 bool m_primaryContainerHasBeenSet = false;
274 bool m_containersHasBeenSet = false;
275 bool m_inferenceExecutionConfigHasBeenSet = false;
276 bool m_executionRoleArnHasBeenSet = false;
277 bool m_vpcConfigHasBeenSet = false;
278 bool m_creationTimeHasBeenSet = false;
279 bool m_modelArnHasBeenSet = false;
280 bool m_enableNetworkIsolationHasBeenSet = false;
281 bool m_tagsHasBeenSet = false;
282 bool m_deploymentRecommendationHasBeenSet = false;
283};
284
285} // namespace Model
286} // namespace SageMaker
287} // namespace Aws
void SetPrimaryContainer(PrimaryContainerT &&value)
Definition Model.h:66
void SetModelName(ModelNameT &&value)
Definition Model.h:50
bool VpcConfigHasBeenSet() const
Definition Model.h:139
const DeploymentRecommendation & GetDeploymentRecommendation() const
Definition Model.h:237
bool EnableNetworkIsolationHasBeenSet() const
Definition Model.h:194
bool GetEnableNetworkIsolation() const
Definition Model.h:193
Model & WithCreationTime(CreationTimeT &&value)
Definition Model.h:164
const Aws::String & GetModelName() const
Definition Model.h:47
void SetModelArn(ModelArnT &&value)
Definition Model.h:177
Model & WithModelArn(ModelArnT &&value)
Definition Model.h:182
void SetTags(TagsT &&value)
Definition Model.h:216
Model & WithDeploymentRecommendation(DeploymentRecommendationT &&value)
Definition Model.h:245
void SetCreationTime(CreationTimeT &&value)
Definition Model.h:159
bool InferenceExecutionConfigHasBeenSet() const
Definition Model.h:104
AWS_SAGEMAKER_API Model()=default
const Aws::Vector< ContainerDefinition > & GetContainers() const
Definition Model.h:81
Model & WithModelName(ModelNameT &&value)
Definition Model.h:55
void SetContainers(ContainersT &&value)
Definition Model.h:84
AWS_SAGEMAKER_API Model(Aws::Utils::Json::JsonView jsonValue)
bool CreationTimeHasBeenSet() const
Definition Model.h:157
void SetDeploymentRecommendation(DeploymentRecommendationT &&value)
Definition Model.h:240
void SetEnableNetworkIsolation(bool value)
Definition Model.h:195
void SetInferenceExecutionConfig(InferenceExecutionConfigT &&value)
Definition Model.h:106
void SetVpcConfig(VpcConfigT &&value)
Definition Model.h:141
bool PrimaryContainerHasBeenSet() const
Definition Model.h:64
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
Definition Model.h:125
const Aws::Utils::DateTime & GetCreationTime() const
Definition Model.h:156
Model & WithPrimaryContainer(PrimaryContainerT &&value)
Definition Model.h:71
Model & WithVpcConfig(VpcConfigT &&value)
Definition Model.h:146
Model & WithInferenceExecutionConfig(InferenceExecutionConfigT &&value)
Definition Model.h:111
Model & WithEnableNetworkIsolation(bool value)
Definition Model.h:199
bool ModelNameHasBeenSet() const
Definition Model.h:48
Model & AddContainers(ContainersT &&value)
Definition Model.h:94
AWS_SAGEMAKER_API Model & operator=(Aws::Utils::Json::JsonView jsonValue)
Model & WithTags(TagsT &&value)
Definition Model.h:221
bool TagsHasBeenSet() const
Definition Model.h:214
bool ModelArnHasBeenSet() const
Definition Model.h:175
Model & WithContainers(ContainersT &&value)
Definition Model.h:89
const Aws::String & GetExecutionRoleArn() const
Definition Model.h:122
const ContainerDefinition & GetPrimaryContainer() const
Definition Model.h:63
Model & WithExecutionRoleArn(ExecutionRoleArnT &&value)
Definition Model.h:130
const Aws::String & GetModelArn() const
Definition Model.h:174
bool ExecutionRoleArnHasBeenSet() const
Definition Model.h:123
const Aws::Vector< Tag > & GetTags() const
Definition Model.h:213
const VpcConfig & GetVpcConfig() const
Definition Model.h:138
const InferenceExecutionConfig & GetInferenceExecutionConfig() const
Definition Model.h:103
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
bool DeploymentRecommendationHasBeenSet() const
Definition Model.h:238
Model & AddTags(TagsT &&value)
Definition Model.h:226
bool ContainersHasBeenSet() const
Definition Model.h:82
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue