7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/ClusterAutoScalingConfig.h>
12#include <aws/sagemaker/model/ClusterInstanceGroupSpecification.h>
13#include <aws/sagemaker/model/ClusterNodeProvisioningMode.h>
14#include <aws/sagemaker/model/ClusterNodeRecovery.h>
15#include <aws/sagemaker/model/ClusterRestrictedInstanceGroupSpecification.h>
16#include <aws/sagemaker/model/ClusterTieredStorageConfig.h>
46 template <
typename ClusterNameT = Aws::String>
48 m_clusterNameHasBeenSet =
true;
49 m_clusterName = std::forward<ClusterNameT>(value);
51 template <
typename ClusterNameT = Aws::String>
64 template <
typename InstanceGroupsT = Aws::Vector<ClusterInstanceGroupSpecification>>
66 m_instanceGroupsHasBeenSet =
true;
67 m_instanceGroups = std::forward<InstanceGroupsT>(value);
69 template <
typename InstanceGroupsT = Aws::Vector<ClusterInstanceGroupSpecification>>
74 template <
typename InstanceGroupsT = ClusterInstanceGroupSpecification>
76 m_instanceGroupsHasBeenSet =
true;
77 m_instanceGroups.emplace_back(std::forward<InstanceGroupsT>(value));
88 return m_restrictedInstanceGroups;
91 template <
typename RestrictedInstanceGroupsT = Aws::Vector<ClusterRestrictedInstanceGroupSpecification>>
93 m_restrictedInstanceGroupsHasBeenSet =
true;
94 m_restrictedInstanceGroups = std::forward<RestrictedInstanceGroupsT>(value);
96 template <
typename RestrictedInstanceGroupsT = Aws::Vector<ClusterRestrictedInstanceGroupSpecification>>
101 template <
typename RestrictedInstanceGroupsT = ClusterRestrictedInstanceGroupSpecification>
103 m_restrictedInstanceGroupsHasBeenSet =
true;
104 m_restrictedInstanceGroups.emplace_back(std::forward<RestrictedInstanceGroupsT>(value));
117 template <
typename TieredStorageConfigT = ClusterTieredStorageConfig>
119 m_tieredStorageConfigHasBeenSet =
true;
120 m_tieredStorageConfig = std::forward<TieredStorageConfigT>(value);
122 template <
typename TieredStorageConfigT = ClusterTieredStorageConfig>
136 m_nodeRecoveryHasBeenSet =
true;
137 m_nodeRecovery = value;
152 template <
typename InstanceGroupsToDeleteT = Aws::Vector<Aws::String>>
154 m_instanceGroupsToDeleteHasBeenSet =
true;
155 m_instanceGroupsToDelete = std::forward<InstanceGroupsToDeleteT>(value);
157 template <
typename InstanceGroupsToDeleteT = Aws::Vector<Aws::String>>
162 template <
typename InstanceGroupsToDeleteT = Aws::String>
164 m_instanceGroupsToDeleteHasBeenSet =
true;
165 m_instanceGroupsToDelete.emplace_back(std::forward<InstanceGroupsToDeleteT>(value));
182 m_nodeProvisioningModeHasBeenSet =
true;
183 m_nodeProvisioningMode = value;
199 template <
typename ClusterRoleT = Aws::String>
201 m_clusterRoleHasBeenSet =
true;
202 m_clusterRole = std::forward<ClusterRoleT>(value);
204 template <
typename ClusterRoleT = Aws::String>
218 template <
typename AutoScalingT = ClusterAutoScalingConfig>
220 m_autoScalingHasBeenSet =
true;
221 m_autoScaling = std::forward<AutoScalingT>(value);
223 template <
typename AutoScalingT = ClusterAutoScalingConfig>
246 ClusterAutoScalingConfig m_autoScaling;
247 bool m_clusterNameHasBeenSet =
false;
248 bool m_instanceGroupsHasBeenSet =
false;
249 bool m_restrictedInstanceGroupsHasBeenSet =
false;
250 bool m_tieredStorageConfigHasBeenSet =
false;
251 bool m_nodeRecoveryHasBeenSet =
false;
252 bool m_instanceGroupsToDeleteHasBeenSet =
false;
253 bool m_nodeProvisioningModeHasBeenSet =
false;
254 bool m_clusterRoleHasBeenSet =
false;
255 bool m_autoScalingHasBeenSet =
false;
bool AutoScalingHasBeenSet() const
UpdateClusterRequest & WithNodeProvisioningMode(ClusterNodeProvisioningMode value)
bool NodeProvisioningModeHasBeenSet() const
UpdateClusterRequest & WithNodeRecovery(ClusterNodeRecovery value)
bool InstanceGroupsHasBeenSet() const
bool ClusterRoleHasBeenSet() const
const Aws::String & GetClusterName() const
UpdateClusterRequest & WithClusterRole(ClusterRoleT &&value)
const Aws::String & GetClusterRole() const
void SetClusterRole(ClusterRoleT &&value)
void SetNodeProvisioningMode(ClusterNodeProvisioningMode value)
const Aws::Vector< Aws::String > & GetInstanceGroupsToDelete() const
void SetTieredStorageConfig(TieredStorageConfigT &&value)
ClusterNodeProvisioningMode GetNodeProvisioningMode() const
UpdateClusterRequest & WithAutoScaling(AutoScalingT &&value)
void SetAutoScaling(AutoScalingT &&value)
AWS_SAGEMAKER_API UpdateClusterRequest()=default
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateClusterRequest & WithTieredStorageConfig(TieredStorageConfigT &&value)
void SetRestrictedInstanceGroups(RestrictedInstanceGroupsT &&value)
ClusterNodeRecovery GetNodeRecovery() const
void SetNodeRecovery(ClusterNodeRecovery value)
UpdateClusterRequest & WithInstanceGroupsToDelete(InstanceGroupsToDeleteT &&value)
bool InstanceGroupsToDeleteHasBeenSet() const
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)
bool TieredStorageConfigHasBeenSet() const
void SetInstanceGroupsToDelete(InstanceGroupsToDeleteT &&value)
void SetClusterName(ClusterNameT &&value)
UpdateClusterRequest & WithClusterName(ClusterNameT &&value)
bool ClusterNameHasBeenSet() const
const ClusterTieredStorageConfig & GetTieredStorageConfig() const
bool NodeRecoveryHasBeenSet() const
virtual const char * GetServiceRequestName() const override
const Aws::Vector< ClusterRestrictedInstanceGroupSpecification > & GetRestrictedInstanceGroups() const
UpdateClusterRequest & AddInstanceGroups(InstanceGroupsT &&value)
const ClusterAutoScalingConfig & GetAutoScaling() const
bool RestrictedInstanceGroupsHasBeenSet() const
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
ClusterNodeProvisioningMode
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector