AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DescribeModelResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/SageMaker_EXPORTS.h>
12#include <aws/sagemaker/model/ContainerDefinition.h>
13#include <aws/sagemaker/model/DeploymentRecommendation.h>
14#include <aws/sagemaker/model/InferenceExecutionConfig.h>
15#include <aws/sagemaker/model/VpcConfig.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace SageMaker {
29namespace Model {
31 public:
32 AWS_SAGEMAKER_API DescribeModelResult() = default;
35
37
40 inline const Aws::String& GetModelName() const { return m_modelName; }
41 template <typename ModelNameT = Aws::String>
42 void SetModelName(ModelNameT&& value) {
43 m_modelNameHasBeenSet = true;
44 m_modelName = std::forward<ModelNameT>(value);
45 }
46 template <typename ModelNameT = Aws::String>
47 DescribeModelResult& WithModelName(ModelNameT&& value) {
48 SetModelName(std::forward<ModelNameT>(value));
49 return *this;
50 }
52
54
59 inline const ContainerDefinition& GetPrimaryContainer() const { return m_primaryContainer; }
60 template <typename PrimaryContainerT = ContainerDefinition>
61 void SetPrimaryContainer(PrimaryContainerT&& value) {
62 m_primaryContainerHasBeenSet = true;
63 m_primaryContainer = std::forward<PrimaryContainerT>(value);
64 }
65 template <typename PrimaryContainerT = ContainerDefinition>
66 DescribeModelResult& WithPrimaryContainer(PrimaryContainerT&& value) {
67 SetPrimaryContainer(std::forward<PrimaryContainerT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Vector<ContainerDefinition>& GetContainers() const { return m_containers; }
77 template <typename ContainersT = Aws::Vector<ContainerDefinition>>
78 void SetContainers(ContainersT&& value) {
79 m_containersHasBeenSet = true;
80 m_containers = std::forward<ContainersT>(value);
81 }
82 template <typename ContainersT = Aws::Vector<ContainerDefinition>>
83 DescribeModelResult& WithContainers(ContainersT&& value) {
84 SetContainers(std::forward<ContainersT>(value));
85 return *this;
86 }
87 template <typename ContainersT = ContainerDefinition>
88 DescribeModelResult& AddContainers(ContainersT&& value) {
89 m_containersHasBeenSet = true;
90 m_containers.emplace_back(std::forward<ContainersT>(value));
91 return *this;
92 }
94
96
100 inline const InferenceExecutionConfig& GetInferenceExecutionConfig() const { return m_inferenceExecutionConfig; }
101 template <typename InferenceExecutionConfigT = InferenceExecutionConfig>
102 void SetInferenceExecutionConfig(InferenceExecutionConfigT&& value) {
103 m_inferenceExecutionConfigHasBeenSet = true;
104 m_inferenceExecutionConfig = std::forward<InferenceExecutionConfigT>(value);
105 }
106 template <typename InferenceExecutionConfigT = InferenceExecutionConfig>
107 DescribeModelResult& WithInferenceExecutionConfig(InferenceExecutionConfigT&& value) {
108 SetInferenceExecutionConfig(std::forward<InferenceExecutionConfigT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
119 template <typename ExecutionRoleArnT = Aws::String>
120 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
121 m_executionRoleArnHasBeenSet = true;
122 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
123 }
124 template <typename ExecutionRoleArnT = Aws::String>
125 DescribeModelResult& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
126 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
127 return *this;
128 }
130
132
140 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
141 template <typename VpcConfigT = VpcConfig>
142 void SetVpcConfig(VpcConfigT&& value) {
143 m_vpcConfigHasBeenSet = true;
144 m_vpcConfig = std::forward<VpcConfigT>(value);
145 }
146 template <typename VpcConfigT = VpcConfig>
147 DescribeModelResult& WithVpcConfig(VpcConfigT&& value) {
148 SetVpcConfig(std::forward<VpcConfigT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
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 DescribeModelResult& 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 template <typename ModelArnT = Aws::String>
176 void SetModelArn(ModelArnT&& value) {
177 m_modelArnHasBeenSet = true;
178 m_modelArn = std::forward<ModelArnT>(value);
179 }
180 template <typename ModelArnT = Aws::String>
181 DescribeModelResult& WithModelArn(ModelArnT&& value) {
182 SetModelArn(std::forward<ModelArnT>(value));
183 return *this;
184 }
186
188
192 inline bool GetEnableNetworkIsolation() const { return m_enableNetworkIsolation; }
193 inline void SetEnableNetworkIsolation(bool value) {
194 m_enableNetworkIsolationHasBeenSet = true;
195 m_enableNetworkIsolation = value;
196 }
199 return *this;
200 }
202
204
207 inline const DeploymentRecommendation& GetDeploymentRecommendation() const { return m_deploymentRecommendation; }
208 template <typename DeploymentRecommendationT = DeploymentRecommendation>
209 void SetDeploymentRecommendation(DeploymentRecommendationT&& value) {
210 m_deploymentRecommendationHasBeenSet = true;
211 m_deploymentRecommendation = std::forward<DeploymentRecommendationT>(value);
212 }
213 template <typename DeploymentRecommendationT = DeploymentRecommendation>
214 DescribeModelResult& WithDeploymentRecommendation(DeploymentRecommendationT&& value) {
215 SetDeploymentRecommendation(std::forward<DeploymentRecommendationT>(value));
216 return *this;
217 }
219
221
222 inline const Aws::String& GetRequestId() const { return m_requestId; }
223 template <typename RequestIdT = Aws::String>
224 void SetRequestId(RequestIdT&& value) {
225 m_requestIdHasBeenSet = true;
226 m_requestId = std::forward<RequestIdT>(value);
227 }
228 template <typename RequestIdT = Aws::String>
229 DescribeModelResult& WithRequestId(RequestIdT&& value) {
230 SetRequestId(std::forward<RequestIdT>(value));
231 return *this;
232 }
234 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
235
236 private:
237 Aws::String m_modelName;
238
239 ContainerDefinition m_primaryContainer;
240
242
243 InferenceExecutionConfig m_inferenceExecutionConfig;
244
245 Aws::String m_executionRoleArn;
246
247 VpcConfig m_vpcConfig;
248
249 Aws::Utils::DateTime m_creationTime{};
250
251 Aws::String m_modelArn;
252
253 bool m_enableNetworkIsolation{false};
254
255 DeploymentRecommendation m_deploymentRecommendation;
256
257 Aws::String m_requestId;
258 Aws::Http::HttpResponseCode m_HttpResponseCode;
259 bool m_modelNameHasBeenSet = false;
260 bool m_primaryContainerHasBeenSet = false;
261 bool m_containersHasBeenSet = false;
262 bool m_inferenceExecutionConfigHasBeenSet = false;
263 bool m_executionRoleArnHasBeenSet = false;
264 bool m_vpcConfigHasBeenSet = false;
265 bool m_creationTimeHasBeenSet = false;
266 bool m_modelArnHasBeenSet = false;
267 bool m_enableNetworkIsolationHasBeenSet = false;
268 bool m_deploymentRecommendationHasBeenSet = false;
269 bool m_requestIdHasBeenSet = false;
270};
271
272} // namespace Model
273} // namespace SageMaker
274} // namespace Aws
void SetInferenceExecutionConfig(InferenceExecutionConfigT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
DescribeModelResult & WithDeploymentRecommendation(DeploymentRecommendationT &&value)
DescribeModelResult & WithContainers(ContainersT &&value)
void SetDeploymentRecommendation(DeploymentRecommendationT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeModelResult & WithPrimaryContainer(PrimaryContainerT &&value)
DescribeModelResult & WithInferenceExecutionConfig(InferenceExecutionConfigT &&value)
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
const DeploymentRecommendation & GetDeploymentRecommendation() const
DescribeModelResult & WithEnableNetworkIsolation(bool value)
DescribeModelResult & WithModelName(ModelNameT &&value)
DescribeModelResult & WithExecutionRoleArn(ExecutionRoleArnT &&value)
AWS_SAGEMAKER_API DescribeModelResult()=default
AWS_SAGEMAKER_API DescribeModelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetPrimaryContainer(PrimaryContainerT &&value)
const Aws::Vector< ContainerDefinition > & GetContainers() const
DescribeModelResult & WithVpcConfig(VpcConfigT &&value)
DescribeModelResult & AddContainers(ContainersT &&value)
DescribeModelResult & WithModelArn(ModelArnT &&value)
AWS_SAGEMAKER_API DescribeModelResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeModelResult & WithRequestId(RequestIdT &&value)
const ContainerDefinition & GetPrimaryContainer() const
const InferenceExecutionConfig & GetInferenceExecutionConfig() const
DescribeModelResult & WithCreationTime(CreationTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue