AWS SDK for C++

AWS SDK for C++ Version 1.11.633

Loading...
Searching...
No Matches
BatchDeleteClusterNodesRequest.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 <utility>
12
13namespace Aws
14{
15namespace SageMaker
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SAGEMAKER_API BatchDeleteClusterNodesRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "BatchDeleteClusterNodes"; }
32
33 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetClusterName() const { return m_clusterName; }
44 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
45 template<typename ClusterNameT = Aws::String>
46 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
47 template<typename ClusterNameT = Aws::String>
48 BatchDeleteClusterNodesRequest& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
50
52
60 inline const Aws::Vector<Aws::String>& GetNodeIds() const { return m_nodeIds; }
61 inline bool NodeIdsHasBeenSet() const { return m_nodeIdsHasBeenSet; }
62 template<typename NodeIdsT = Aws::Vector<Aws::String>>
63 void SetNodeIds(NodeIdsT&& value) { m_nodeIdsHasBeenSet = true; m_nodeIds = std::forward<NodeIdsT>(value); }
64 template<typename NodeIdsT = Aws::Vector<Aws::String>>
65 BatchDeleteClusterNodesRequest& WithNodeIds(NodeIdsT&& value) { SetNodeIds(std::forward<NodeIdsT>(value)); return *this;}
66 template<typename NodeIdsT = Aws::String>
67 BatchDeleteClusterNodesRequest& AddNodeIds(NodeIdsT&& value) { m_nodeIdsHasBeenSet = true; m_nodeIds.emplace_back(std::forward<NodeIdsT>(value)); return *this; }
69
71
77 inline const Aws::Vector<Aws::String>& GetNodeLogicalIds() const { return m_nodeLogicalIds; }
78 inline bool NodeLogicalIdsHasBeenSet() const { return m_nodeLogicalIdsHasBeenSet; }
79 template<typename NodeLogicalIdsT = Aws::Vector<Aws::String>>
80 void SetNodeLogicalIds(NodeLogicalIdsT&& value) { m_nodeLogicalIdsHasBeenSet = true; m_nodeLogicalIds = std::forward<NodeLogicalIdsT>(value); }
81 template<typename NodeLogicalIdsT = Aws::Vector<Aws::String>>
82 BatchDeleteClusterNodesRequest& WithNodeLogicalIds(NodeLogicalIdsT&& value) { SetNodeLogicalIds(std::forward<NodeLogicalIdsT>(value)); return *this;}
83 template<typename NodeLogicalIdsT = Aws::String>
84 BatchDeleteClusterNodesRequest& AddNodeLogicalIds(NodeLogicalIdsT&& value) { m_nodeLogicalIdsHasBeenSet = true; m_nodeLogicalIds.emplace_back(std::forward<NodeLogicalIdsT>(value)); return *this; }
86 private:
87
88 Aws::String m_clusterName;
89 bool m_clusterNameHasBeenSet = false;
90
92 bool m_nodeIdsHasBeenSet = false;
93
94 Aws::Vector<Aws::String> m_nodeLogicalIds;
95 bool m_nodeLogicalIdsHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace SageMaker
100} // namespace Aws
BatchDeleteClusterNodesRequest & WithNodeLogicalIds(NodeLogicalIdsT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchDeleteClusterNodesRequest & AddNodeLogicalIds(NodeLogicalIdsT &&value)
BatchDeleteClusterNodesRequest & WithClusterName(ClusterNameT &&value)
AWS_SAGEMAKER_API BatchDeleteClusterNodesRequest()=default
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
BatchDeleteClusterNodesRequest & AddNodeIds(NodeIdsT &&value)
BatchDeleteClusterNodesRequest & WithNodeIds(NodeIdsT &&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