AWS SDK for C++  1.9.158
AWS SDK for C++
CreateModelRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace SageMaker
20 {
21 namespace Model
22 {
23 
27  {
28  public:
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::String SerializePayload() const override;
38 
40 
41 
45  inline const Aws::String& GetModelName() const{ return m_modelName; }
46 
50  inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
51 
55  inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; }
56 
60  inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); }
61 
65  inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); }
66 
70  inline CreateModelRequest& WithModelName(const Aws::String& value) { SetModelName(value); return *this;}
71 
75  inline CreateModelRequest& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;}
76 
80  inline CreateModelRequest& WithModelName(const char* value) { SetModelName(value); return *this;}
81 
82 
88  inline const ContainerDefinition& GetPrimaryContainer() const{ return m_primaryContainer; }
89 
95  inline bool PrimaryContainerHasBeenSet() const { return m_primaryContainerHasBeenSet; }
96 
102  inline void SetPrimaryContainer(const ContainerDefinition& value) { m_primaryContainerHasBeenSet = true; m_primaryContainer = value; }
103 
109  inline void SetPrimaryContainer(ContainerDefinition&& value) { m_primaryContainerHasBeenSet = true; m_primaryContainer = std::move(value); }
110 
116  inline CreateModelRequest& WithPrimaryContainer(const ContainerDefinition& value) { SetPrimaryContainer(value); return *this;}
117 
123  inline CreateModelRequest& WithPrimaryContainer(ContainerDefinition&& value) { SetPrimaryContainer(std::move(value)); return *this;}
124 
125 
129  inline const Aws::Vector<ContainerDefinition>& GetContainers() const{ return m_containers; }
130 
134  inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
135 
139  inline void SetContainers(const Aws::Vector<ContainerDefinition>& value) { m_containersHasBeenSet = true; m_containers = value; }
140 
144  inline void SetContainers(Aws::Vector<ContainerDefinition>&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); }
145 
149  inline CreateModelRequest& WithContainers(const Aws::Vector<ContainerDefinition>& value) { SetContainers(value); return *this;}
150 
154  inline CreateModelRequest& WithContainers(Aws::Vector<ContainerDefinition>&& value) { SetContainers(std::move(value)); return *this;}
155 
159  inline CreateModelRequest& AddContainers(const ContainerDefinition& value) { m_containersHasBeenSet = true; m_containers.push_back(value); return *this; }
160 
164  inline CreateModelRequest& AddContainers(ContainerDefinition&& value) { m_containersHasBeenSet = true; m_containers.push_back(std::move(value)); return *this; }
165 
166 
171  inline const InferenceExecutionConfig& GetInferenceExecutionConfig() const{ return m_inferenceExecutionConfig; }
172 
177  inline bool InferenceExecutionConfigHasBeenSet() const { return m_inferenceExecutionConfigHasBeenSet; }
178 
183  inline void SetInferenceExecutionConfig(const InferenceExecutionConfig& value) { m_inferenceExecutionConfigHasBeenSet = true; m_inferenceExecutionConfig = value; }
184 
189  inline void SetInferenceExecutionConfig(InferenceExecutionConfig&& value) { m_inferenceExecutionConfigHasBeenSet = true; m_inferenceExecutionConfig = std::move(value); }
190 
195  inline CreateModelRequest& WithInferenceExecutionConfig(const InferenceExecutionConfig& value) { SetInferenceExecutionConfig(value); return *this;}
196 
201  inline CreateModelRequest& WithInferenceExecutionConfig(InferenceExecutionConfig&& value) { SetInferenceExecutionConfig(std::move(value)); return *this;}
202 
203 
214  inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
215 
226  inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
227 
238  inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
239 
250  inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
251 
262  inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
263 
274  inline CreateModelRequest& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;}
275 
286  inline CreateModelRequest& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
287 
298  inline CreateModelRequest& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
299 
300 
308  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
309 
317  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
318 
326  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
327 
335  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
336 
344  inline CreateModelRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
345 
353  inline CreateModelRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
354 
362  inline CreateModelRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
363 
371  inline CreateModelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
372 
373 
384  inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
385 
396  inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
397 
408  inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
409 
420  inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
421 
432  inline CreateModelRequest& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
433 
444  inline CreateModelRequest& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
445 
446 
451  inline bool GetEnableNetworkIsolation() const{ return m_enableNetworkIsolation; }
452 
457  inline bool EnableNetworkIsolationHasBeenSet() const { return m_enableNetworkIsolationHasBeenSet; }
458 
463  inline void SetEnableNetworkIsolation(bool value) { m_enableNetworkIsolationHasBeenSet = true; m_enableNetworkIsolation = value; }
464 
469  inline CreateModelRequest& WithEnableNetworkIsolation(bool value) { SetEnableNetworkIsolation(value); return *this;}
470 
471  private:
472 
473  Aws::String m_modelName;
474  bool m_modelNameHasBeenSet;
475 
476  ContainerDefinition m_primaryContainer;
477  bool m_primaryContainerHasBeenSet;
478 
480  bool m_containersHasBeenSet;
481 
482  InferenceExecutionConfig m_inferenceExecutionConfig;
483  bool m_inferenceExecutionConfigHasBeenSet;
484 
485  Aws::String m_executionRoleArn;
486  bool m_executionRoleArnHasBeenSet;
487 
488  Aws::Vector<Tag> m_tags;
489  bool m_tagsHasBeenSet;
490 
491  VpcConfig m_vpcConfig;
492  bool m_vpcConfigHasBeenSet;
493 
494  bool m_enableNetworkIsolation;
495  bool m_enableNetworkIsolationHasBeenSet;
496  };
497 
498 } // namespace Model
499 } // namespace SageMaker
500 } // namespace Aws
Aws::SageMaker::Model::Tag
Definition: Tag.h:44
Aws::SageMaker::Model::CreateModelRequest::SetModelName
void SetModelName(const char *value)
Definition: CreateModelRequest.h:65
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
VpcConfig.h
Aws::SageMaker::Model::CreateModelRequest::SetExecutionRoleArn
void SetExecutionRoleArn(Aws::String &&value)
Definition: CreateModelRequest.h:250
SageMaker_EXPORTS.h
Aws::SageMaker::Model::CreateModelRequest::SetModelName
void SetModelName(Aws::String &&value)
Definition: CreateModelRequest.h:60
Aws::SageMaker::Model::CreateModelRequest::AddContainers
CreateModelRequest & AddContainers(const ContainerDefinition &value)
Definition: CreateModelRequest.h:159
Aws::SageMaker::Model::CreateModelRequest::WithPrimaryContainer
CreateModelRequest & WithPrimaryContainer(ContainerDefinition &&value)
Definition: CreateModelRequest.h:123
Aws::SageMaker::Model::CreateModelRequest::WithEnableNetworkIsolation
CreateModelRequest & WithEnableNetworkIsolation(bool value)
Definition: CreateModelRequest.h:469
Aws::SageMaker::Model::CreateModelRequest::WithModelName
CreateModelRequest & WithModelName(const char *value)
Definition: CreateModelRequest.h:80
Aws::SageMaker::Model::CreateModelRequest::WithInferenceExecutionConfig
CreateModelRequest & WithInferenceExecutionConfig(InferenceExecutionConfig &&value)
Definition: CreateModelRequest.h:201
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ContainerDefinition.h
Aws::SageMaker::Model::CreateModelRequest::WithModelName
CreateModelRequest & WithModelName(const Aws::String &value)
Definition: CreateModelRequest.h:70
Aws::SageMaker::Model::CreateModelRequest::SetInferenceExecutionConfig
void SetInferenceExecutionConfig(InferenceExecutionConfig &&value)
Definition: CreateModelRequest.h:189
Aws::SageMaker::Model::CreateModelRequest::VpcConfigHasBeenSet
bool VpcConfigHasBeenSet() const
Definition: CreateModelRequest.h:396
Aws::SageMaker::Model::CreateModelRequest::EnableNetworkIsolationHasBeenSet
bool EnableNetworkIsolationHasBeenSet() const
Definition: CreateModelRequest.h:457
Aws::SageMaker::Model::CreateModelRequest::GetVpcConfig
const VpcConfig & GetVpcConfig() const
Definition: CreateModelRequest.h:384
Aws::SageMaker::Model::CreateModelRequest::GetExecutionRoleArn
const Aws::String & GetExecutionRoleArn() const
Definition: CreateModelRequest.h:214
Aws::SageMaker::Model::CreateModelRequest::AddTags
CreateModelRequest & AddTags(const Tag &value)
Definition: CreateModelRequest.h:362
Aws::SageMaker::Model::CreateModelRequest::WithTags
CreateModelRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateModelRequest.h:344
Aws::SageMaker::Model::CreateModelRequest::WithExecutionRoleArn
CreateModelRequest & WithExecutionRoleArn(const Aws::String &value)
Definition: CreateModelRequest.h:274
Aws::SageMaker::Model::CreateModelRequest
Definition: CreateModelRequest.h:27
Aws::SageMaker::Model::CreateModelRequest::InferenceExecutionConfigHasBeenSet
bool InferenceExecutionConfigHasBeenSet() const
Definition: CreateModelRequest.h:177
Aws::SageMaker::Model::CreateModelRequest::SetVpcConfig
void SetVpcConfig(VpcConfig &&value)
Definition: CreateModelRequest.h:420
Aws::SageMaker::Model::CreateModelRequest::SetModelName
void SetModelName(const Aws::String &value)
Definition: CreateModelRequest.h:55
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SageMaker::Model::ContainerDefinition
Definition: ContainerDefinition.h:37
Aws::SageMaker::Model::CreateModelRequest::WithTags
CreateModelRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateModelRequest.h:353
Aws::SageMaker::Model::CreateModelRequest::ModelNameHasBeenSet
bool ModelNameHasBeenSet() const
Definition: CreateModelRequest.h:50
AWSVector.h
Aws::SageMaker::Model::CreateModelRequest::ExecutionRoleArnHasBeenSet
bool ExecutionRoleArnHasBeenSet() const
Definition: CreateModelRequest.h:226
Aws::SageMaker::Model::CreateModelRequest::AddTags
CreateModelRequest & AddTags(Tag &&value)
Definition: CreateModelRequest.h:371
Aws::SageMaker::Model::InferenceExecutionConfig
Definition: InferenceExecutionConfig.h:33
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
Aws::SageMaker::Model::CreateModelRequest::WithVpcConfig
CreateModelRequest & WithVpcConfig(const VpcConfig &value)
Definition: CreateModelRequest.h:432
Aws::SageMaker::Model::CreateModelRequest::AddContainers
CreateModelRequest & AddContainers(ContainerDefinition &&value)
Definition: CreateModelRequest.h:164
Aws::SageMaker::Model::CreateModelRequest::SetExecutionRoleArn
void SetExecutionRoleArn(const char *value)
Definition: CreateModelRequest.h:262
Aws::SageMaker::Model::CreateModelRequest::WithVpcConfig
CreateModelRequest & WithVpcConfig(VpcConfig &&value)
Definition: CreateModelRequest.h:444
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::CreateModelRequest::GetContainers
const Aws::Vector< ContainerDefinition > & GetContainers() const
Definition: CreateModelRequest.h:129
Aws::SageMaker::Model::CreateModelRequest::WithContainers
CreateModelRequest & WithContainers(const Aws::Vector< ContainerDefinition > &value)
Definition: CreateModelRequest.h:149
Aws::SageMaker::Model::CreateModelRequest::WithExecutionRoleArn
CreateModelRequest & WithExecutionRoleArn(Aws::String &&value)
Definition: CreateModelRequest.h:286
Aws::SageMaker::Model::CreateModelRequest::GetModelName
const Aws::String & GetModelName() const
Definition: CreateModelRequest.h:45
Aws::SageMaker::Model::CreateModelRequest::SetExecutionRoleArn
void SetExecutionRoleArn(const Aws::String &value)
Definition: CreateModelRequest.h:238
Aws::SageMaker::Model::CreateModelRequest::WithExecutionRoleArn
CreateModelRequest & WithExecutionRoleArn(const char *value)
Definition: CreateModelRequest.h:298
AWSString.h
Aws::SageMaker::Model::CreateModelRequest::WithModelName
CreateModelRequest & WithModelName(Aws::String &&value)
Definition: CreateModelRequest.h:75
Tag.h
Aws::SageMaker::Model::CreateModelRequest::SetInferenceExecutionConfig
void SetInferenceExecutionConfig(const InferenceExecutionConfig &value)
Definition: CreateModelRequest.h:183
Aws::SageMaker::Model::CreateModelRequest::GetEnableNetworkIsolation
bool GetEnableNetworkIsolation() const
Definition: CreateModelRequest.h:451
Aws::SageMaker::Model::CreateModelRequest::SetVpcConfig
void SetVpcConfig(const VpcConfig &value)
Definition: CreateModelRequest.h:408
Aws::SageMaker::Model::CreateModelRequest::SetEnableNetworkIsolation
void SetEnableNetworkIsolation(bool value)
Definition: CreateModelRequest.h:463
Aws::SageMaker::Model::CreateModelRequest::SetContainers
void SetContainers(const Aws::Vector< ContainerDefinition > &value)
Definition: CreateModelRequest.h:139
Aws::SageMaker::Model::CreateModelRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SageMaker::Model::CreateModelRequest::ContainersHasBeenSet
bool ContainersHasBeenSet() const
Definition: CreateModelRequest.h:134
Aws::SageMaker::Model::CreateModelRequest::CreateModelRequest
CreateModelRequest()
Aws::SageMaker::Model::CreateModelRequest::WithContainers
CreateModelRequest & WithContainers(Aws::Vector< ContainerDefinition > &&value)
Definition: CreateModelRequest.h:154
Aws::SageMaker::Model::CreateModelRequest::SetContainers
void SetContainers(Aws::Vector< ContainerDefinition > &&value)
Definition: CreateModelRequest.h:144
Aws::SageMaker::Model::CreateModelRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateModelRequest.h:326
Aws::SageMaker::Model::CreateModelRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateModelRequest.h:308
Aws::SageMaker::Model::CreateModelRequest::SetPrimaryContainer
void SetPrimaryContainer(ContainerDefinition &&value)
Definition: CreateModelRequest.h:109
Aws
Definition: AccessManagementClient.h:15
SageMakerRequest.h
Aws::SageMaker::Model::CreateModelRequest::SetPrimaryContainer
void SetPrimaryContainer(const ContainerDefinition &value)
Definition: CreateModelRequest.h:102
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::VpcConfig
Definition: VpcConfig.h:40
InferenceExecutionConfig.h
Aws::SageMaker::Model::CreateModelRequest::GetInferenceExecutionConfig
const InferenceExecutionConfig & GetInferenceExecutionConfig() const
Definition: CreateModelRequest.h:171
Aws::SageMaker::Model::CreateModelRequest::GetPrimaryContainer
const ContainerDefinition & GetPrimaryContainer() const
Definition: CreateModelRequest.h:88
Aws::SageMaker::Model::CreateModelRequest::PrimaryContainerHasBeenSet
bool PrimaryContainerHasBeenSet() const
Definition: CreateModelRequest.h:95
Aws::SageMaker::Model::CreateModelRequest::WithPrimaryContainer
CreateModelRequest & WithPrimaryContainer(const ContainerDefinition &value)
Definition: CreateModelRequest.h:116
Aws::SageMaker::Model::CreateModelRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateModelRequest.h:335
Aws::SageMaker::Model::CreateModelRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateModelRequest.h:35
Aws::SageMaker::Model::CreateModelRequest::WithInferenceExecutionConfig
CreateModelRequest & WithInferenceExecutionConfig(const InferenceExecutionConfig &value)
Definition: CreateModelRequest.h:195
Aws::SageMaker::Model::CreateModelRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateModelRequest.h:317
Aws::SageMaker::Model::CreateModelRequest::SerializePayload
Aws::String SerializePayload() const override