AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
BatchRebootClusterNodesRequest.h
1
6#pragma once
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
12#include <utility>
13
14namespace Aws {
15namespace SageMaker {
16namespace Model {
17
21 public:
22 AWS_SAGEMAKER_API BatchRebootClusterNodesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "BatchRebootClusterNodes"; }
29
30 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetClusterName() const { return m_clusterName; }
40 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
41 template <typename ClusterNameT = Aws::String>
42 void SetClusterName(ClusterNameT&& value) {
43 m_clusterNameHasBeenSet = true;
44 m_clusterName = std::forward<ClusterNameT>(value);
45 }
46 template <typename ClusterNameT = Aws::String>
48 SetClusterName(std::forward<ClusterNameT>(value));
49 return *this;
50 }
52
54
62 inline const Aws::Vector<Aws::String>& GetNodeIds() const { return m_nodeIds; }
63 inline bool NodeIdsHasBeenSet() const { return m_nodeIdsHasBeenSet; }
64 template <typename NodeIdsT = Aws::Vector<Aws::String>>
65 void SetNodeIds(NodeIdsT&& value) {
66 m_nodeIdsHasBeenSet = true;
67 m_nodeIds = std::forward<NodeIdsT>(value);
68 }
69 template <typename NodeIdsT = Aws::Vector<Aws::String>>
71 SetNodeIds(std::forward<NodeIdsT>(value));
72 return *this;
73 }
74 template <typename NodeIdsT = Aws::String>
76 m_nodeIdsHasBeenSet = true;
77 m_nodeIds.emplace_back(std::forward<NodeIdsT>(value));
78 return *this;
79 }
81
83
95 inline const Aws::Vector<Aws::String>& GetNodeLogicalIds() const { return m_nodeLogicalIds; }
96 inline bool NodeLogicalIdsHasBeenSet() const { return m_nodeLogicalIdsHasBeenSet; }
97 template <typename NodeLogicalIdsT = Aws::Vector<Aws::String>>
98 void SetNodeLogicalIds(NodeLogicalIdsT&& value) {
99 m_nodeLogicalIdsHasBeenSet = true;
100 m_nodeLogicalIds = std::forward<NodeLogicalIdsT>(value);
101 }
102 template <typename NodeLogicalIdsT = Aws::Vector<Aws::String>>
104 SetNodeLogicalIds(std::forward<NodeLogicalIdsT>(value));
105 return *this;
106 }
107 template <typename NodeLogicalIdsT = Aws::String>
109 m_nodeLogicalIdsHasBeenSet = true;
110 m_nodeLogicalIds.emplace_back(std::forward<NodeLogicalIdsT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_clusterName;
116
117 Aws::Vector<Aws::String> m_nodeIds;
118
119 Aws::Vector<Aws::String> m_nodeLogicalIds;
120 bool m_clusterNameHasBeenSet = false;
121 bool m_nodeIdsHasBeenSet = false;
122 bool m_nodeLogicalIdsHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace SageMaker
127} // namespace Aws
AWS_SAGEMAKER_API BatchRebootClusterNodesRequest()=default
BatchRebootClusterNodesRequest & WithClusterName(ClusterNameT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
BatchRebootClusterNodesRequest & WithNodeIds(NodeIdsT &&value)
BatchRebootClusterNodesRequest & WithNodeLogicalIds(NodeLogicalIdsT &&value)
BatchRebootClusterNodesRequest & AddNodeIds(NodeIdsT &&value)
BatchRebootClusterNodesRequest & AddNodeLogicalIds(NodeLogicalIdsT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() 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