AWS SDK for C++

AWS SDK for C++ Version 1.11.636

Loading...
Searching...
No Matches
UpdateClusterRequest.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/ClusterNodeRecovery.h>
12#include <aws/sagemaker/model/ClusterAutoScalingConfig.h>
13#include <aws/sagemaker/model/ClusterInstanceGroupSpecification.h>
14#include <aws/sagemaker/model/ClusterRestrictedInstanceGroupSpecification.h>
15#include <utility>
16
17namespace Aws
18{
19namespace SageMaker
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SAGEMAKER_API UpdateClusterRequest() = 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 "UpdateCluster"; }
36
37 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetClusterName() const { return m_clusterName; }
47 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
48 template<typename ClusterNameT = Aws::String>
49 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
50 template<typename ClusterNameT = Aws::String>
51 UpdateClusterRequest& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
53
55
58 inline const Aws::Vector<ClusterInstanceGroupSpecification>& GetInstanceGroups() const { return m_instanceGroups; }
59 inline bool InstanceGroupsHasBeenSet() const { return m_instanceGroupsHasBeenSet; }
60 template<typename InstanceGroupsT = Aws::Vector<ClusterInstanceGroupSpecification>>
61 void SetInstanceGroups(InstanceGroupsT&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = std::forward<InstanceGroupsT>(value); }
62 template<typename InstanceGroupsT = Aws::Vector<ClusterInstanceGroupSpecification>>
63 UpdateClusterRequest& WithInstanceGroups(InstanceGroupsT&& value) { SetInstanceGroups(std::forward<InstanceGroupsT>(value)); return *this;}
64 template<typename InstanceGroupsT = ClusterInstanceGroupSpecification>
65 UpdateClusterRequest& AddInstanceGroups(InstanceGroupsT&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.emplace_back(std::forward<InstanceGroupsT>(value)); return *this; }
67
69
73 inline const Aws::Vector<ClusterRestrictedInstanceGroupSpecification>& GetRestrictedInstanceGroups() const { return m_restrictedInstanceGroups; }
74 inline bool RestrictedInstanceGroupsHasBeenSet() const { return m_restrictedInstanceGroupsHasBeenSet; }
75 template<typename RestrictedInstanceGroupsT = Aws::Vector<ClusterRestrictedInstanceGroupSpecification>>
76 void SetRestrictedInstanceGroups(RestrictedInstanceGroupsT&& value) { m_restrictedInstanceGroupsHasBeenSet = true; m_restrictedInstanceGroups = std::forward<RestrictedInstanceGroupsT>(value); }
77 template<typename RestrictedInstanceGroupsT = Aws::Vector<ClusterRestrictedInstanceGroupSpecification>>
78 UpdateClusterRequest& WithRestrictedInstanceGroups(RestrictedInstanceGroupsT&& value) { SetRestrictedInstanceGroups(std::forward<RestrictedInstanceGroupsT>(value)); return *this;}
79 template<typename RestrictedInstanceGroupsT = ClusterRestrictedInstanceGroupSpecification>
80 UpdateClusterRequest& AddRestrictedInstanceGroups(RestrictedInstanceGroupsT&& value) { m_restrictedInstanceGroupsHasBeenSet = true; m_restrictedInstanceGroups.emplace_back(std::forward<RestrictedInstanceGroupsT>(value)); return *this; }
82
84
87 inline ClusterNodeRecovery GetNodeRecovery() const { return m_nodeRecovery; }
88 inline bool NodeRecoveryHasBeenSet() const { return m_nodeRecoveryHasBeenSet; }
89 inline void SetNodeRecovery(ClusterNodeRecovery value) { m_nodeRecoveryHasBeenSet = true; m_nodeRecovery = value; }
92
94
98 inline const Aws::Vector<Aws::String>& GetInstanceGroupsToDelete() const { return m_instanceGroupsToDelete; }
99 inline bool InstanceGroupsToDeleteHasBeenSet() const { return m_instanceGroupsToDeleteHasBeenSet; }
100 template<typename InstanceGroupsToDeleteT = Aws::Vector<Aws::String>>
101 void SetInstanceGroupsToDelete(InstanceGroupsToDeleteT&& value) { m_instanceGroupsToDeleteHasBeenSet = true; m_instanceGroupsToDelete = std::forward<InstanceGroupsToDeleteT>(value); }
102 template<typename InstanceGroupsToDeleteT = Aws::Vector<Aws::String>>
103 UpdateClusterRequest& WithInstanceGroupsToDelete(InstanceGroupsToDeleteT&& value) { SetInstanceGroupsToDelete(std::forward<InstanceGroupsToDeleteT>(value)); return *this;}
104 template<typename InstanceGroupsToDeleteT = Aws::String>
105 UpdateClusterRequest& AddInstanceGroupsToDelete(InstanceGroupsToDeleteT&& value) { m_instanceGroupsToDeleteHasBeenSet = true; m_instanceGroupsToDelete.emplace_back(std::forward<InstanceGroupsToDeleteT>(value)); return *this; }
107
109
114 inline const Aws::String& GetClusterRole() const { return m_clusterRole; }
115 inline bool ClusterRoleHasBeenSet() const { return m_clusterRoleHasBeenSet; }
116 template<typename ClusterRoleT = Aws::String>
117 void SetClusterRole(ClusterRoleT&& value) { m_clusterRoleHasBeenSet = true; m_clusterRole = std::forward<ClusterRoleT>(value); }
118 template<typename ClusterRoleT = Aws::String>
119 UpdateClusterRequest& WithClusterRole(ClusterRoleT&& value) { SetClusterRole(std::forward<ClusterRoleT>(value)); return *this;}
121
123
127 inline const ClusterAutoScalingConfig& GetAutoScaling() const { return m_autoScaling; }
128 inline bool AutoScalingHasBeenSet() const { return m_autoScalingHasBeenSet; }
129 template<typename AutoScalingT = ClusterAutoScalingConfig>
130 void SetAutoScaling(AutoScalingT&& value) { m_autoScalingHasBeenSet = true; m_autoScaling = std::forward<AutoScalingT>(value); }
131 template<typename AutoScalingT = ClusterAutoScalingConfig>
132 UpdateClusterRequest& WithAutoScaling(AutoScalingT&& value) { SetAutoScaling(std::forward<AutoScalingT>(value)); return *this;}
134 private:
135
136 Aws::String m_clusterName;
137 bool m_clusterNameHasBeenSet = false;
138
140 bool m_instanceGroupsHasBeenSet = false;
141
143 bool m_restrictedInstanceGroupsHasBeenSet = false;
144
146 bool m_nodeRecoveryHasBeenSet = false;
147
148 Aws::Vector<Aws::String> m_instanceGroupsToDelete;
149 bool m_instanceGroupsToDeleteHasBeenSet = false;
150
151 Aws::String m_clusterRole;
152 bool m_clusterRoleHasBeenSet = false;
153
154 ClusterAutoScalingConfig m_autoScaling;
155 bool m_autoScalingHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace SageMaker
160} // namespace Aws
UpdateClusterRequest & WithNodeRecovery(ClusterNodeRecovery value)
UpdateClusterRequest & WithClusterRole(ClusterRoleT &&value)
const Aws::Vector< Aws::String > & GetInstanceGroupsToDelete() const
UpdateClusterRequest & WithAutoScaling(AutoScalingT &&value)
AWS_SAGEMAKER_API UpdateClusterRequest()=default
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetRestrictedInstanceGroups(RestrictedInstanceGroupsT &&value)
void SetNodeRecovery(ClusterNodeRecovery value)
UpdateClusterRequest & WithInstanceGroupsToDelete(InstanceGroupsToDeleteT &&value)
UpdateClusterRequest & WithInstanceGroups(InstanceGroupsT &&value)
UpdateClusterRequest & AddInstanceGroupsToDelete(InstanceGroupsToDeleteT &&value)
const Aws::Vector< ClusterInstanceGroupSpecification > & GetInstanceGroups() const
UpdateClusterRequest & WithRestrictedInstanceGroups(RestrictedInstanceGroupsT &&value)
void SetInstanceGroups(InstanceGroupsT &&value)
UpdateClusterRequest & AddRestrictedInstanceGroups(RestrictedInstanceGroupsT &&value)
void SetInstanceGroupsToDelete(InstanceGroupsToDeleteT &&value)
UpdateClusterRequest & WithClusterName(ClusterNameT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< ClusterRestrictedInstanceGroupSpecification > & GetRestrictedInstanceGroups() const
UpdateClusterRequest & AddInstanceGroups(InstanceGroupsT &&value)
const ClusterAutoScalingConfig & GetAutoScaling() const
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
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