AWS SDK for C++

AWS SDK for C++ Version 1.11.644

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/ClusterTieredStorageConfig.h>
12#include <aws/sagemaker/model/ClusterNodeRecovery.h>
13#include <aws/sagemaker/model/ClusterAutoScalingConfig.h>
14#include <aws/sagemaker/model/ClusterInstanceGroupSpecification.h>
15#include <aws/sagemaker/model/ClusterRestrictedInstanceGroupSpecification.h>
16#include <utility>
17
18namespace Aws
19{
20namespace SageMaker
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_SAGEMAKER_API UpdateClusterRequest() = default;
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 "UpdateCluster"; }
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 template<typename ClusterNameT = Aws::String>
50 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
51 template<typename ClusterNameT = Aws::String>
52 UpdateClusterRequest& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
54
56
59 inline const Aws::Vector<ClusterInstanceGroupSpecification>& GetInstanceGroups() const { return m_instanceGroups; }
60 inline bool InstanceGroupsHasBeenSet() const { return m_instanceGroupsHasBeenSet; }
61 template<typename InstanceGroupsT = Aws::Vector<ClusterInstanceGroupSpecification>>
62 void SetInstanceGroups(InstanceGroupsT&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = std::forward<InstanceGroupsT>(value); }
63 template<typename InstanceGroupsT = Aws::Vector<ClusterInstanceGroupSpecification>>
64 UpdateClusterRequest& WithInstanceGroups(InstanceGroupsT&& value) { SetInstanceGroups(std::forward<InstanceGroupsT>(value)); return *this;}
65 template<typename InstanceGroupsT = ClusterInstanceGroupSpecification>
66 UpdateClusterRequest& AddInstanceGroups(InstanceGroupsT&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.emplace_back(std::forward<InstanceGroupsT>(value)); return *this; }
68
70
74 inline const Aws::Vector<ClusterRestrictedInstanceGroupSpecification>& GetRestrictedInstanceGroups() const { return m_restrictedInstanceGroups; }
75 inline bool RestrictedInstanceGroupsHasBeenSet() const { return m_restrictedInstanceGroupsHasBeenSet; }
76 template<typename RestrictedInstanceGroupsT = Aws::Vector<ClusterRestrictedInstanceGroupSpecification>>
77 void SetRestrictedInstanceGroups(RestrictedInstanceGroupsT&& value) { m_restrictedInstanceGroupsHasBeenSet = true; m_restrictedInstanceGroups = std::forward<RestrictedInstanceGroupsT>(value); }
78 template<typename RestrictedInstanceGroupsT = Aws::Vector<ClusterRestrictedInstanceGroupSpecification>>
79 UpdateClusterRequest& WithRestrictedInstanceGroups(RestrictedInstanceGroupsT&& value) { SetRestrictedInstanceGroups(std::forward<RestrictedInstanceGroupsT>(value)); return *this;}
80 template<typename RestrictedInstanceGroupsT = ClusterRestrictedInstanceGroupSpecification>
81 UpdateClusterRequest& AddRestrictedInstanceGroups(RestrictedInstanceGroupsT&& value) { m_restrictedInstanceGroupsHasBeenSet = true; m_restrictedInstanceGroups.emplace_back(std::forward<RestrictedInstanceGroupsT>(value)); return *this; }
83
85
90 inline const ClusterTieredStorageConfig& GetTieredStorageConfig() const { return m_tieredStorageConfig; }
91 inline bool TieredStorageConfigHasBeenSet() const { return m_tieredStorageConfigHasBeenSet; }
92 template<typename TieredStorageConfigT = ClusterTieredStorageConfig>
93 void SetTieredStorageConfig(TieredStorageConfigT&& value) { m_tieredStorageConfigHasBeenSet = true; m_tieredStorageConfig = std::forward<TieredStorageConfigT>(value); }
94 template<typename TieredStorageConfigT = ClusterTieredStorageConfig>
95 UpdateClusterRequest& WithTieredStorageConfig(TieredStorageConfigT&& value) { SetTieredStorageConfig(std::forward<TieredStorageConfigT>(value)); return *this;}
97
99
102 inline ClusterNodeRecovery GetNodeRecovery() const { return m_nodeRecovery; }
103 inline bool NodeRecoveryHasBeenSet() const { return m_nodeRecoveryHasBeenSet; }
104 inline void SetNodeRecovery(ClusterNodeRecovery value) { m_nodeRecoveryHasBeenSet = true; m_nodeRecovery = value; }
107
109
113 inline const Aws::Vector<Aws::String>& GetInstanceGroupsToDelete() const { return m_instanceGroupsToDelete; }
114 inline bool InstanceGroupsToDeleteHasBeenSet() const { return m_instanceGroupsToDeleteHasBeenSet; }
115 template<typename InstanceGroupsToDeleteT = Aws::Vector<Aws::String>>
116 void SetInstanceGroupsToDelete(InstanceGroupsToDeleteT&& value) { m_instanceGroupsToDeleteHasBeenSet = true; m_instanceGroupsToDelete = std::forward<InstanceGroupsToDeleteT>(value); }
117 template<typename InstanceGroupsToDeleteT = Aws::Vector<Aws::String>>
118 UpdateClusterRequest& WithInstanceGroupsToDelete(InstanceGroupsToDeleteT&& value) { SetInstanceGroupsToDelete(std::forward<InstanceGroupsToDeleteT>(value)); return *this;}
119 template<typename InstanceGroupsToDeleteT = Aws::String>
120 UpdateClusterRequest& AddInstanceGroupsToDelete(InstanceGroupsToDeleteT&& value) { m_instanceGroupsToDeleteHasBeenSet = true; m_instanceGroupsToDelete.emplace_back(std::forward<InstanceGroupsToDeleteT>(value)); return *this; }
122
124
129 inline const Aws::String& GetClusterRole() const { return m_clusterRole; }
130 inline bool ClusterRoleHasBeenSet() const { return m_clusterRoleHasBeenSet; }
131 template<typename ClusterRoleT = Aws::String>
132 void SetClusterRole(ClusterRoleT&& value) { m_clusterRoleHasBeenSet = true; m_clusterRole = std::forward<ClusterRoleT>(value); }
133 template<typename ClusterRoleT = Aws::String>
134 UpdateClusterRequest& WithClusterRole(ClusterRoleT&& value) { SetClusterRole(std::forward<ClusterRoleT>(value)); return *this;}
136
138
142 inline const ClusterAutoScalingConfig& GetAutoScaling() const { return m_autoScaling; }
143 inline bool AutoScalingHasBeenSet() const { return m_autoScalingHasBeenSet; }
144 template<typename AutoScalingT = ClusterAutoScalingConfig>
145 void SetAutoScaling(AutoScalingT&& value) { m_autoScalingHasBeenSet = true; m_autoScaling = std::forward<AutoScalingT>(value); }
146 template<typename AutoScalingT = ClusterAutoScalingConfig>
147 UpdateClusterRequest& WithAutoScaling(AutoScalingT&& value) { SetAutoScaling(std::forward<AutoScalingT>(value)); return *this;}
149 private:
150
151 Aws::String m_clusterName;
152 bool m_clusterNameHasBeenSet = false;
153
155 bool m_instanceGroupsHasBeenSet = false;
156
158 bool m_restrictedInstanceGroupsHasBeenSet = false;
159
160 ClusterTieredStorageConfig m_tieredStorageConfig;
161 bool m_tieredStorageConfigHasBeenSet = false;
162
164 bool m_nodeRecoveryHasBeenSet = false;
165
166 Aws::Vector<Aws::String> m_instanceGroupsToDelete;
167 bool m_instanceGroupsToDeleteHasBeenSet = false;
168
169 Aws::String m_clusterRole;
170 bool m_clusterRoleHasBeenSet = false;
171
172 ClusterAutoScalingConfig m_autoScaling;
173 bool m_autoScalingHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace SageMaker
178} // namespace Aws
UpdateClusterRequest & WithNodeRecovery(ClusterNodeRecovery value)
UpdateClusterRequest & WithClusterRole(ClusterRoleT &&value)
const Aws::Vector< Aws::String > & GetInstanceGroupsToDelete() const
void SetTieredStorageConfig(TieredStorageConfigT &&value)
UpdateClusterRequest & WithAutoScaling(AutoScalingT &&value)
AWS_SAGEMAKER_API UpdateClusterRequest()=default
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateClusterRequest & WithTieredStorageConfig(TieredStorageConfigT &&value)
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)
const ClusterTieredStorageConfig & GetTieredStorageConfig() const
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