AWS SDK for C++

AWS SDK for C++ Version 1.11.633

Loading...
Searching...
No Matches
BatchAddClusterNodesRequest.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 <aws/sagemaker/model/AddClusterNodeSpecification.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace SageMaker
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAGEMAKER_API BatchAddClusterNodesRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "BatchAddClusterNodes"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetClusterName() const { return m_clusterName; }
45 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
46 template<typename ClusterNameT = Aws::String>
47 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
48 template<typename ClusterNameT = Aws::String>
49 BatchAddClusterNodesRequest& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
51
53
60 inline const Aws::String& GetClientToken() const { return m_clientToken; }
61 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
62 template<typename ClientTokenT = Aws::String>
63 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
64 template<typename ClientTokenT = Aws::String>
65 BatchAddClusterNodesRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
67
69
74 inline const Aws::Vector<AddClusterNodeSpecification>& GetNodesToAdd() const { return m_nodesToAdd; }
75 inline bool NodesToAddHasBeenSet() const { return m_nodesToAddHasBeenSet; }
76 template<typename NodesToAddT = Aws::Vector<AddClusterNodeSpecification>>
77 void SetNodesToAdd(NodesToAddT&& value) { m_nodesToAddHasBeenSet = true; m_nodesToAdd = std::forward<NodesToAddT>(value); }
78 template<typename NodesToAddT = Aws::Vector<AddClusterNodeSpecification>>
79 BatchAddClusterNodesRequest& WithNodesToAdd(NodesToAddT&& value) { SetNodesToAdd(std::forward<NodesToAddT>(value)); return *this;}
80 template<typename NodesToAddT = AddClusterNodeSpecification>
81 BatchAddClusterNodesRequest& AddNodesToAdd(NodesToAddT&& value) { m_nodesToAddHasBeenSet = true; m_nodesToAdd.emplace_back(std::forward<NodesToAddT>(value)); return *this; }
83 private:
84
85 Aws::String m_clusterName;
86 bool m_clusterNameHasBeenSet = false;
87
89 bool m_clientTokenHasBeenSet = true;
90
92 bool m_nodesToAddHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace SageMaker
97} // 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