AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
49 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
50 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
51 inline CreateNodeRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
52 inline CreateNodeRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
53 inline CreateNodeRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
55
57
62 inline const Aws::String& GetNetworkId() const{ return m_networkId; }
63 inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
64 inline void SetNetworkId(const Aws::String& value) { m_networkIdHasBeenSet = true; m_networkId = value; }
65 inline void SetNetworkId(Aws::String&& value) { m_networkIdHasBeenSet = true; m_networkId = std::move(value); }
66 inline void SetNetworkId(const char* value) { m_networkIdHasBeenSet = true; m_networkId.assign(value); }
67 inline CreateNodeRequest& WithNetworkId(const Aws::String& value) { SetNetworkId(value); return *this;}
68 inline CreateNodeRequest& WithNetworkId(Aws::String&& value) { SetNetworkId(std::move(value)); return *this;}
69 inline CreateNodeRequest& WithNetworkId(const char* value) { SetNetworkId(value); return *this;}
71
73
77 inline const Aws::String& GetMemberId() const{ return m_memberId; }
78 inline bool MemberIdHasBeenSet() const { return m_memberIdHasBeenSet; }
79 inline void SetMemberId(const Aws::String& value) { m_memberIdHasBeenSet = true; m_memberId = value; }
80 inline void SetMemberId(Aws::String&& value) { m_memberIdHasBeenSet = true; m_memberId = std::move(value); }
81 inline void SetMemberId(const char* value) { m_memberIdHasBeenSet = true; m_memberId.assign(value); }
82 inline CreateNodeRequest& WithMemberId(const Aws::String& value) { SetMemberId(value); return *this;}
83 inline CreateNodeRequest& WithMemberId(Aws::String&& value) { SetMemberId(std::move(value)); return *this;}
84 inline CreateNodeRequest& WithMemberId(const char* value) { SetMemberId(value); return *this;}
86
88
91 inline const NodeConfiguration& GetNodeConfiguration() const{ return m_nodeConfiguration; }
92 inline bool NodeConfigurationHasBeenSet() const { return m_nodeConfigurationHasBeenSet; }
93 inline void SetNodeConfiguration(const NodeConfiguration& value) { m_nodeConfigurationHasBeenSet = true; m_nodeConfiguration = value; }
94 inline void SetNodeConfiguration(NodeConfiguration&& value) { m_nodeConfigurationHasBeenSet = true; m_nodeConfiguration = std::move(value); }
96 inline CreateNodeRequest& WithNodeConfiguration(NodeConfiguration&& value) { SetNodeConfiguration(std::move(value)); return *this;}
98
100
112 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
113 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
114 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
115 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
116 inline CreateNodeRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
117 inline CreateNodeRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
118 inline CreateNodeRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
119 inline CreateNodeRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
120 inline CreateNodeRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
121 inline CreateNodeRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
122 inline CreateNodeRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
123 inline CreateNodeRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
124 inline CreateNodeRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
126 private:
127
128 Aws::String m_clientRequestToken;
129 bool m_clientRequestTokenHasBeenSet = false;
130
131 Aws::String m_networkId;
132 bool m_networkIdHasBeenSet = false;
133
134 Aws::String m_memberId;
135 bool m_memberIdHasBeenSet = false;
136
137 NodeConfiguration m_nodeConfiguration;
138 bool m_nodeConfigurationHasBeenSet = false;
139
141 bool m_tagsHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace ManagedBlockchain
146} // namespace Aws
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateNodeRequest & AddTags(Aws::String &&key, const char *value)
CreateNodeRequest & WithNetworkId(Aws::String &&value)
void SetClientRequestToken(const Aws::String &value)
CreateNodeRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateNodeRequest & AddTags(const char *key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateNodeRequest & WithClientRequestToken(Aws::String &&value)
CreateNodeRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetNodeConfiguration(const NodeConfiguration &value)
CreateNodeRequest & AddTags(const char *key, const char *value)
virtual const char * GetServiceRequestName() const override
AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override
CreateNodeRequest & WithMemberId(Aws::String &&value)
CreateNodeRequest & WithNodeConfiguration(const NodeConfiguration &value)
CreateNodeRequest & WithNetworkId(const Aws::String &value)
AWS_MANAGEDBLOCKCHAIN_API CreateNodeRequest()
void SetNodeConfiguration(NodeConfiguration &&value)
CreateNodeRequest & WithNetworkId(const char *value)
CreateNodeRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateNodeRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateNodeRequest & WithMemberId(const Aws::String &value)
const NodeConfiguration & GetNodeConfiguration() const
CreateNodeRequest & WithNodeConfiguration(NodeConfiguration &&value)
CreateNodeRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateNodeRequest & WithClientRequestToken(const char *value)
CreateNodeRequest & WithClientRequestToken(const Aws::String &value)
CreateNodeRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateNodeRequest & WithMemberId(const char *value)
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