AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
BatchReplaceClusterNodesRequest.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 BatchReplaceClusterNodesRequest() = 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 "BatchReplaceClusterNodes"; }
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
66 inline const Aws::Vector<Aws::String>& GetNodeIds() const { return m_nodeIds; }
67 inline bool NodeIdsHasBeenSet() const { return m_nodeIdsHasBeenSet; }
68 template <typename NodeIdsT = Aws::Vector<Aws::String>>
69 void SetNodeIds(NodeIdsT&& value) {
70 m_nodeIdsHasBeenSet = true;
71 m_nodeIds = std::forward<NodeIdsT>(value);
72 }
73 template <typename NodeIdsT = Aws::Vector<Aws::String>>
75 SetNodeIds(std::forward<NodeIdsT>(value));
76 return *this;
77 }
78 template <typename NodeIdsT = Aws::String>
80 m_nodeIdsHasBeenSet = true;
81 m_nodeIds.emplace_back(std::forward<NodeIdsT>(value));
82 return *this;
83 }
85
87
101 inline const Aws::Vector<Aws::String>& GetNodeLogicalIds() const { return m_nodeLogicalIds; }
102 inline bool NodeLogicalIdsHasBeenSet() const { return m_nodeLogicalIdsHasBeenSet; }
103 template <typename NodeLogicalIdsT = Aws::Vector<Aws::String>>
104 void SetNodeLogicalIds(NodeLogicalIdsT&& value) {
105 m_nodeLogicalIdsHasBeenSet = true;
106 m_nodeLogicalIds = std::forward<NodeLogicalIdsT>(value);
107 }
108 template <typename NodeLogicalIdsT = Aws::Vector<Aws::String>>
110 SetNodeLogicalIds(std::forward<NodeLogicalIdsT>(value));
111 return *this;
112 }
113 template <typename NodeLogicalIdsT = Aws::String>
115 m_nodeLogicalIdsHasBeenSet = true;
116 m_nodeLogicalIds.emplace_back(std::forward<NodeLogicalIdsT>(value));
117 return *this;
118 }
120 private:
121 Aws::String m_clusterName;
122
123 Aws::Vector<Aws::String> m_nodeIds;
124
125 Aws::Vector<Aws::String> m_nodeLogicalIds;
126 bool m_clusterNameHasBeenSet = false;
127 bool m_nodeIdsHasBeenSet = false;
128 bool m_nodeLogicalIdsHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace SageMaker
133} // namespace Aws
BatchReplaceClusterNodesRequest & WithNodeLogicalIds(NodeLogicalIdsT &&value)
BatchReplaceClusterNodesRequest & WithClusterName(ClusterNameT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchReplaceClusterNodesRequest & AddNodeLogicalIds(NodeLogicalIdsT &&value)
BatchReplaceClusterNodesRequest & AddNodeIds(NodeIdsT &&value)
AWS_SAGEMAKER_API BatchReplaceClusterNodesRequest()=default
BatchReplaceClusterNodesRequest & 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