AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateNodeRequest.h
1
6#pragma once
7#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
8#include <aws/managedblockchain/ManagedBlockchainRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/managedblockchain/model/NodeConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace ManagedBlockchain
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_MANAGEDBLOCKCHAIN_API CreateNodeRequest() = 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 "CreateNode"; }
34
35 AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override;
36
37
39
46 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
47 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
48 template<typename ClientRequestTokenT = Aws::String>
49 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
50 template<typename ClientRequestTokenT = Aws::String>
51 CreateNodeRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
53
55
60 inline const Aws::String& GetNetworkId() const { return m_networkId; }
61 inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
62 template<typename NetworkIdT = Aws::String>
63 void SetNetworkId(NetworkIdT&& value) { m_networkIdHasBeenSet = true; m_networkId = std::forward<NetworkIdT>(value); }
64 template<typename NetworkIdT = Aws::String>
65 CreateNodeRequest& WithNetworkId(NetworkIdT&& value) { SetNetworkId(std::forward<NetworkIdT>(value)); return *this;}
67
69
73 inline const Aws::String& GetMemberId() const { return m_memberId; }
74 inline bool MemberIdHasBeenSet() const { return m_memberIdHasBeenSet; }
75 template<typename MemberIdT = Aws::String>
76 void SetMemberId(MemberIdT&& value) { m_memberIdHasBeenSet = true; m_memberId = std::forward<MemberIdT>(value); }
77 template<typename MemberIdT = Aws::String>
78 CreateNodeRequest& WithMemberId(MemberIdT&& value) { SetMemberId(std::forward<MemberIdT>(value)); return *this;}
80
82
85 inline const NodeConfiguration& GetNodeConfiguration() const { return m_nodeConfiguration; }
86 inline bool NodeConfigurationHasBeenSet() const { return m_nodeConfigurationHasBeenSet; }
87 template<typename NodeConfigurationT = NodeConfiguration>
88 void SetNodeConfiguration(NodeConfigurationT&& value) { m_nodeConfigurationHasBeenSet = true; m_nodeConfiguration = std::forward<NodeConfigurationT>(value); }
89 template<typename NodeConfigurationT = NodeConfiguration>
90 CreateNodeRequest& WithNodeConfiguration(NodeConfigurationT&& value) { SetNodeConfiguration(std::forward<NodeConfigurationT>(value)); return *this;}
92
94
106 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
107 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
108 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
109 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
110 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
111 CreateNodeRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
112 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
113 CreateNodeRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
114 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
115 }
117 private:
118
119 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
120 bool m_clientRequestTokenHasBeenSet = true;
121
122 Aws::String m_networkId;
123 bool m_networkIdHasBeenSet = false;
124
125 Aws::String m_memberId;
126 bool m_memberIdHasBeenSet = false;
127
128 NodeConfiguration m_nodeConfiguration;
129 bool m_nodeConfigurationHasBeenSet = false;
130
132 bool m_tagsHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace ManagedBlockchain
137} // 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