AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DescribeModelResult.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 <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace SageMaker
30{
31namespace Model
32{
34 {
35 public:
36 AWS_SAGEMAKER_API DescribeModelResult() = default;
39
40
42
45 inline const Aws::String& GetModelName() const { return m_modelName; }
46 template<typename ModelNameT = Aws::String>
47 void SetModelName(ModelNameT&& value) { m_modelNameHasBeenSet = true; m_modelName = std::forward<ModelNameT>(value); }
48 template<typename ModelNameT = Aws::String>
49 DescribeModelResult& WithModelName(ModelNameT&& value) { SetModelName(std::forward<ModelNameT>(value)); return *this;}
51
53
58 inline const ContainerDefinition& GetPrimaryContainer() const { return m_primaryContainer; }
59 template<typename PrimaryContainerT = ContainerDefinition>
60 void SetPrimaryContainer(PrimaryContainerT&& value) { m_primaryContainerHasBeenSet = true; m_primaryContainer = std::forward<PrimaryContainerT>(value); }
61 template<typename PrimaryContainerT = ContainerDefinition>
62 DescribeModelResult& WithPrimaryContainer(PrimaryContainerT&& value) { SetPrimaryContainer(std::forward<PrimaryContainerT>(value)); return *this;}
64
66
69 inline const Aws::Vector<ContainerDefinition>& GetContainers() const { return m_containers; }
70 template<typename ContainersT = Aws::Vector<ContainerDefinition>>
71 void SetContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers = std::forward<ContainersT>(value); }
72 template<typename ContainersT = Aws::Vector<ContainerDefinition>>
73 DescribeModelResult& WithContainers(ContainersT&& value) { SetContainers(std::forward<ContainersT>(value)); return *this;}
74 template<typename ContainersT = ContainerDefinition>
75 DescribeModelResult& AddContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers.emplace_back(std::forward<ContainersT>(value)); return *this; }
77
79
83 inline const InferenceExecutionConfig& GetInferenceExecutionConfig() const { return m_inferenceExecutionConfig; }
84 template<typename InferenceExecutionConfigT = InferenceExecutionConfig>
85 void SetInferenceExecutionConfig(InferenceExecutionConfigT&& value) { m_inferenceExecutionConfigHasBeenSet = true; m_inferenceExecutionConfig = std::forward<InferenceExecutionConfigT>(value); }
86 template<typename InferenceExecutionConfigT = InferenceExecutionConfig>
87 DescribeModelResult& WithInferenceExecutionConfig(InferenceExecutionConfigT&& value) { SetInferenceExecutionConfig(std::forward<InferenceExecutionConfigT>(value)); return *this;}
89
91
95 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
96 template<typename ExecutionRoleArnT = Aws::String>
97 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
98 template<typename ExecutionRoleArnT = Aws::String>
99 DescribeModelResult& WithExecutionRoleArn(ExecutionRoleArnT&& value) { SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value)); return *this;}
101
103
111 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
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 DescribeModelResult& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
117
119
122 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
123 template<typename CreationTimeT = Aws::Utils::DateTime>
124 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
125 template<typename CreationTimeT = Aws::Utils::DateTime>
126 DescribeModelResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
128
130
133 inline const Aws::String& GetModelArn() const { return m_modelArn; }
134 template<typename ModelArnT = Aws::String>
135 void SetModelArn(ModelArnT&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::forward<ModelArnT>(value); }
136 template<typename ModelArnT = Aws::String>
137 DescribeModelResult& WithModelArn(ModelArnT&& value) { SetModelArn(std::forward<ModelArnT>(value)); return *this;}
139
141
145 inline bool GetEnableNetworkIsolation() const { return m_enableNetworkIsolation; }
146 inline void SetEnableNetworkIsolation(bool value) { m_enableNetworkIsolationHasBeenSet = true; m_enableNetworkIsolation = value; }
149
151
154 inline const DeploymentRecommendation& GetDeploymentRecommendation() const { return m_deploymentRecommendation; }
155 template<typename DeploymentRecommendationT = DeploymentRecommendation>
156 void SetDeploymentRecommendation(DeploymentRecommendationT&& value) { m_deploymentRecommendationHasBeenSet = true; m_deploymentRecommendation = std::forward<DeploymentRecommendationT>(value); }
157 template<typename DeploymentRecommendationT = DeploymentRecommendation>
158 DescribeModelResult& WithDeploymentRecommendation(DeploymentRecommendationT&& value) { SetDeploymentRecommendation(std::forward<DeploymentRecommendationT>(value)); return *this;}
160
162
163 inline const Aws::String& GetRequestId() const { return m_requestId; }
164 template<typename RequestIdT = Aws::String>
165 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
166 template<typename RequestIdT = Aws::String>
167 DescribeModelResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
169 private:
170
171 Aws::String m_modelName;
172 bool m_modelNameHasBeenSet = false;
173
174 ContainerDefinition m_primaryContainer;
175 bool m_primaryContainerHasBeenSet = false;
176
178 bool m_containersHasBeenSet = false;
179
180 InferenceExecutionConfig m_inferenceExecutionConfig;
181 bool m_inferenceExecutionConfigHasBeenSet = false;
182
183 Aws::String m_executionRoleArn;
184 bool m_executionRoleArnHasBeenSet = false;
185
186 VpcConfig m_vpcConfig;
187 bool m_vpcConfigHasBeenSet = false;
188
189 Aws::Utils::DateTime m_creationTime{};
190 bool m_creationTimeHasBeenSet = false;
191
192 Aws::String m_modelArn;
193 bool m_modelArnHasBeenSet = false;
194
195 bool m_enableNetworkIsolation{false};
196 bool m_enableNetworkIsolationHasBeenSet = false;
197
198 DeploymentRecommendation m_deploymentRecommendation;
199 bool m_deploymentRecommendationHasBeenSet = false;
200
201 Aws::String m_requestId;
202 bool m_requestIdHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace SageMaker
207} // 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)
const Aws::String & GetExecutionRoleArn() const
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