AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/ClusterInstanceGroupSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SageMaker
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAGEMAKER_API UpdateClusterRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateCluster"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetClusterName() const{ return m_clusterName; }
45 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
46 inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
47 inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
48 inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
49 inline UpdateClusterRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
50 inline UpdateClusterRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
51 inline UpdateClusterRequest& WithClusterName(const char* value) { SetClusterName(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 inline void SetInstanceGroups(const Aws::Vector<ClusterInstanceGroupSpecification>& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = value; }
61 inline void SetInstanceGroups(Aws::Vector<ClusterInstanceGroupSpecification>&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = std::move(value); }
64 inline UpdateClusterRequest& AddInstanceGroups(const ClusterInstanceGroupSpecification& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.push_back(value); return *this; }
65 inline UpdateClusterRequest& AddInstanceGroups(ClusterInstanceGroupSpecification&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.push_back(std::move(value)); return *this; }
67
69
72 inline const ClusterNodeRecovery& GetNodeRecovery() const{ return m_nodeRecovery; }
73 inline bool NodeRecoveryHasBeenSet() const { return m_nodeRecoveryHasBeenSet; }
74 inline void SetNodeRecovery(const ClusterNodeRecovery& value) { m_nodeRecoveryHasBeenSet = true; m_nodeRecovery = value; }
75 inline void SetNodeRecovery(ClusterNodeRecovery&& value) { m_nodeRecoveryHasBeenSet = true; m_nodeRecovery = std::move(value); }
76 inline UpdateClusterRequest& WithNodeRecovery(const ClusterNodeRecovery& value) { SetNodeRecovery(value); return *this;}
77 inline UpdateClusterRequest& WithNodeRecovery(ClusterNodeRecovery&& value) { SetNodeRecovery(std::move(value)); return *this;}
79 private:
80
81 Aws::String m_clusterName;
82 bool m_clusterNameHasBeenSet = false;
83
85 bool m_instanceGroupsHasBeenSet = false;
86
87 ClusterNodeRecovery m_nodeRecovery;
88 bool m_nodeRecoveryHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace SageMaker
93} // namespace Aws
UpdateClusterRequest & WithNodeRecovery(ClusterNodeRecovery &&value)
void SetClusterName(const Aws::String &value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetInstanceGroups(const Aws::Vector< ClusterInstanceGroupSpecification > &value)
void SetInstanceGroups(Aws::Vector< ClusterInstanceGroupSpecification > &&value)
const Aws::Vector< ClusterInstanceGroupSpecification > & GetInstanceGroups() const
UpdateClusterRequest & WithClusterName(const char *value)
const ClusterNodeRecovery & GetNodeRecovery() const
UpdateClusterRequest & WithInstanceGroups(Aws::Vector< ClusterInstanceGroupSpecification > &&value)
UpdateClusterRequest & AddInstanceGroups(const ClusterInstanceGroupSpecification &value)
UpdateClusterRequest & WithClusterName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetNodeRecovery(ClusterNodeRecovery &&value)
UpdateClusterRequest & WithClusterName(Aws::String &&value)
UpdateClusterRequest & AddInstanceGroups(ClusterInstanceGroupSpecification &&value)
UpdateClusterRequest & WithInstanceGroups(const Aws::Vector< ClusterInstanceGroupSpecification > &value)
UpdateClusterRequest & WithNodeRecovery(const ClusterNodeRecovery &value)
void SetNodeRecovery(const ClusterNodeRecovery &value)
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