AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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 private:
70
71 Aws::String m_clusterName;
72 bool m_clusterNameHasBeenSet = false;
73
75 bool m_nodeIdsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace SageMaker
80} // namespace Aws
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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