AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateModelRequest.h
1
6#pragma once
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>
15#include <utility>
16
17namespace Aws
18{
19namespace SageMaker
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SAGEMAKER_API CreateModelRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateModel"; }
36
37 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetModelName() const { return m_modelName; }
47 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
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>
51 CreateModelRequest& WithModelName(ModelNameT&& value) { SetModelName(std::forward<ModelNameT>(value)); return *this;}
53
55
60 inline const ContainerDefinition& GetPrimaryContainer() const { return m_primaryContainer; }
61 inline bool PrimaryContainerHasBeenSet() const { return m_primaryContainerHasBeenSet; }
62 template<typename PrimaryContainerT = ContainerDefinition>
63 void SetPrimaryContainer(PrimaryContainerT&& value) { m_primaryContainerHasBeenSet = true; m_primaryContainer = std::forward<PrimaryContainerT>(value); }
64 template<typename PrimaryContainerT = ContainerDefinition>
65 CreateModelRequest& WithPrimaryContainer(PrimaryContainerT&& value) { SetPrimaryContainer(std::forward<PrimaryContainerT>(value)); return *this;}
67
69
72 inline const Aws::Vector<ContainerDefinition>& GetContainers() const { return m_containers; }
73 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
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>>
77 CreateModelRequest& WithContainers(ContainersT&& value) { SetContainers(std::forward<ContainersT>(value)); return *this;}
78 template<typename ContainersT = ContainerDefinition>
79 CreateModelRequest& AddContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers.emplace_back(std::forward<ContainersT>(value)); return *this; }
81
83
87 inline const InferenceExecutionConfig& GetInferenceExecutionConfig() const { return m_inferenceExecutionConfig; }
88 inline bool InferenceExecutionConfigHasBeenSet() const { return m_inferenceExecutionConfigHasBeenSet; }
89 template<typename InferenceExecutionConfigT = InferenceExecutionConfig>
90 void SetInferenceExecutionConfig(InferenceExecutionConfigT&& value) { m_inferenceExecutionConfigHasBeenSet = true; m_inferenceExecutionConfig = std::forward<InferenceExecutionConfigT>(value); }
91 template<typename InferenceExecutionConfigT = InferenceExecutionConfig>
92 CreateModelRequest& WithInferenceExecutionConfig(InferenceExecutionConfigT&& value) { SetInferenceExecutionConfig(std::forward<InferenceExecutionConfigT>(value)); return *this;}
94
96
105 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
106 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
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>
110 CreateModelRequest& WithExecutionRoleArn(ExecutionRoleArnT&& value) { SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value)); return *this;}
112
114
121 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
122 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
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>>
126 CreateModelRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
127 template<typename TagsT = Tag>
128 CreateModelRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
130
132
144 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
145 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
146 template<typename VpcConfigT = VpcConfig>
147 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
148 template<typename VpcConfigT = VpcConfig>
149 CreateModelRequest& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
151
153
157 inline bool GetEnableNetworkIsolation() const { return m_enableNetworkIsolation; }
158 inline bool EnableNetworkIsolationHasBeenSet() const { return m_enableNetworkIsolationHasBeenSet; }
159 inline void SetEnableNetworkIsolation(bool value) { m_enableNetworkIsolationHasBeenSet = true; m_enableNetworkIsolation = value; }
162 private:
163
164 Aws::String m_modelName;
165 bool m_modelNameHasBeenSet = false;
166
167 ContainerDefinition m_primaryContainer;
168 bool m_primaryContainerHasBeenSet = false;
169
171 bool m_containersHasBeenSet = false;
172
173 InferenceExecutionConfig m_inferenceExecutionConfig;
174 bool m_inferenceExecutionConfigHasBeenSet = false;
175
176 Aws::String m_executionRoleArn;
177 bool m_executionRoleArnHasBeenSet = false;
178
179 Aws::Vector<Tag> m_tags;
180 bool m_tagsHasBeenSet = false;
181
182 VpcConfig m_vpcConfig;
183 bool m_vpcConfigHasBeenSet = false;
184
185 bool m_enableNetworkIsolation{false};
186 bool m_enableNetworkIsolationHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace SageMaker
191} // namespace Aws
const ContainerDefinition & GetPrimaryContainer() const
CreateModelRequest & AddContainers(ContainersT &&value)
CreateModelRequest & WithPrimaryContainer(PrimaryContainerT &&value)
const Aws::Vector< ContainerDefinition > & GetContainers() const
void SetInferenceExecutionConfig(InferenceExecutionConfigT &&value)
CreateModelRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
const Aws::Vector< Tag > & GetTags() const
CreateModelRequest & WithTags(TagsT &&value)
CreateModelRequest & WithInferenceExecutionConfig(InferenceExecutionConfigT &&value)
CreateModelRequest & AddTags(TagsT &&value)
CreateModelRequest & WithContainers(ContainersT &&value)
const Aws::String & GetExecutionRoleArn() const
CreateModelRequest & WithEnableNetworkIsolation(bool value)
virtual const char * GetServiceRequestName() const override
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
CreateModelRequest & WithModelName(ModelNameT &&value)
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