AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BatchAddClusterNodesRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMakerRequest.h>
11#include <aws/sagemaker/SageMaker_EXPORTS.h>
12#include <aws/sagemaker/model/AddClusterNodeSpecification.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SageMaker {
18namespace Model {
19
23 public:
24 AWS_SAGEMAKER_API BatchAddClusterNodesRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "BatchAddClusterNodes"; }
31
32 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetClusterName() const { return m_clusterName; }
41 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
42 template <typename ClusterNameT = Aws::String>
43 void SetClusterName(ClusterNameT&& value) {
44 m_clusterNameHasBeenSet = true;
45 m_clusterName = std::forward<ClusterNameT>(value);
46 }
47 template <typename ClusterNameT = Aws::String>
49 SetClusterName(std::forward<ClusterNameT>(value));
50 return *this;
51 }
53
55
62 inline const Aws::String& GetClientToken() const { return m_clientToken; }
63 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
64 template <typename ClientTokenT = Aws::String>
65 void SetClientToken(ClientTokenT&& value) {
66 m_clientTokenHasBeenSet = true;
67 m_clientToken = std::forward<ClientTokenT>(value);
68 }
69 template <typename ClientTokenT = Aws::String>
71 SetClientToken(std::forward<ClientTokenT>(value));
72 return *this;
73 }
75
77
82 inline const Aws::Vector<AddClusterNodeSpecification>& GetNodesToAdd() const { return m_nodesToAdd; }
83 inline bool NodesToAddHasBeenSet() const { return m_nodesToAddHasBeenSet; }
84 template <typename NodesToAddT = Aws::Vector<AddClusterNodeSpecification>>
85 void SetNodesToAdd(NodesToAddT&& value) {
86 m_nodesToAddHasBeenSet = true;
87 m_nodesToAdd = std::forward<NodesToAddT>(value);
88 }
89 template <typename NodesToAddT = Aws::Vector<AddClusterNodeSpecification>>
91 SetNodesToAdd(std::forward<NodesToAddT>(value));
92 return *this;
93 }
94 template <typename NodesToAddT = AddClusterNodeSpecification>
96 m_nodesToAddHasBeenSet = true;
97 m_nodesToAdd.emplace_back(std::forward<NodesToAddT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_clusterName;
103
105
107 bool m_clusterNameHasBeenSet = false;
108 bool m_clientTokenHasBeenSet = true;
109 bool m_nodesToAddHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace SageMaker
114} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Vector< AddClusterNodeSpecification > & GetNodesToAdd() const
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
BatchAddClusterNodesRequest & AddNodesToAdd(NodesToAddT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchAddClusterNodesRequest & WithClusterName(ClusterNameT &&value)
AWS_SAGEMAKER_API BatchAddClusterNodesRequest()=default
BatchAddClusterNodesRequest & WithNodesToAdd(NodesToAddT &&value)
BatchAddClusterNodesRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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