AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; }
49 inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); }
50 inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); }
51 inline CreateModelRequest& WithModelName(const Aws::String& value) { SetModelName(value); return *this;}
52 inline CreateModelRequest& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;}
53 inline CreateModelRequest& WithModelName(const char* value) { SetModelName(value); return *this;}
55
57
62 inline const ContainerDefinition& GetPrimaryContainer() const{ return m_primaryContainer; }
63 inline bool PrimaryContainerHasBeenSet() const { return m_primaryContainerHasBeenSet; }
64 inline void SetPrimaryContainer(const ContainerDefinition& value) { m_primaryContainerHasBeenSet = true; m_primaryContainer = value; }
65 inline void SetPrimaryContainer(ContainerDefinition&& value) { m_primaryContainerHasBeenSet = true; m_primaryContainer = std::move(value); }
67 inline CreateModelRequest& WithPrimaryContainer(ContainerDefinition&& value) { SetPrimaryContainer(std::move(value)); return *this;}
69
71
74 inline const Aws::Vector<ContainerDefinition>& GetContainers() const{ return m_containers; }
75 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
76 inline void SetContainers(const Aws::Vector<ContainerDefinition>& value) { m_containersHasBeenSet = true; m_containers = value; }
77 inline void SetContainers(Aws::Vector<ContainerDefinition>&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); }
79 inline CreateModelRequest& WithContainers(Aws::Vector<ContainerDefinition>&& value) { SetContainers(std::move(value)); return *this;}
80 inline CreateModelRequest& AddContainers(const ContainerDefinition& value) { m_containersHasBeenSet = true; m_containers.push_back(value); return *this; }
81 inline CreateModelRequest& AddContainers(ContainerDefinition&& value) { m_containersHasBeenSet = true; m_containers.push_back(std::move(value)); return *this; }
83
85
89 inline const InferenceExecutionConfig& GetInferenceExecutionConfig() const{ return m_inferenceExecutionConfig; }
90 inline bool InferenceExecutionConfigHasBeenSet() const { return m_inferenceExecutionConfigHasBeenSet; }
91 inline void SetInferenceExecutionConfig(const InferenceExecutionConfig& value) { m_inferenceExecutionConfigHasBeenSet = true; m_inferenceExecutionConfig = value; }
92 inline void SetInferenceExecutionConfig(InferenceExecutionConfig&& value) { m_inferenceExecutionConfigHasBeenSet = true; m_inferenceExecutionConfig = std::move(value); }
96
98
107 inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
108 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
109 inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
110 inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
111 inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
112 inline CreateModelRequest& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;}
113 inline CreateModelRequest& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
114 inline CreateModelRequest& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
116
118
125 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
126 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
127 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
128 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
129 inline CreateModelRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
130 inline CreateModelRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
131 inline CreateModelRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
132 inline CreateModelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
134
136
148 inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
149 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
150 inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
151 inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
152 inline CreateModelRequest& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
153 inline CreateModelRequest& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
155
157
161 inline bool GetEnableNetworkIsolation() const{ return m_enableNetworkIsolation; }
162 inline bool EnableNetworkIsolationHasBeenSet() const { return m_enableNetworkIsolationHasBeenSet; }
163 inline void SetEnableNetworkIsolation(bool value) { m_enableNetworkIsolationHasBeenSet = true; m_enableNetworkIsolation = value; }
166 private:
167
168 Aws::String m_modelName;
169 bool m_modelNameHasBeenSet = false;
170
171 ContainerDefinition m_primaryContainer;
172 bool m_primaryContainerHasBeenSet = false;
173
175 bool m_containersHasBeenSet = false;
176
177 InferenceExecutionConfig m_inferenceExecutionConfig;
178 bool m_inferenceExecutionConfigHasBeenSet = false;
179
180 Aws::String m_executionRoleArn;
181 bool m_executionRoleArnHasBeenSet = false;
182
183 Aws::Vector<Tag> m_tags;
184 bool m_tagsHasBeenSet = false;
185
186 VpcConfig m_vpcConfig;
187 bool m_vpcConfigHasBeenSet = false;
188
189 bool m_enableNetworkIsolation;
190 bool m_enableNetworkIsolationHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace SageMaker
195} // namespace Aws
CreateModelRequest & WithInferenceExecutionConfig(const InferenceExecutionConfig &value)
const ContainerDefinition & GetPrimaryContainer() const
CreateModelRequest & AddContainers(ContainerDefinition &&value)
CreateModelRequest & WithVpcConfig(const VpcConfig &value)
CreateModelRequest & WithPrimaryContainer(ContainerDefinition &&value)
CreateModelRequest & WithContainers(Aws::Vector< ContainerDefinition > &&value)
CreateModelRequest & WithModelName(const Aws::String &value)
void SetTags(Aws::Vector< Tag > &&value)
const Aws::Vector< ContainerDefinition > & GetContainers() const
CreateModelRequest & WithContainers(const Aws::Vector< ContainerDefinition > &value)
void SetModelName(const Aws::String &value)
CreateModelRequest & WithVpcConfig(VpcConfig &&value)
CreateModelRequest & WithExecutionRoleArn(const char *value)
CreateModelRequest & WithModelName(const char *value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateModelRequest & WithTags(const Aws::Vector< Tag > &value)
CreateModelRequest & AddTags(const Tag &value)
void SetContainers(Aws::Vector< ContainerDefinition > &&value)
const Aws::Vector< Tag > & GetTags() const
void SetPrimaryContainer(const ContainerDefinition &value)
void SetExecutionRoleArn(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
void SetInferenceExecutionConfig(const InferenceExecutionConfig &value)
void SetContainers(const Aws::Vector< ContainerDefinition > &value)
void SetInferenceExecutionConfig(InferenceExecutionConfig &&value)
CreateModelRequest & WithExecutionRoleArn(const Aws::String &value)
CreateModelRequest & AddTags(Tag &&value)
CreateModelRequest & WithExecutionRoleArn(Aws::String &&value)
CreateModelRequest & AddContainers(const ContainerDefinition &value)
const Aws::String & GetExecutionRoleArn() const
CreateModelRequest & WithEnableNetworkIsolation(bool value)
virtual const char * GetServiceRequestName() const override
CreateModelRequest & WithTags(Aws::Vector< Tag > &&value)
const InferenceExecutionConfig & GetInferenceExecutionConfig() const
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateModelRequest & WithModelName(Aws::String &&value)
CreateModelRequest & WithPrimaryContainer(const ContainerDefinition &value)
void SetPrimaryContainer(ContainerDefinition &&value)
CreateModelRequest & WithInferenceExecutionConfig(InferenceExecutionConfig &&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