AWS SDK for C++  1.9.40
AWS SDK for C++
CreateProposalRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 #include <aws/core/utils/UUID.h>
14 
15 namespace Aws
16 {
17 namespace ManagedBlockchain
18 {
19 namespace Model
20 {
21 
25  {
26  public:
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 "CreateProposal"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
45  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
46 
54  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
55 
63  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
64 
72  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
73 
81  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
82 
90  inline CreateProposalRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
91 
99  inline CreateProposalRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
100 
108  inline CreateProposalRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
109 
110 
114  inline const Aws::String& GetNetworkId() const{ return m_networkId; }
115 
119  inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
120 
124  inline void SetNetworkId(const Aws::String& value) { m_networkIdHasBeenSet = true; m_networkId = value; }
125 
129  inline void SetNetworkId(Aws::String&& value) { m_networkIdHasBeenSet = true; m_networkId = std::move(value); }
130 
134  inline void SetNetworkId(const char* value) { m_networkIdHasBeenSet = true; m_networkId.assign(value); }
135 
139  inline CreateProposalRequest& WithNetworkId(const Aws::String& value) { SetNetworkId(value); return *this;}
140 
144  inline CreateProposalRequest& WithNetworkId(Aws::String&& value) { SetNetworkId(std::move(value)); return *this;}
145 
149  inline CreateProposalRequest& WithNetworkId(const char* value) { SetNetworkId(value); return *this;}
150 
151 
157  inline const Aws::String& GetMemberId() const{ return m_memberId; }
158 
164  inline bool MemberIdHasBeenSet() const { return m_memberIdHasBeenSet; }
165 
171  inline void SetMemberId(const Aws::String& value) { m_memberIdHasBeenSet = true; m_memberId = value; }
172 
178  inline void SetMemberId(Aws::String&& value) { m_memberIdHasBeenSet = true; m_memberId = std::move(value); }
179 
185  inline void SetMemberId(const char* value) { m_memberIdHasBeenSet = true; m_memberId.assign(value); }
186 
192  inline CreateProposalRequest& WithMemberId(const Aws::String& value) { SetMemberId(value); return *this;}
193 
199  inline CreateProposalRequest& WithMemberId(Aws::String&& value) { SetMemberId(std::move(value)); return *this;}
200 
206  inline CreateProposalRequest& WithMemberId(const char* value) { SetMemberId(value); return *this;}
207 
208 
215  inline const ProposalActions& GetActions() const{ return m_actions; }
216 
223  inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
224 
231  inline void SetActions(const ProposalActions& value) { m_actionsHasBeenSet = true; m_actions = value; }
232 
239  inline void SetActions(ProposalActions&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
240 
247  inline CreateProposalRequest& WithActions(const ProposalActions& value) { SetActions(value); return *this;}
248 
255  inline CreateProposalRequest& WithActions(ProposalActions&& value) { SetActions(std::move(value)); return *this;}
256 
257 
262  inline const Aws::String& GetDescription() const{ return m_description; }
263 
268  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
269 
274  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
275 
280  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
281 
286  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
287 
292  inline CreateProposalRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
293 
298  inline CreateProposalRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
299 
304  inline CreateProposalRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
305 
306 
321  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
322 
337  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
338 
353  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
354 
369  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
370 
385  inline CreateProposalRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
386 
401  inline CreateProposalRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
402 
417  inline CreateProposalRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
418 
433  inline CreateProposalRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
434 
449  inline CreateProposalRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
450 
465  inline CreateProposalRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
466 
481  inline CreateProposalRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
482 
497  inline CreateProposalRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
498 
513  inline CreateProposalRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
514 
515  private:
516 
517  Aws::String m_clientRequestToken;
518  bool m_clientRequestTokenHasBeenSet;
519 
520  Aws::String m_networkId;
521  bool m_networkIdHasBeenSet;
522 
523  Aws::String m_memberId;
524  bool m_memberIdHasBeenSet;
525 
526  ProposalActions m_actions;
527  bool m_actionsHasBeenSet;
528 
529  Aws::String m_description;
530  bool m_descriptionHasBeenSet;
531 
533  bool m_tagsHasBeenSet;
534  };
535 
536 } // namespace Model
537 } // namespace ManagedBlockchain
538 } // namespace Aws
Aws::ManagedBlockchain::Model::CreateProposalRequest::MemberIdHasBeenSet
bool MemberIdHasBeenSet() const
Definition: CreateProposalRequest.h:164
Aws::ManagedBlockchain::Model::CreateProposalRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateProposalRequest.h:268
Aws::ManagedBlockchain::Model::CreateProposalRequest::WithMemberId
CreateProposalRequest & WithMemberId(const char *value)
Definition: CreateProposalRequest.h:206
Aws::ManagedBlockchain::Model::CreateProposalRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateProposalRequest.h:262
Aws::ManagedBlockchain::Model::CreateProposalRequest::WithTags
CreateProposalRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateProposalRequest.h:385
Aws::ManagedBlockchain::Model::CreateProposalRequest::SetMemberId
void SetMemberId(Aws::String &&value)
Definition: CreateProposalRequest.h:178
Aws::ManagedBlockchain::Model::CreateProposalRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateProposalRequest.h:280
Aws::ManagedBlockchain::Model::CreateProposalRequest::WithClientRequestToken
CreateProposalRequest & WithClientRequestToken(const char *value)
Definition: CreateProposalRequest.h:108
Aws::ManagedBlockchain::Model::CreateProposalRequest::AddTags
CreateProposalRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateProposalRequest.h:497
Aws::ManagedBlockchain::Model::CreateProposalRequest::WithNetworkId
CreateProposalRequest & WithNetworkId(Aws::String &&value)
Definition: CreateProposalRequest.h:144
Aws::ManagedBlockchain::Model::CreateProposalRequest::GetMemberId
const Aws::String & GetMemberId() const
Definition: CreateProposalRequest.h:157
Aws::ManagedBlockchain::Model::CreateProposalRequest::AddTags
CreateProposalRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateProposalRequest.h:417
Aws::ManagedBlockchain::Model::CreateProposalRequest::AddTags
CreateProposalRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateProposalRequest.h:481
Aws::ManagedBlockchain::Model::CreateProposalRequest::AddTags
CreateProposalRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateProposalRequest.h:465
Aws::ManagedBlockchain::Model::CreateProposalRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: CreateProposalRequest.h:45
Aws::ManagedBlockchain::Model::CreateProposalRequest::WithDescription
CreateProposalRequest & WithDescription(const Aws::String &value)
Definition: CreateProposalRequest.h:292
Aws::ManagedBlockchain::Model::CreateProposalRequest::WithDescription
CreateProposalRequest & WithDescription(const char *value)
Definition: CreateProposalRequest.h:304
Aws::ManagedBlockchain::Model::CreateProposalRequest::SetActions
void SetActions(const ProposalActions &value)
Definition: CreateProposalRequest.h:231
Aws::ManagedBlockchain::Model::CreateProposalRequest::CreateProposalRequest
CreateProposalRequest()
Aws::ManagedBlockchain::Model::CreateProposalRequest::SetNetworkId
void SetNetworkId(const char *value)
Definition: CreateProposalRequest.h:134
Aws::ManagedBlockchain::Model::CreateProposalRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateProposalRequest.h:321
Aws::ManagedBlockchain::Model::CreateProposalRequest::WithNetworkId
CreateProposalRequest & WithNetworkId(const char *value)
Definition: CreateProposalRequest.h:149
Aws::ManagedBlockchain::Model::CreateProposalRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateProposalRequest.h:353
Aws::ManagedBlockchain::Model::CreateProposalRequest::GetActions
const ProposalActions & GetActions() const
Definition: CreateProposalRequest.h:215
Aws::ManagedBlockchain::Model::CreateProposalRequest::AddTags
CreateProposalRequest & AddTags(const char *key, const char *value)
Definition: CreateProposalRequest.h:513
Aws::ManagedBlockchain::Model::CreateProposalRequest::GetNetworkId
const Aws::String & GetNetworkId() const
Definition: CreateProposalRequest.h:114
Aws::ManagedBlockchain::Model::CreateProposalRequest::SetMemberId
void SetMemberId(const char *value)
Definition: CreateProposalRequest.h:185
Aws::ManagedBlockchain::Model::ProposalActions
Definition: ProposalActions.h:35
Aws::ManagedBlockchain::Model::CreateProposalRequest::NetworkIdHasBeenSet
bool NetworkIdHasBeenSet() const
Definition: CreateProposalRequest.h:119
Aws::ManagedBlockchain::Model::CreateProposalRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ManagedBlockchain::Model::CreateProposalRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: CreateProposalRequest.h:72
Aws::ManagedBlockchain::Model::CreateProposalRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateProposalRequest.h:369
AWSString.h
Aws::ManagedBlockchain::ManagedBlockchainRequest
Definition: ManagedBlockchainRequest.h:17
Aws::ManagedBlockchain::Model::CreateProposalRequest::SetMemberId
void SetMemberId(const Aws::String &value)
Definition: CreateProposalRequest.h:171
ProposalActions.h
Aws::ManagedBlockchain::Model::CreateProposalRequest::WithNetworkId
CreateProposalRequest & WithNetworkId(const Aws::String &value)
Definition: CreateProposalRequest.h:139
Aws::ManagedBlockchain::Model::CreateProposalRequest::WithMemberId
CreateProposalRequest & WithMemberId(const Aws::String &value)
Definition: CreateProposalRequest.h:192
Aws::ManagedBlockchain::Model::CreateProposalRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateProposalRequest.h:337
Aws::ManagedBlockchain::Model::CreateProposalRequest::WithDescription
CreateProposalRequest & WithDescription(Aws::String &&value)
Definition: CreateProposalRequest.h:298
Aws::ManagedBlockchain::Model::CreateProposalRequest::SetActions
void SetActions(ProposalActions &&value)
Definition: CreateProposalRequest.h:239
Aws::ManagedBlockchain::Model::CreateProposalRequest::AddTags
CreateProposalRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateProposalRequest.h:449
Aws::ManagedBlockchain::Model::CreateProposalRequest::SetNetworkId
void SetNetworkId(Aws::String &&value)
Definition: CreateProposalRequest.h:129
Aws::ManagedBlockchain::Model::CreateProposalRequest
Definition: CreateProposalRequest.h:25
Aws::ManagedBlockchain::Model::CreateProposalRequest::AddTags
CreateProposalRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateProposalRequest.h:433
ManagedBlockchainRequest.h
AWS_MANAGEDBLOCKCHAIN_API
#define AWS_MANAGEDBLOCKCHAIN_API
Definition: ManagedBlockchain_EXPORTS.h:28
Aws::ManagedBlockchain::Model::CreateProposalRequest::WithTags
CreateProposalRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateProposalRequest.h:401
Aws::ManagedBlockchain::Model::CreateProposalRequest::WithActions
CreateProposalRequest & WithActions(ProposalActions &&value)
Definition: CreateProposalRequest.h:255
Aws::ManagedBlockchain::Model::CreateProposalRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: CreateProposalRequest.h:54
Aws
Definition: AccessManagementClient.h:15
Aws::ManagedBlockchain::Model::CreateProposalRequest::WithActions
CreateProposalRequest & WithActions(const ProposalActions &value)
Definition: CreateProposalRequest.h:247
ManagedBlockchain_EXPORTS.h
Aws::ManagedBlockchain::Model::CreateProposalRequest::WithClientRequestToken
CreateProposalRequest & WithClientRequestToken(const Aws::String &value)
Definition: CreateProposalRequest.h:90
Aws::ManagedBlockchain::Model::CreateProposalRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateProposalRequest.h:274
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ManagedBlockchain::Model::CreateProposalRequest::ActionsHasBeenSet
bool ActionsHasBeenSet() const
Definition: CreateProposalRequest.h:223
Aws::ManagedBlockchain::Model::CreateProposalRequest::WithClientRequestToken
CreateProposalRequest & WithClientRequestToken(Aws::String &&value)
Definition: CreateProposalRequest.h:99
UUID.h
Aws::ManagedBlockchain::Model::CreateProposalRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateProposalRequest.h:286
AWSMap.h
Aws::ManagedBlockchain::Model::CreateProposalRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateProposalRequest.h:33
Aws::ManagedBlockchain::Model::CreateProposalRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: CreateProposalRequest.h:63
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::ManagedBlockchain::Model::CreateProposalRequest::SetNetworkId
void SetNetworkId(const Aws::String &value)
Definition: CreateProposalRequest.h:124
Aws::ManagedBlockchain::Model::CreateProposalRequest::WithMemberId
CreateProposalRequest & WithMemberId(Aws::String &&value)
Definition: CreateProposalRequest.h:199
Aws::ManagedBlockchain::Model::CreateProposalRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: CreateProposalRequest.h:81