AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
DescribeModelResult.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/VpcConfig.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace SageMaker {
28namespace Model {
30 public:
31 AWS_SAGEMAKER_API DescribeModelResult() = default;
34
36
39 inline const Aws::String& GetModelName() const { return m_modelName; }
40 template <typename ModelNameT = Aws::String>
41 void SetModelName(ModelNameT&& value) {
42 m_modelNameHasBeenSet = true;
43 m_modelName = std::forward<ModelNameT>(value);
44 }
45 template <typename ModelNameT = Aws::String>
46 DescribeModelResult& WithModelName(ModelNameT&& value) {
47 SetModelName(std::forward<ModelNameT>(value));
48 return *this;
49 }
51
53
58 inline const ContainerDefinition& GetPrimaryContainer() const { return m_primaryContainer; }
59 template <typename PrimaryContainerT = ContainerDefinition>
60 void SetPrimaryContainer(PrimaryContainerT&& value) {
61 m_primaryContainerHasBeenSet = true;
62 m_primaryContainer = std::forward<PrimaryContainerT>(value);
63 }
64 template <typename PrimaryContainerT = ContainerDefinition>
65 DescribeModelResult& WithPrimaryContainer(PrimaryContainerT&& value) {
66 SetPrimaryContainer(std::forward<PrimaryContainerT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Vector<ContainerDefinition>& GetContainers() const { return m_containers; }
76 template <typename ContainersT = Aws::Vector<ContainerDefinition>>
77 void SetContainers(ContainersT&& value) {
78 m_containersHasBeenSet = true;
79 m_containers = std::forward<ContainersT>(value);
80 }
81 template <typename ContainersT = Aws::Vector<ContainerDefinition>>
82 DescribeModelResult& WithContainers(ContainersT&& value) {
83 SetContainers(std::forward<ContainersT>(value));
84 return *this;
85 }
86 template <typename ContainersT = ContainerDefinition>
87 DescribeModelResult& AddContainers(ContainersT&& value) {
88 m_containersHasBeenSet = true;
89 m_containers.emplace_back(std::forward<ContainersT>(value));
90 return *this;
91 }
93
95
99 inline const InferenceExecutionConfig& GetInferenceExecutionConfig() const { return m_inferenceExecutionConfig; }
100 template <typename InferenceExecutionConfigT = InferenceExecutionConfig>
101 void SetInferenceExecutionConfig(InferenceExecutionConfigT&& value) {
102 m_inferenceExecutionConfigHasBeenSet = true;
103 m_inferenceExecutionConfig = std::forward<InferenceExecutionConfigT>(value);
104 }
105 template <typename InferenceExecutionConfigT = InferenceExecutionConfig>
106 DescribeModelResult& WithInferenceExecutionConfig(InferenceExecutionConfigT&& value) {
107 SetInferenceExecutionConfig(std::forward<InferenceExecutionConfigT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
118 template <typename ExecutionRoleArnT = Aws::String>
119 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
120 m_executionRoleArnHasBeenSet = true;
121 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
122 }
123 template <typename ExecutionRoleArnT = Aws::String>
124 DescribeModelResult& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
125 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
126 return *this;
127 }
129
131
139 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
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 DescribeModelResult& 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 template <typename CreationTimeT = Aws::Utils::DateTime>
158 void SetCreationTime(CreationTimeT&& value) {
159 m_creationTimeHasBeenSet = true;
160 m_creationTime = std::forward<CreationTimeT>(value);
161 }
162 template <typename CreationTimeT = Aws::Utils::DateTime>
163 DescribeModelResult& WithCreationTime(CreationTimeT&& value) {
164 SetCreationTime(std::forward<CreationTimeT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::String& GetModelArn() const { return m_modelArn; }
174 template <typename ModelArnT = Aws::String>
175 void SetModelArn(ModelArnT&& value) {
176 m_modelArnHasBeenSet = true;
177 m_modelArn = std::forward<ModelArnT>(value);
178 }
179 template <typename ModelArnT = Aws::String>
180 DescribeModelResult& WithModelArn(ModelArnT&& value) {
181 SetModelArn(std::forward<ModelArnT>(value));
182 return *this;
183 }
185
187
191 inline bool GetEnableNetworkIsolation() const { return m_enableNetworkIsolation; }
192 inline void SetEnableNetworkIsolation(bool value) {
193 m_enableNetworkIsolationHasBeenSet = true;
194 m_enableNetworkIsolation = value;
195 }
198 return *this;
199 }
201
203
206 inline const DeploymentRecommendation& GetDeploymentRecommendation() const { return m_deploymentRecommendation; }
207 template <typename DeploymentRecommendationT = DeploymentRecommendation>
208 void SetDeploymentRecommendation(DeploymentRecommendationT&& value) {
209 m_deploymentRecommendationHasBeenSet = true;
210 m_deploymentRecommendation = std::forward<DeploymentRecommendationT>(value);
211 }
212 template <typename DeploymentRecommendationT = DeploymentRecommendation>
213 DescribeModelResult& WithDeploymentRecommendation(DeploymentRecommendationT&& value) {
214 SetDeploymentRecommendation(std::forward<DeploymentRecommendationT>(value));
215 return *this;
216 }
218
220
221 inline const Aws::String& GetRequestId() const { return m_requestId; }
222 template <typename RequestIdT = Aws::String>
223 void SetRequestId(RequestIdT&& value) {
224 m_requestIdHasBeenSet = true;
225 m_requestId = std::forward<RequestIdT>(value);
226 }
227 template <typename RequestIdT = Aws::String>
228 DescribeModelResult& WithRequestId(RequestIdT&& value) {
229 SetRequestId(std::forward<RequestIdT>(value));
230 return *this;
231 }
233 private:
234 Aws::String m_modelName;
235
236 ContainerDefinition m_primaryContainer;
237
239
240 InferenceExecutionConfig m_inferenceExecutionConfig;
241
242 Aws::String m_executionRoleArn;
243
244 VpcConfig m_vpcConfig;
245
246 Aws::Utils::DateTime m_creationTime{};
247
248 Aws::String m_modelArn;
249
250 bool m_enableNetworkIsolation{false};
251
252 DeploymentRecommendation m_deploymentRecommendation;
253
254 Aws::String m_requestId;
255 bool m_modelNameHasBeenSet = false;
256 bool m_primaryContainerHasBeenSet = false;
257 bool m_containersHasBeenSet = false;
258 bool m_inferenceExecutionConfigHasBeenSet = false;
259 bool m_executionRoleArnHasBeenSet = false;
260 bool m_vpcConfigHasBeenSet = false;
261 bool m_creationTimeHasBeenSet = false;
262 bool m_modelArnHasBeenSet = false;
263 bool m_enableNetworkIsolationHasBeenSet = false;
264 bool m_deploymentRecommendationHasBeenSet = false;
265 bool m_requestIdHasBeenSet = false;
266};
267
268} // namespace Model
269} // namespace SageMaker
270} // namespace Aws
void SetInferenceExecutionConfig(InferenceExecutionConfigT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
DescribeModelResult & WithDeploymentRecommendation(DeploymentRecommendationT &&value)
DescribeModelResult & WithContainers(ContainersT &&value)
void SetDeploymentRecommendation(DeploymentRecommendationT &&value)
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