AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateNodeRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/managedblockchain/ManagedBlockchainRequest.h>
11#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
12#include <aws/managedblockchain/model/NodeConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ManagedBlockchain {
18namespace Model {
19
23 public:
24 AWS_MANAGEDBLOCKCHAIN_API CreateNodeRequest() = 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 "CreateNode"; }
31
32 AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override;
33
35
42 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
43 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
44 template <typename ClientRequestTokenT = Aws::String>
45 void SetClientRequestToken(ClientRequestTokenT&& value) {
46 m_clientRequestTokenHasBeenSet = true;
47 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
48 }
49 template <typename ClientRequestTokenT = Aws::String>
50 CreateNodeRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
51 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetNetworkId() const { return m_networkId; }
63 inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
64 template <typename NetworkIdT = Aws::String>
65 void SetNetworkId(NetworkIdT&& value) {
66 m_networkIdHasBeenSet = true;
67 m_networkId = std::forward<NetworkIdT>(value);
68 }
69 template <typename NetworkIdT = Aws::String>
70 CreateNodeRequest& WithNetworkId(NetworkIdT&& value) {
71 SetNetworkId(std::forward<NetworkIdT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetMemberId() const { return m_memberId; }
82 inline bool MemberIdHasBeenSet() const { return m_memberIdHasBeenSet; }
83 template <typename MemberIdT = Aws::String>
84 void SetMemberId(MemberIdT&& value) {
85 m_memberIdHasBeenSet = true;
86 m_memberId = std::forward<MemberIdT>(value);
87 }
88 template <typename MemberIdT = Aws::String>
89 CreateNodeRequest& WithMemberId(MemberIdT&& value) {
90 SetMemberId(std::forward<MemberIdT>(value));
91 return *this;
92 }
94
96
99 inline const NodeConfiguration& GetNodeConfiguration() const { return m_nodeConfiguration; }
100 inline bool NodeConfigurationHasBeenSet() const { return m_nodeConfigurationHasBeenSet; }
101 template <typename NodeConfigurationT = NodeConfiguration>
102 void SetNodeConfiguration(NodeConfigurationT&& value) {
103 m_nodeConfigurationHasBeenSet = true;
104 m_nodeConfiguration = std::forward<NodeConfigurationT>(value);
105 }
106 template <typename NodeConfigurationT = NodeConfiguration>
107 CreateNodeRequest& WithNodeConfiguration(NodeConfigurationT&& value) {
108 SetNodeConfiguration(std::forward<NodeConfigurationT>(value));
109 return *this;
110 }
112
114
126 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
127 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
128 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
129 void SetTags(TagsT&& value) {
130 m_tagsHasBeenSet = true;
131 m_tags = std::forward<TagsT>(value);
132 }
133 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
134 CreateNodeRequest& WithTags(TagsT&& value) {
135 SetTags(std::forward<TagsT>(value));
136 return *this;
137 }
138 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
139 CreateNodeRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
140 m_tagsHasBeenSet = true;
141 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
147
148 Aws::String m_networkId;
149
150 Aws::String m_memberId;
151
152 NodeConfiguration m_nodeConfiguration;
153
155 bool m_clientRequestTokenHasBeenSet = true;
156 bool m_networkIdHasBeenSet = false;
157 bool m_memberIdHasBeenSet = false;
158 bool m_nodeConfigurationHasBeenSet = false;
159 bool m_tagsHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace ManagedBlockchain
164} // namespace Aws
CreateNodeRequest & WithMemberId(MemberIdT &&value)
CreateNodeRequest & WithNodeConfiguration(NodeConfigurationT &&value)
CreateNodeRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override
CreateNodeRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetNodeConfiguration(NodeConfigurationT &&value)
CreateNodeRequest & WithNetworkId(NetworkIdT &&value)
const NodeConfiguration & GetNodeConfiguration() const
CreateNodeRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_MANAGEDBLOCKCHAIN_API CreateNodeRequest()=default
void SetClientRequestToken(ClientRequestTokenT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String