AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VoteOnProposalRequest.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/VoteValue.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ManagedBlockchain
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_MANAGEDBLOCKCHAIN_API VoteOnProposalRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "VoteOnProposal"; }
32
33 AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetNetworkId() const{ return m_networkId; }
41 inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
42 inline void SetNetworkId(const Aws::String& value) { m_networkIdHasBeenSet = true; m_networkId = value; }
43 inline void SetNetworkId(Aws::String&& value) { m_networkIdHasBeenSet = true; m_networkId = std::move(value); }
44 inline void SetNetworkId(const char* value) { m_networkIdHasBeenSet = true; m_networkId.assign(value); }
45 inline VoteOnProposalRequest& WithNetworkId(const Aws::String& value) { SetNetworkId(value); return *this;}
46 inline VoteOnProposalRequest& WithNetworkId(Aws::String&& value) { SetNetworkId(std::move(value)); return *this;}
47 inline VoteOnProposalRequest& WithNetworkId(const char* value) { SetNetworkId(value); return *this;}
49
51
54 inline const Aws::String& GetProposalId() const{ return m_proposalId; }
55 inline bool ProposalIdHasBeenSet() const { return m_proposalIdHasBeenSet; }
56 inline void SetProposalId(const Aws::String& value) { m_proposalIdHasBeenSet = true; m_proposalId = value; }
57 inline void SetProposalId(Aws::String&& value) { m_proposalIdHasBeenSet = true; m_proposalId = std::move(value); }
58 inline void SetProposalId(const char* value) { m_proposalIdHasBeenSet = true; m_proposalId.assign(value); }
59 inline VoteOnProposalRequest& WithProposalId(const Aws::String& value) { SetProposalId(value); return *this;}
60 inline VoteOnProposalRequest& WithProposalId(Aws::String&& value) { SetProposalId(std::move(value)); return *this;}
61 inline VoteOnProposalRequest& WithProposalId(const char* value) { SetProposalId(value); return *this;}
63
65
68 inline const Aws::String& GetVoterMemberId() const{ return m_voterMemberId; }
69 inline bool VoterMemberIdHasBeenSet() const { return m_voterMemberIdHasBeenSet; }
70 inline void SetVoterMemberId(const Aws::String& value) { m_voterMemberIdHasBeenSet = true; m_voterMemberId = value; }
71 inline void SetVoterMemberId(Aws::String&& value) { m_voterMemberIdHasBeenSet = true; m_voterMemberId = std::move(value); }
72 inline void SetVoterMemberId(const char* value) { m_voterMemberIdHasBeenSet = true; m_voterMemberId.assign(value); }
73 inline VoteOnProposalRequest& WithVoterMemberId(const Aws::String& value) { SetVoterMemberId(value); return *this;}
74 inline VoteOnProposalRequest& WithVoterMemberId(Aws::String&& value) { SetVoterMemberId(std::move(value)); return *this;}
75 inline VoteOnProposalRequest& WithVoterMemberId(const char* value) { SetVoterMemberId(value); return *this;}
77
79
82 inline const VoteValue& GetVote() const{ return m_vote; }
83 inline bool VoteHasBeenSet() const { return m_voteHasBeenSet; }
84 inline void SetVote(const VoteValue& value) { m_voteHasBeenSet = true; m_vote = value; }
85 inline void SetVote(VoteValue&& value) { m_voteHasBeenSet = true; m_vote = std::move(value); }
86 inline VoteOnProposalRequest& WithVote(const VoteValue& value) { SetVote(value); return *this;}
87 inline VoteOnProposalRequest& WithVote(VoteValue&& value) { SetVote(std::move(value)); return *this;}
89 private:
90
91 Aws::String m_networkId;
92 bool m_networkIdHasBeenSet = false;
93
94 Aws::String m_proposalId;
95 bool m_proposalIdHasBeenSet = false;
96
97 Aws::String m_voterMemberId;
98 bool m_voterMemberIdHasBeenSet = false;
99
100 VoteValue m_vote;
101 bool m_voteHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace ManagedBlockchain
106} // namespace Aws
virtual const char * GetServiceRequestName() const override
VoteOnProposalRequest & WithNetworkId(const char *value)
VoteOnProposalRequest & WithProposalId(const char *value)
VoteOnProposalRequest & WithNetworkId(Aws::String &&value)
VoteOnProposalRequest & WithVote(VoteValue &&value)
VoteOnProposalRequest & WithNetworkId(const Aws::String &value)
VoteOnProposalRequest & WithVote(const VoteValue &value)
VoteOnProposalRequest & WithProposalId(const Aws::String &value)
AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override
VoteOnProposalRequest & WithVoterMemberId(Aws::String &&value)
VoteOnProposalRequest & WithVoterMemberId(const char *value)
VoteOnProposalRequest & WithVoterMemberId(const Aws::String &value)
VoteOnProposalRequest & WithProposalId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String