7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/ContainerDefinition.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/sagemaker/model/InferenceExecutionConfig.h>
13#include <aws/sagemaker/model/VpcConfig.h>
14#include <aws/sagemaker/model/Tag.h>
48 template<
typename ModelNameT = Aws::String>
49 void SetModelName(ModelNameT&& value) { m_modelNameHasBeenSet =
true; m_modelName = std::forward<ModelNameT>(value); }
50 template<
typename ModelNameT = Aws::String>
62 template<
typename PrimaryContainerT = ContainerDefinition>
63 void SetPrimaryContainer(PrimaryContainerT&& value) { m_primaryContainerHasBeenSet =
true; m_primaryContainer = std::forward<PrimaryContainerT>(value); }
64 template<
typename PrimaryContainerT = ContainerDefinition>
74 template<
typename ContainersT = Aws::Vector<ContainerDefinition>>
75 void SetContainers(ContainersT&& value) { m_containersHasBeenSet =
true; m_containers = std::forward<ContainersT>(value); }
76 template<
typename ContainersT = Aws::Vector<ContainerDefinition>>
78 template<
typename ContainersT = ContainerDefinition>
79 CreateModelRequest&
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>
107 template<
typename ExecutionRoleArnT = Aws::String>
108 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet =
true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
109 template<
typename ExecutionRoleArnT = Aws::String>
123 template<
typename TagsT = Aws::Vector<Tag>>
124 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
125 template<
typename TagsT = Aws::Vector<Tag>>
127 template<
typename TagsT = Tag>
146 template<
typename VpcConfigT = VpcConfig>
147 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet =
true; m_vpcConfig = std::forward<VpcConfigT>(value); }
148 template<
typename VpcConfigT = VpcConfig>
165 bool m_modelNameHasBeenSet =
false;
168 bool m_primaryContainerHasBeenSet =
false;
171 bool m_containersHasBeenSet =
false;
174 bool m_inferenceExecutionConfigHasBeenSet =
false;
177 bool m_executionRoleArnHasBeenSet =
false;
180 bool m_tagsHasBeenSet =
false;
183 bool m_vpcConfigHasBeenSet =
false;
185 bool m_enableNetworkIsolation{
false};
186 bool m_enableNetworkIsolationHasBeenSet =
false;
const ContainerDefinition & GetPrimaryContainer() const
const VpcConfig & GetVpcConfig() const
CreateModelRequest & AddContainers(ContainersT &&value)
CreateModelRequest & WithPrimaryContainer(PrimaryContainerT &&value)
bool ModelNameHasBeenSet() const
bool TagsHasBeenSet() const
bool ExecutionRoleArnHasBeenSet() const
const Aws::Vector< ContainerDefinition > & GetContainers() const
bool GetEnableNetworkIsolation() const
void SetInferenceExecutionConfig(InferenceExecutionConfigT &&value)
bool EnableNetworkIsolationHasBeenSet() const
CreateModelRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
bool PrimaryContainerHasBeenSet() const
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetModelName() const
CreateModelRequest & WithTags(TagsT &&value)
void SetModelName(ModelNameT &&value)
CreateModelRequest & WithInferenceExecutionConfig(InferenceExecutionConfigT &&value)
void SetTags(TagsT &&value)
CreateModelRequest & AddTags(TagsT &&value)
bool InferenceExecutionConfigHasBeenSet() const
bool ContainersHasBeenSet() const
CreateModelRequest & WithContainers(ContainersT &&value)
const Aws::String & GetExecutionRoleArn() const
CreateModelRequest & WithEnableNetworkIsolation(bool value)
virtual const char * GetServiceRequestName() const override
void SetVpcConfig(VpcConfigT &&value)
void SetPrimaryContainer(PrimaryContainerT &&value)
CreateModelRequest & WithVpcConfig(VpcConfigT &&value)
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
const InferenceExecutionConfig & GetInferenceExecutionConfig() const
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SAGEMAKER_API CreateModelRequest()=default
void SetContainers(ContainersT &&value)
void SetEnableNetworkIsolation(bool value)
CreateModelRequest & WithModelName(ModelNameT &&value)
bool VpcConfigHasBeenSet() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector