AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Model.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/ContainerDefinition.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/model/InferenceExecutionConfig.h>
12#include <aws/sagemaker/model/VpcConfig.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/sagemaker/model/DeploymentRecommendation.h>
15#include <aws/sagemaker/model/Tag.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 class Model
41 {
42 public:
43 AWS_SAGEMAKER_API Model();
44 AWS_SAGEMAKER_API Model(Aws::Utils::Json::JsonView jsonValue);
45 AWS_SAGEMAKER_API Model& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetModelName() const{ return m_modelName; }
54 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
55 inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; }
56 inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); }
57 inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); }
58 inline Model& WithModelName(const Aws::String& value) { SetModelName(value); return *this;}
59 inline Model& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;}
60 inline Model& WithModelName(const char* value) { SetModelName(value); return *this;}
62
64
65 inline const ContainerDefinition& GetPrimaryContainer() const{ return m_primaryContainer; }
66 inline bool PrimaryContainerHasBeenSet() const { return m_primaryContainerHasBeenSet; }
67 inline void SetPrimaryContainer(const ContainerDefinition& value) { m_primaryContainerHasBeenSet = true; m_primaryContainer = value; }
68 inline void SetPrimaryContainer(ContainerDefinition&& value) { m_primaryContainerHasBeenSet = true; m_primaryContainer = std::move(value); }
69 inline Model& WithPrimaryContainer(const ContainerDefinition& value) { SetPrimaryContainer(value); return *this;}
70 inline Model& WithPrimaryContainer(ContainerDefinition&& value) { SetPrimaryContainer(std::move(value)); return *this;}
72
74
77 inline const Aws::Vector<ContainerDefinition>& GetContainers() const{ return m_containers; }
78 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
79 inline void SetContainers(const Aws::Vector<ContainerDefinition>& value) { m_containersHasBeenSet = true; m_containers = value; }
80 inline void SetContainers(Aws::Vector<ContainerDefinition>&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); }
81 inline Model& WithContainers(const Aws::Vector<ContainerDefinition>& value) { SetContainers(value); return *this;}
82 inline Model& WithContainers(Aws::Vector<ContainerDefinition>&& value) { SetContainers(std::move(value)); return *this;}
83 inline Model& AddContainers(const ContainerDefinition& value) { m_containersHasBeenSet = true; m_containers.push_back(value); return *this; }
84 inline Model& AddContainers(ContainerDefinition&& value) { m_containersHasBeenSet = true; m_containers.push_back(std::move(value)); return *this; }
86
88
89 inline const InferenceExecutionConfig& GetInferenceExecutionConfig() const{ return m_inferenceExecutionConfig; }
90 inline bool InferenceExecutionConfigHasBeenSet() const { return m_inferenceExecutionConfigHasBeenSet; }
91 inline void SetInferenceExecutionConfig(const InferenceExecutionConfig& value) { m_inferenceExecutionConfigHasBeenSet = true; m_inferenceExecutionConfig = value; }
92 inline void SetInferenceExecutionConfig(InferenceExecutionConfig&& value) { m_inferenceExecutionConfigHasBeenSet = true; m_inferenceExecutionConfig = std::move(value); }
96
98
102 inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
103 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
104 inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
105 inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
106 inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
107 inline Model& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;}
108 inline Model& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
109 inline Model& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
111
113
114 inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
115 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
116 inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
117 inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
118 inline Model& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
119 inline Model& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
121
123
126 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
127 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
128 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
129 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
130 inline Model& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
131 inline Model& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
133
135
138 inline const Aws::String& GetModelArn() const{ return m_modelArn; }
139 inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; }
140 inline void SetModelArn(const Aws::String& value) { m_modelArnHasBeenSet = true; m_modelArn = value; }
141 inline void SetModelArn(Aws::String&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::move(value); }
142 inline void SetModelArn(const char* value) { m_modelArnHasBeenSet = true; m_modelArn.assign(value); }
143 inline Model& WithModelArn(const Aws::String& value) { SetModelArn(value); return *this;}
144 inline Model& WithModelArn(Aws::String&& value) { SetModelArn(std::move(value)); return *this;}
145 inline Model& WithModelArn(const char* value) { SetModelArn(value); return *this;}
147
149
153 inline bool GetEnableNetworkIsolation() const{ return m_enableNetworkIsolation; }
154 inline bool EnableNetworkIsolationHasBeenSet() const { return m_enableNetworkIsolationHasBeenSet; }
155 inline void SetEnableNetworkIsolation(bool value) { m_enableNetworkIsolationHasBeenSet = true; m_enableNetworkIsolation = value; }
156 inline Model& WithEnableNetworkIsolation(bool value) { SetEnableNetworkIsolation(value); return *this;}
158
160
167 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
168 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
169 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
170 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
171 inline Model& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
172 inline Model& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
173 inline Model& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
174 inline Model& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
176
178
181 inline const DeploymentRecommendation& GetDeploymentRecommendation() const{ return m_deploymentRecommendation; }
182 inline bool DeploymentRecommendationHasBeenSet() const { return m_deploymentRecommendationHasBeenSet; }
183 inline void SetDeploymentRecommendation(const DeploymentRecommendation& value) { m_deploymentRecommendationHasBeenSet = true; m_deploymentRecommendation = value; }
184 inline void SetDeploymentRecommendation(DeploymentRecommendation&& value) { m_deploymentRecommendationHasBeenSet = true; m_deploymentRecommendation = std::move(value); }
188 private:
189
190 Aws::String m_modelName;
191 bool m_modelNameHasBeenSet = false;
192
193 ContainerDefinition m_primaryContainer;
194 bool m_primaryContainerHasBeenSet = false;
195
197 bool m_containersHasBeenSet = false;
198
199 InferenceExecutionConfig m_inferenceExecutionConfig;
200 bool m_inferenceExecutionConfigHasBeenSet = false;
201
202 Aws::String m_executionRoleArn;
203 bool m_executionRoleArnHasBeenSet = false;
204
205 VpcConfig m_vpcConfig;
206 bool m_vpcConfigHasBeenSet = false;
207
208 Aws::Utils::DateTime m_creationTime;
209 bool m_creationTimeHasBeenSet = false;
210
211 Aws::String m_modelArn;
212 bool m_modelArnHasBeenSet = false;
213
214 bool m_enableNetworkIsolation;
215 bool m_enableNetworkIsolationHasBeenSet = false;
216
217 Aws::Vector<Tag> m_tags;
218 bool m_tagsHasBeenSet = false;
219
220 DeploymentRecommendation m_deploymentRecommendation;
221 bool m_deploymentRecommendationHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace SageMaker
226} // namespace Aws
bool VpcConfigHasBeenSet() const
Definition Model.h:115
Model & WithInferenceExecutionConfig(const InferenceExecutionConfig &value)
Definition Model.h:93
Model & WithVpcConfig(const VpcConfig &value)
Definition Model.h:118
Model & AddContainers(ContainerDefinition &&value)
Definition Model.h:84
const DeploymentRecommendation & GetDeploymentRecommendation() const
Definition Model.h:181
bool EnableNetworkIsolationHasBeenSet() const
Definition Model.h:154
bool GetEnableNetworkIsolation() const
Definition Model.h:153
const Aws::String & GetModelName() const
Definition Model.h:53
Model & WithContainers(Aws::Vector< ContainerDefinition > &&value)
Definition Model.h:82
Model & WithDeploymentRecommendation(DeploymentRecommendation &&value)
Definition Model.h:186
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Model.h:128
Model & AddTags(const Tag &value)
Definition Model.h:173
void SetModelArn(Aws::String &&value)
Definition Model.h:141
Model & WithModelArn(const char *value)
Definition Model.h:145
void SetContainers(const Aws::Vector< ContainerDefinition > &value)
Definition Model.h:79
Model & WithTags(Aws::Vector< Tag > &&value)
Definition Model.h:172
Model & WithContainers(const Aws::Vector< ContainerDefinition > &value)
Definition Model.h:81
bool InferenceExecutionConfigHasBeenSet() const
Definition Model.h:90
Model & WithTags(const Aws::Vector< Tag > &value)
Definition Model.h:171
void SetExecutionRoleArn(const char *value)
Definition Model.h:106
Model & WithModelName(Aws::String &&value)
Definition Model.h:59
void SetPrimaryContainer(ContainerDefinition &&value)
Definition Model.h:68
const Aws::Vector< ContainerDefinition > & GetContainers() const
Definition Model.h:77
Model & WithModelArn(const Aws::String &value)
Definition Model.h:143
void SetInferenceExecutionConfig(const InferenceExecutionConfig &value)
Definition Model.h:91
void SetPrimaryContainer(const ContainerDefinition &value)
Definition Model.h:67
void SetModelName(Aws::String &&value)
Definition Model.h:56
AWS_SAGEMAKER_API Model(Aws::Utils::Json::JsonView jsonValue)
bool CreationTimeHasBeenSet() const
Definition Model.h:127
void SetInferenceExecutionConfig(InferenceExecutionConfig &&value)
Definition Model.h:92
Model & WithDeploymentRecommendation(const DeploymentRecommendation &value)
Definition Model.h:185
void SetEnableNetworkIsolation(bool value)
Definition Model.h:155
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Model.h:129
Model & WithModelArn(Aws::String &&value)
Definition Model.h:144
bool PrimaryContainerHasBeenSet() const
Definition Model.h:66
void SetDeploymentRecommendation(const DeploymentRecommendation &value)
Definition Model.h:183
void SetVpcConfig(const VpcConfig &value)
Definition Model.h:116
Model & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Model.h:130
const Aws::Utils::DateTime & GetCreationTime() const
Definition Model.h:126
Model & WithExecutionRoleArn(Aws::String &&value)
Definition Model.h:108
void SetContainers(Aws::Vector< ContainerDefinition > &&value)
Definition Model.h:80
Model & WithEnableNetworkIsolation(bool value)
Definition Model.h:156
void SetExecutionRoleArn(const Aws::String &value)
Definition Model.h:104
Model & WithExecutionRoleArn(const char *value)
Definition Model.h:109
AWS_SAGEMAKER_API Model()
bool ModelNameHasBeenSet() const
Definition Model.h:54
void SetDeploymentRecommendation(DeploymentRecommendation &&value)
Definition Model.h:184
AWS_SAGEMAKER_API Model & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVpcConfig(VpcConfig &&value)
Definition Model.h:117
Model & WithModelName(const Aws::String &value)
Definition Model.h:58
Model & WithExecutionRoleArn(const Aws::String &value)
Definition Model.h:107
bool TagsHasBeenSet() const
Definition Model.h:168
bool ModelArnHasBeenSet() const
Definition Model.h:139
Model & AddContainers(const ContainerDefinition &value)
Definition Model.h:83
const Aws::String & GetExecutionRoleArn() const
Definition Model.h:102
void SetExecutionRoleArn(Aws::String &&value)
Definition Model.h:105
Model & WithModelName(const char *value)
Definition Model.h:60
const ContainerDefinition & GetPrimaryContainer() const
Definition Model.h:65
Model & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Model.h:131
Model & WithInferenceExecutionConfig(InferenceExecutionConfig &&value)
Definition Model.h:94
const Aws::String & GetModelArn() const
Definition Model.h:138
void SetModelArn(const Aws::String &value)
Definition Model.h:140
Model & WithPrimaryContainer(ContainerDefinition &&value)
Definition Model.h:70
Model & WithPrimaryContainer(const ContainerDefinition &value)
Definition Model.h:69
bool ExecutionRoleArnHasBeenSet() const
Definition Model.h:103
const Aws::Vector< Tag > & GetTags() const
Definition Model.h:167
void SetModelName(const Aws::String &value)
Definition Model.h:55
const VpcConfig & GetVpcConfig() const
Definition Model.h:114
const InferenceExecutionConfig & GetInferenceExecutionConfig() const
Definition Model.h:89
void SetTags(const Aws::Vector< Tag > &value)
Definition Model.h:169
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
bool DeploymentRecommendationHasBeenSet() const
Definition Model.h:182
void SetModelName(const char *value)
Definition Model.h:57
Model & WithVpcConfig(VpcConfig &&value)
Definition Model.h:119
void SetModelArn(const char *value)
Definition Model.h:142
void SetTags(Aws::Vector< Tag > &&value)
Definition Model.h:170
Model & AddTags(Tag &&value)
Definition Model.h:174
bool ContainersHasBeenSet() const
Definition Model.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue