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>
43 AWS_SAGEMAKER_API
Model() =
default;
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>
65 template<
typename PrimaryContainerT = ContainerDefinition>
66 void SetPrimaryContainer(PrimaryContainerT&& value) { m_primaryContainerHasBeenSet =
true; m_primaryContainer = std::forward<PrimaryContainerT>(value); }
67 template<
typename PrimaryContainerT = ContainerDefinition>
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>>
81 template<
typename ContainersT = ContainerDefinition>
82 Model&
AddContainers(ContainersT&& value) { m_containersHasBeenSet =
true; m_containers.emplace_back(std::forward<ContainersT>(value));
return *
this; }
89 template<
typename InferenceExecutionConfigT = InferenceExecutionConfig>
90 void SetInferenceExecutionConfig(InferenceExecutionConfigT&& value) { m_inferenceExecutionConfigHasBeenSet =
true; m_inferenceExecutionConfig = std::forward<InferenceExecutionConfigT>(value); }
91 template<
typename InferenceExecutionConfigT = InferenceExecutionConfig>
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>
112 template<
typename VpcConfigT = VpcConfig>
113 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet =
true; m_vpcConfig = std::forward<VpcConfigT>(value); }
114 template<
typename VpcConfigT = VpcConfig>
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>
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>
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>>
167 template<
typename TagsT = Tag>
168 Model&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
177 template<
typename DeploymentRecommendationT = DeploymentRecommendation>
178 void SetDeploymentRecommendation(DeploymentRecommendationT&& value) { m_deploymentRecommendationHasBeenSet =
true; m_deploymentRecommendation = std::forward<DeploymentRecommendationT>(value); }
179 template<
typename DeploymentRecommendationT = DeploymentRecommendation>
185 bool m_modelNameHasBeenSet =
false;
188 bool m_primaryContainerHasBeenSet =
false;
191 bool m_containersHasBeenSet =
false;
194 bool m_inferenceExecutionConfigHasBeenSet =
false;
197 bool m_executionRoleArnHasBeenSet =
false;
200 bool m_vpcConfigHasBeenSet =
false;
203 bool m_creationTimeHasBeenSet =
false;
206 bool m_modelArnHasBeenSet =
false;
208 bool m_enableNetworkIsolation{
false};
209 bool m_enableNetworkIsolationHasBeenSet =
false;
212 bool m_tagsHasBeenSet =
false;
214 DeploymentRecommendation m_deploymentRecommendation;
215 bool m_deploymentRecommendationHasBeenSet =
false;
void SetPrimaryContainer(PrimaryContainerT &&value)
void SetModelName(ModelNameT &&value)
bool VpcConfigHasBeenSet() const
const DeploymentRecommendation & GetDeploymentRecommendation() const
bool EnableNetworkIsolationHasBeenSet() const
bool GetEnableNetworkIsolation() const
Model & WithCreationTime(CreationTimeT &&value)
const Aws::String & GetModelName() const
void SetModelArn(ModelArnT &&value)
Model & WithModelArn(ModelArnT &&value)
void SetTags(TagsT &&value)
Model & WithDeploymentRecommendation(DeploymentRecommendationT &&value)
void SetCreationTime(CreationTimeT &&value)
bool InferenceExecutionConfigHasBeenSet() const
AWS_SAGEMAKER_API Model()=default
const Aws::Vector< ContainerDefinition > & GetContainers() const
Model & WithModelName(ModelNameT &&value)
void SetContainers(ContainersT &&value)
AWS_SAGEMAKER_API Model(Aws::Utils::Json::JsonView jsonValue)
bool CreationTimeHasBeenSet() const
void SetDeploymentRecommendation(DeploymentRecommendationT &&value)
void SetEnableNetworkIsolation(bool value)
void SetInferenceExecutionConfig(InferenceExecutionConfigT &&value)
void SetVpcConfig(VpcConfigT &&value)
bool PrimaryContainerHasBeenSet() const
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
Model & WithPrimaryContainer(PrimaryContainerT &&value)
Model & WithVpcConfig(VpcConfigT &&value)
Model & WithInferenceExecutionConfig(InferenceExecutionConfigT &&value)
Model & WithEnableNetworkIsolation(bool value)
bool ModelNameHasBeenSet() const
Model & AddContainers(ContainersT &&value)
AWS_SAGEMAKER_API Model & operator=(Aws::Utils::Json::JsonView jsonValue)
Model & WithTags(TagsT &&value)
bool TagsHasBeenSet() const
bool ModelArnHasBeenSet() const
Model & WithContainers(ContainersT &&value)
const Aws::String & GetExecutionRoleArn() const
const ContainerDefinition & GetPrimaryContainer() const
Model & WithExecutionRoleArn(ExecutionRoleArnT &&value)
const Aws::String & GetModelArn() const
bool ExecutionRoleArnHasBeenSet() const
const Aws::Vector< Tag > & GetTags() const
const VpcConfig & GetVpcConfig() const
const InferenceExecutionConfig & GetInferenceExecutionConfig() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
bool DeploymentRecommendationHasBeenSet() const
Model & AddTags(TagsT &&value)
bool ContainersHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue