AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateClusterRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/model/VpcConfig.h>
12#include <aws/sagemaker/model/ClusterOrchestrator.h>
13#include <aws/sagemaker/model/ClusterNodeRecovery.h>
14#include <aws/sagemaker/model/ClusterInstanceGroupSpecification.h>
15#include <aws/sagemaker/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace SageMaker
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_SAGEMAKER_API CreateClusterRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateCluster"; }
37
38 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
39
41
42
44
47 inline const Aws::String& GetClusterName() const{ return m_clusterName; }
48 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
49 inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
50 inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
51 inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
52 inline CreateClusterRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
53 inline CreateClusterRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
54 inline CreateClusterRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;}
56
58
61 inline const Aws::Vector<ClusterInstanceGroupSpecification>& GetInstanceGroups() const{ return m_instanceGroups; }
62 inline bool InstanceGroupsHasBeenSet() const { return m_instanceGroupsHasBeenSet; }
63 inline void SetInstanceGroups(const Aws::Vector<ClusterInstanceGroupSpecification>& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = value; }
64 inline void SetInstanceGroups(Aws::Vector<ClusterInstanceGroupSpecification>&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = std::move(value); }
67 inline CreateClusterRequest& AddInstanceGroups(const ClusterInstanceGroupSpecification& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.push_back(value); return *this; }
68 inline CreateClusterRequest& AddInstanceGroups(ClusterInstanceGroupSpecification&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.push_back(std::move(value)); return *this; }
70
72
73 inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
74 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
75 inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
76 inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
77 inline CreateClusterRequest& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
78 inline CreateClusterRequest& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
80
82
90 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
91 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
93 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
94 inline CreateClusterRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
95 inline CreateClusterRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
96 inline CreateClusterRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
97 inline CreateClusterRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
99
101
106 inline const ClusterOrchestrator& GetOrchestrator() const{ return m_orchestrator; }
107 inline bool OrchestratorHasBeenSet() const { return m_orchestratorHasBeenSet; }
108 inline void SetOrchestrator(const ClusterOrchestrator& value) { m_orchestratorHasBeenSet = true; m_orchestrator = value; }
109 inline void SetOrchestrator(ClusterOrchestrator&& value) { m_orchestratorHasBeenSet = true; m_orchestrator = std::move(value); }
110 inline CreateClusterRequest& WithOrchestrator(const ClusterOrchestrator& value) { SetOrchestrator(value); return *this;}
111 inline CreateClusterRequest& WithOrchestrator(ClusterOrchestrator&& value) { SetOrchestrator(std::move(value)); return *this;}
113
115
121 inline const ClusterNodeRecovery& GetNodeRecovery() const{ return m_nodeRecovery; }
122 inline bool NodeRecoveryHasBeenSet() const { return m_nodeRecoveryHasBeenSet; }
123 inline void SetNodeRecovery(const ClusterNodeRecovery& value) { m_nodeRecoveryHasBeenSet = true; m_nodeRecovery = value; }
124 inline void SetNodeRecovery(ClusterNodeRecovery&& value) { m_nodeRecoveryHasBeenSet = true; m_nodeRecovery = std::move(value); }
125 inline CreateClusterRequest& WithNodeRecovery(const ClusterNodeRecovery& value) { SetNodeRecovery(value); return *this;}
126 inline CreateClusterRequest& WithNodeRecovery(ClusterNodeRecovery&& value) { SetNodeRecovery(std::move(value)); return *this;}
128 private:
129
130 Aws::String m_clusterName;
131 bool m_clusterNameHasBeenSet = false;
132
134 bool m_instanceGroupsHasBeenSet = false;
135
136 VpcConfig m_vpcConfig;
137 bool m_vpcConfigHasBeenSet = false;
138
139 Aws::Vector<Tag> m_tags;
140 bool m_tagsHasBeenSet = false;
141
142 ClusterOrchestrator m_orchestrator;
143 bool m_orchestratorHasBeenSet = false;
144
145 ClusterNodeRecovery m_nodeRecovery;
146 bool m_nodeRecoveryHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace SageMaker
151} // namespace Aws
void SetNodeRecovery(ClusterNodeRecovery &&value)
const ClusterOrchestrator & GetOrchestrator() const
const Aws::Vector< Tag > & GetTags() const
CreateClusterRequest & WithClusterName(Aws::String &&value)
CreateClusterRequest & WithClusterName(const char *value)
CreateClusterRequest & WithOrchestrator(const ClusterOrchestrator &value)
void SetOrchestrator(ClusterOrchestrator &&value)
CreateClusterRequest & WithNodeRecovery(ClusterNodeRecovery &&value)
void SetOrchestrator(const ClusterOrchestrator &value)
CreateClusterRequest & WithInstanceGroups(Aws::Vector< ClusterInstanceGroupSpecification > &&value)
CreateClusterRequest & WithOrchestrator(ClusterOrchestrator &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateClusterRequest & AddTags(Tag &&value)
CreateClusterRequest & WithInstanceGroups(const Aws::Vector< ClusterInstanceGroupSpecification > &value)
CreateClusterRequest & WithTags(Aws::Vector< Tag > &&value)
CreateClusterRequest & WithVpcConfig(const VpcConfig &value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
CreateClusterRequest & WithClusterName(const Aws::String &value)
CreateClusterRequest & AddInstanceGroups(const ClusterInstanceGroupSpecification &value)
CreateClusterRequest & AddInstanceGroups(ClusterInstanceGroupSpecification &&value)
CreateClusterRequest & WithTags(const Aws::Vector< Tag > &value)
const Aws::Vector< ClusterInstanceGroupSpecification > & GetInstanceGroups() const
void SetNodeRecovery(const ClusterNodeRecovery &value)
const ClusterNodeRecovery & GetNodeRecovery() const
void SetClusterName(const Aws::String &value)
void SetInstanceGroups(const Aws::Vector< ClusterInstanceGroupSpecification > &value)
CreateClusterRequest & WithNodeRecovery(const ClusterNodeRecovery &value)
CreateClusterRequest & AddTags(const Tag &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateClusterRequest & WithVpcConfig(VpcConfig &&value)
void SetInstanceGroups(Aws::Vector< ClusterInstanceGroupSpecification > &&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