AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename ModelNameT = Aws::String>
56 void SetModelName(ModelNameT&& value) { m_modelNameHasBeenSet = true; m_modelName = std::forward<ModelNameT>(value); }
57 template<typename ModelNameT = Aws::String>
58 Model& WithModelName(ModelNameT&& value) { SetModelName(std::forward<ModelNameT>(value)); return *this;}
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) { m_primaryContainerHasBeenSet = true; m_primaryContainer = std::forward<PrimaryContainerT>(value); }
67 template<typename PrimaryContainerT = ContainerDefinition>
68 Model& WithPrimaryContainer(PrimaryContainerT&& value) { SetPrimaryContainer(std::forward<PrimaryContainerT>(value)); return *this;}
70
72
75 inline const Aws::Vector<ContainerDefinition>& GetContainers() const { return m_containers; }
76 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
77 template<typename ContainersT = Aws::Vector<ContainerDefinition>>
78 void SetContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers = std::forward<ContainersT>(value); }
79 template<typename ContainersT = Aws::Vector<ContainerDefinition>>
80 Model& WithContainers(ContainersT&& value) { SetContainers(std::forward<ContainersT>(value)); return *this;}
81 template<typename ContainersT = ContainerDefinition>
82 Model& AddContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers.emplace_back(std::forward<ContainersT>(value)); return *this; }
84
86
87 inline const InferenceExecutionConfig& GetInferenceExecutionConfig() const { return m_inferenceExecutionConfig; }
88 inline bool InferenceExecutionConfigHasBeenSet() const { return m_inferenceExecutionConfigHasBeenSet; }
89 template<typename InferenceExecutionConfigT = InferenceExecutionConfig>
90 void SetInferenceExecutionConfig(InferenceExecutionConfigT&& value) { m_inferenceExecutionConfigHasBeenSet = true; m_inferenceExecutionConfig = std::forward<InferenceExecutionConfigT>(value); }
91 template<typename InferenceExecutionConfigT = InferenceExecutionConfig>
92 Model& WithInferenceExecutionConfig(InferenceExecutionConfigT&& value) { SetInferenceExecutionConfig(std::forward<InferenceExecutionConfigT>(value)); return *this;}
94
96
100 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
101 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
102 template<typename ExecutionRoleArnT = Aws::String>
103 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
104 template<typename ExecutionRoleArnT = Aws::String>
105 Model& WithExecutionRoleArn(ExecutionRoleArnT&& value) { SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value)); return *this;}
107
109
110 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
111 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
112 template<typename VpcConfigT = VpcConfig>
113 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
114 template<typename VpcConfigT = VpcConfig>
115 Model& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
117
119
122 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
123 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
124 template<typename CreationTimeT = Aws::Utils::DateTime>
125 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
126 template<typename CreationTimeT = Aws::Utils::DateTime>
127 Model& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
129
131
134 inline const Aws::String& GetModelArn() const { return m_modelArn; }
135 inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; }
136 template<typename ModelArnT = Aws::String>
137 void SetModelArn(ModelArnT&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::forward<ModelArnT>(value); }
138 template<typename ModelArnT = Aws::String>
139 Model& WithModelArn(ModelArnT&& value) { SetModelArn(std::forward<ModelArnT>(value)); return *this;}
141
143
147 inline bool GetEnableNetworkIsolation() const { return m_enableNetworkIsolation; }
148 inline bool EnableNetworkIsolationHasBeenSet() const { return m_enableNetworkIsolationHasBeenSet; }
149 inline void SetEnableNetworkIsolation(bool value) { m_enableNetworkIsolationHasBeenSet = true; m_enableNetworkIsolation = value; }
150 inline Model& WithEnableNetworkIsolation(bool value) { SetEnableNetworkIsolation(value); return *this;}
152
154
161 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
162 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
163 template<typename TagsT = Aws::Vector<Tag>>
164 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
165 template<typename TagsT = Aws::Vector<Tag>>
166 Model& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
167 template<typename TagsT = Tag>
168 Model& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
170
172
175 inline const DeploymentRecommendation& GetDeploymentRecommendation() const { return m_deploymentRecommendation; }
176 inline bool DeploymentRecommendationHasBeenSet() const { return m_deploymentRecommendationHasBeenSet; }
177 template<typename DeploymentRecommendationT = DeploymentRecommendation>
178 void SetDeploymentRecommendation(DeploymentRecommendationT&& value) { m_deploymentRecommendationHasBeenSet = true; m_deploymentRecommendation = std::forward<DeploymentRecommendationT>(value); }
179 template<typename DeploymentRecommendationT = DeploymentRecommendation>
180 Model& WithDeploymentRecommendation(DeploymentRecommendationT&& value) { SetDeploymentRecommendation(std::forward<DeploymentRecommendationT>(value)); return *this;}
182 private:
183
184 Aws::String m_modelName;
185 bool m_modelNameHasBeenSet = false;
186
187 ContainerDefinition m_primaryContainer;
188 bool m_primaryContainerHasBeenSet = false;
189
191 bool m_containersHasBeenSet = false;
192
193 InferenceExecutionConfig m_inferenceExecutionConfig;
194 bool m_inferenceExecutionConfigHasBeenSet = false;
195
196 Aws::String m_executionRoleArn;
197 bool m_executionRoleArnHasBeenSet = false;
198
199 VpcConfig m_vpcConfig;
200 bool m_vpcConfigHasBeenSet = false;
201
202 Aws::Utils::DateTime m_creationTime{};
203 bool m_creationTimeHasBeenSet = false;
204
205 Aws::String m_modelArn;
206 bool m_modelArnHasBeenSet = false;
207
208 bool m_enableNetworkIsolation{false};
209 bool m_enableNetworkIsolationHasBeenSet = false;
210
211 Aws::Vector<Tag> m_tags;
212 bool m_tagsHasBeenSet = false;
213
214 DeploymentRecommendation m_deploymentRecommendation;
215 bool m_deploymentRecommendationHasBeenSet = false;
216 };
217
218} // namespace Model
219} // namespace SageMaker
220} // namespace Aws
void SetPrimaryContainer(PrimaryContainerT &&value)
Definition Model.h:66
void SetModelName(ModelNameT &&value)
Definition Model.h:56
bool VpcConfigHasBeenSet() const
Definition Model.h:111
const DeploymentRecommendation & GetDeploymentRecommendation() const
Definition Model.h:175
bool EnableNetworkIsolationHasBeenSet() const
Definition Model.h:148
bool GetEnableNetworkIsolation() const
Definition Model.h:147
Model & WithCreationTime(CreationTimeT &&value)
Definition Model.h:127
const Aws::String & GetModelName() const
Definition Model.h:53
void SetModelArn(ModelArnT &&value)
Definition Model.h:137
Model & WithModelArn(ModelArnT &&value)
Definition Model.h:139
void SetTags(TagsT &&value)
Definition Model.h:164
Model & WithDeploymentRecommendation(DeploymentRecommendationT &&value)
Definition Model.h:180
void SetCreationTime(CreationTimeT &&value)
Definition Model.h:125
bool InferenceExecutionConfigHasBeenSet() const
Definition Model.h:88
AWS_SAGEMAKER_API Model()=default
const Aws::Vector< ContainerDefinition > & GetContainers() const
Definition Model.h:75
Model & WithModelName(ModelNameT &&value)
Definition Model.h:58
void SetContainers(ContainersT &&value)
Definition Model.h:78
AWS_SAGEMAKER_API Model(Aws::Utils::Json::JsonView jsonValue)
bool CreationTimeHasBeenSet() const
Definition Model.h:123
void SetDeploymentRecommendation(DeploymentRecommendationT &&value)
Definition Model.h:178
void SetEnableNetworkIsolation(bool value)
Definition Model.h:149
void SetInferenceExecutionConfig(InferenceExecutionConfigT &&value)
Definition Model.h:90
void SetVpcConfig(VpcConfigT &&value)
Definition Model.h:113
bool PrimaryContainerHasBeenSet() const
Definition Model.h:64
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
Definition Model.h:103
const Aws::Utils::DateTime & GetCreationTime() const
Definition Model.h:122
Model & WithPrimaryContainer(PrimaryContainerT &&value)
Definition Model.h:68
Model & WithVpcConfig(VpcConfigT &&value)
Definition Model.h:115
Model & WithInferenceExecutionConfig(InferenceExecutionConfigT &&value)
Definition Model.h:92
Model & WithEnableNetworkIsolation(bool value)
Definition Model.h:150
bool ModelNameHasBeenSet() const
Definition Model.h:54
Model & AddContainers(ContainersT &&value)
Definition Model.h:82
AWS_SAGEMAKER_API Model & operator=(Aws::Utils::Json::JsonView jsonValue)
Model & WithTags(TagsT &&value)
Definition Model.h:166
bool TagsHasBeenSet() const
Definition Model.h:162
bool ModelArnHasBeenSet() const
Definition Model.h:135
Model & WithContainers(ContainersT &&value)
Definition Model.h:80
const Aws::String & GetExecutionRoleArn() const
Definition Model.h:100
const ContainerDefinition & GetPrimaryContainer() const
Definition Model.h:63
Model & WithExecutionRoleArn(ExecutionRoleArnT &&value)
Definition Model.h:105
const Aws::String & GetModelArn() const
Definition Model.h:134
bool ExecutionRoleArnHasBeenSet() const
Definition Model.h:101
const Aws::Vector< Tag > & GetTags() const
Definition Model.h:161
const VpcConfig & GetVpcConfig() const
Definition Model.h:110
const InferenceExecutionConfig & GetInferenceExecutionConfig() const
Definition Model.h:87
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
bool DeploymentRecommendationHasBeenSet() const
Definition Model.h:176
Model & AddTags(TagsT &&value)
Definition Model.h:168
bool ContainersHasBeenSet() const
Definition Model.h:76
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue