AWS SDK for C++  1.9.129
AWS SDK for C++
CreateMemberRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 #include <aws/core/utils/UUID.h>
13 
14 namespace Aws
15 {
16 namespace ManagedBlockchain
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateMember"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
44  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
45 
53  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
54 
62  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
63 
71  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
72 
80  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
81 
89  inline CreateMemberRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
90 
98  inline CreateMemberRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
99 
107  inline CreateMemberRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
108 
109 
114  inline const Aws::String& GetInvitationId() const{ return m_invitationId; }
115 
120  inline bool InvitationIdHasBeenSet() const { return m_invitationIdHasBeenSet; }
121 
126  inline void SetInvitationId(const Aws::String& value) { m_invitationIdHasBeenSet = true; m_invitationId = value; }
127 
132  inline void SetInvitationId(Aws::String&& value) { m_invitationIdHasBeenSet = true; m_invitationId = std::move(value); }
133 
138  inline void SetInvitationId(const char* value) { m_invitationIdHasBeenSet = true; m_invitationId.assign(value); }
139 
144  inline CreateMemberRequest& WithInvitationId(const Aws::String& value) { SetInvitationId(value); return *this;}
145 
150  inline CreateMemberRequest& WithInvitationId(Aws::String&& value) { SetInvitationId(std::move(value)); return *this;}
151 
156  inline CreateMemberRequest& WithInvitationId(const char* value) { SetInvitationId(value); return *this;}
157 
158 
162  inline const Aws::String& GetNetworkId() const{ return m_networkId; }
163 
167  inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
168 
172  inline void SetNetworkId(const Aws::String& value) { m_networkIdHasBeenSet = true; m_networkId = value; }
173 
177  inline void SetNetworkId(Aws::String&& value) { m_networkIdHasBeenSet = true; m_networkId = std::move(value); }
178 
182  inline void SetNetworkId(const char* value) { m_networkIdHasBeenSet = true; m_networkId.assign(value); }
183 
187  inline CreateMemberRequest& WithNetworkId(const Aws::String& value) { SetNetworkId(value); return *this;}
188 
192  inline CreateMemberRequest& WithNetworkId(Aws::String&& value) { SetNetworkId(std::move(value)); return *this;}
193 
197  inline CreateMemberRequest& WithNetworkId(const char* value) { SetNetworkId(value); return *this;}
198 
199 
203  inline const MemberConfiguration& GetMemberConfiguration() const{ return m_memberConfiguration; }
204 
208  inline bool MemberConfigurationHasBeenSet() const { return m_memberConfigurationHasBeenSet; }
209 
213  inline void SetMemberConfiguration(const MemberConfiguration& value) { m_memberConfigurationHasBeenSet = true; m_memberConfiguration = value; }
214 
218  inline void SetMemberConfiguration(MemberConfiguration&& value) { m_memberConfigurationHasBeenSet = true; m_memberConfiguration = std::move(value); }
219 
223  inline CreateMemberRequest& WithMemberConfiguration(const MemberConfiguration& value) { SetMemberConfiguration(value); return *this;}
224 
228  inline CreateMemberRequest& WithMemberConfiguration(MemberConfiguration&& value) { SetMemberConfiguration(std::move(value)); return *this;}
229 
230  private:
231 
232  Aws::String m_clientRequestToken;
233  bool m_clientRequestTokenHasBeenSet;
234 
235  Aws::String m_invitationId;
236  bool m_invitationIdHasBeenSet;
237 
238  Aws::String m_networkId;
239  bool m_networkIdHasBeenSet;
240 
241  MemberConfiguration m_memberConfiguration;
242  bool m_memberConfigurationHasBeenSet;
243  };
244 
245 } // namespace Model
246 } // namespace ManagedBlockchain
247 } // namespace Aws
Aws::ManagedBlockchain::Model::MemberConfiguration
Definition: MemberConfiguration.h:36
Aws::ManagedBlockchain::Model::CreateMemberRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: CreateMemberRequest.h:53
Aws::ManagedBlockchain::Model::CreateMemberRequest::WithInvitationId
CreateMemberRequest & WithInvitationId(const char *value)
Definition: CreateMemberRequest.h:156
MemberConfiguration.h
Aws::ManagedBlockchain::Model::CreateMemberRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: CreateMemberRequest.h:62
Aws::ManagedBlockchain::Model::CreateMemberRequest::WithClientRequestToken
CreateMemberRequest & WithClientRequestToken(const char *value)
Definition: CreateMemberRequest.h:107
Aws::ManagedBlockchain::Model::CreateMemberRequest::NetworkIdHasBeenSet
bool NetworkIdHasBeenSet() const
Definition: CreateMemberRequest.h:167
Aws::ManagedBlockchain::Model::CreateMemberRequest::SetNetworkId
void SetNetworkId(Aws::String &&value)
Definition: CreateMemberRequest.h:177
Aws::ManagedBlockchain::Model::CreateMemberRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ManagedBlockchain::Model::CreateMemberRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: CreateMemberRequest.h:71
Aws::ManagedBlockchain::Model::CreateMemberRequest::WithClientRequestToken
CreateMemberRequest & WithClientRequestToken(Aws::String &&value)
Definition: CreateMemberRequest.h:98
Aws::ManagedBlockchain::Model::CreateMemberRequest::GetNetworkId
const Aws::String & GetNetworkId() const
Definition: CreateMemberRequest.h:162
Aws::ManagedBlockchain::Model::CreateMemberRequest::SetNetworkId
void SetNetworkId(const Aws::String &value)
Definition: CreateMemberRequest.h:172
Aws::ManagedBlockchain::Model::CreateMemberRequest::SetMemberConfiguration
void SetMemberConfiguration(const MemberConfiguration &value)
Definition: CreateMemberRequest.h:213
Aws::ManagedBlockchain::Model::CreateMemberRequest::CreateMemberRequest
CreateMemberRequest()
Aws::ManagedBlockchain::Model::CreateMemberRequest::WithMemberConfiguration
CreateMemberRequest & WithMemberConfiguration(MemberConfiguration &&value)
Definition: CreateMemberRequest.h:228
Aws::ManagedBlockchain::Model::CreateMemberRequest::WithInvitationId
CreateMemberRequest & WithInvitationId(Aws::String &&value)
Definition: CreateMemberRequest.h:150
Aws::ManagedBlockchain::Model::CreateMemberRequest::GetMemberConfiguration
const MemberConfiguration & GetMemberConfiguration() const
Definition: CreateMemberRequest.h:203
Aws::ManagedBlockchain::Model::CreateMemberRequest::MemberConfigurationHasBeenSet
bool MemberConfigurationHasBeenSet() const
Definition: CreateMemberRequest.h:208
Aws::ManagedBlockchain::Model::CreateMemberRequest::WithClientRequestToken
CreateMemberRequest & WithClientRequestToken(const Aws::String &value)
Definition: CreateMemberRequest.h:89
Aws::ManagedBlockchain::Model::CreateMemberRequest::SetMemberConfiguration
void SetMemberConfiguration(MemberConfiguration &&value)
Definition: CreateMemberRequest.h:218
AWSString.h
Aws::ManagedBlockchain::ManagedBlockchainRequest
Definition: ManagedBlockchainRequest.h:17
Aws::ManagedBlockchain::Model::CreateMemberRequest::WithNetworkId
CreateMemberRequest & WithNetworkId(Aws::String &&value)
Definition: CreateMemberRequest.h:192
Aws::ManagedBlockchain::Model::CreateMemberRequest::WithNetworkId
CreateMemberRequest & WithNetworkId(const Aws::String &value)
Definition: CreateMemberRequest.h:187
Aws::ManagedBlockchain::Model::CreateMemberRequest::SetInvitationId
void SetInvitationId(const Aws::String &value)
Definition: CreateMemberRequest.h:126
Aws::ManagedBlockchain::Model::CreateMemberRequest::SetInvitationId
void SetInvitationId(Aws::String &&value)
Definition: CreateMemberRequest.h:132
Aws::ManagedBlockchain::Model::CreateMemberRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateMemberRequest.h:32
ManagedBlockchainRequest.h
AWS_MANAGEDBLOCKCHAIN_API
#define AWS_MANAGEDBLOCKCHAIN_API
Definition: ManagedBlockchain_EXPORTS.h:28
Aws::ManagedBlockchain::Model::CreateMemberRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: CreateMemberRequest.h:80
Aws
Definition: AccessManagementClient.h:15
ManagedBlockchain_EXPORTS.h
Aws::ManagedBlockchain::Model::CreateMemberRequest::SetInvitationId
void SetInvitationId(const char *value)
Definition: CreateMemberRequest.h:138
Aws::ManagedBlockchain::Model::CreateMemberRequest::WithNetworkId
CreateMemberRequest & WithNetworkId(const char *value)
Definition: CreateMemberRequest.h:197
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ManagedBlockchain::Model::CreateMemberRequest::SetNetworkId
void SetNetworkId(const char *value)
Definition: CreateMemberRequest.h:182
Aws::ManagedBlockchain::Model::CreateMemberRequest
Definition: CreateMemberRequest.h:24
Aws::ManagedBlockchain::Model::CreateMemberRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: CreateMemberRequest.h:44
UUID.h
Aws::ManagedBlockchain::Model::CreateMemberRequest::GetInvitationId
const Aws::String & GetInvitationId() const
Definition: CreateMemberRequest.h:114
Aws::ManagedBlockchain::Model::CreateMemberRequest::InvitationIdHasBeenSet
bool InvitationIdHasBeenSet() const
Definition: CreateMemberRequest.h:120
Aws::ManagedBlockchain::Model::CreateMemberRequest::WithMemberConfiguration
CreateMemberRequest & WithMemberConfiguration(const MemberConfiguration &value)
Definition: CreateMemberRequest.h:223
Aws::ManagedBlockchain::Model::CreateMemberRequest::WithInvitationId
CreateMemberRequest & WithInvitationId(const Aws::String &value)
Definition: CreateMemberRequest.h:144