AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
VoteOnProposalRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/managedblockchain/ManagedBlockchainRequest.h>
9#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
10#include <aws/managedblockchain/model/VoteValue.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ManagedBlockchain {
16namespace Model {
17
21 public:
22 AWS_MANAGEDBLOCKCHAIN_API VoteOnProposalRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "VoteOnProposal"; }
29
30 AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetNetworkId() const { return m_networkId; }
37 inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
38 template <typename NetworkIdT = Aws::String>
39 void SetNetworkId(NetworkIdT&& value) {
40 m_networkIdHasBeenSet = true;
41 m_networkId = std::forward<NetworkIdT>(value);
42 }
43 template <typename NetworkIdT = Aws::String>
44 VoteOnProposalRequest& WithNetworkId(NetworkIdT&& value) {
45 SetNetworkId(std::forward<NetworkIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetProposalId() const { return m_proposalId; }
55 inline bool ProposalIdHasBeenSet() const { return m_proposalIdHasBeenSet; }
56 template <typename ProposalIdT = Aws::String>
57 void SetProposalId(ProposalIdT&& value) {
58 m_proposalIdHasBeenSet = true;
59 m_proposalId = std::forward<ProposalIdT>(value);
60 }
61 template <typename ProposalIdT = Aws::String>
62 VoteOnProposalRequest& WithProposalId(ProposalIdT&& value) {
63 SetProposalId(std::forward<ProposalIdT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetVoterMemberId() const { return m_voterMemberId; }
73 inline bool VoterMemberIdHasBeenSet() const { return m_voterMemberIdHasBeenSet; }
74 template <typename VoterMemberIdT = Aws::String>
75 void SetVoterMemberId(VoterMemberIdT&& value) {
76 m_voterMemberIdHasBeenSet = true;
77 m_voterMemberId = std::forward<VoterMemberIdT>(value);
78 }
79 template <typename VoterMemberIdT = Aws::String>
80 VoteOnProposalRequest& WithVoterMemberId(VoterMemberIdT&& value) {
81 SetVoterMemberId(std::forward<VoterMemberIdT>(value));
82 return *this;
83 }
85
87
90 inline VoteValue GetVote() const { return m_vote; }
91 inline bool VoteHasBeenSet() const { return m_voteHasBeenSet; }
92 inline void SetVote(VoteValue value) {
93 m_voteHasBeenSet = true;
94 m_vote = value;
95 }
97 SetVote(value);
98 return *this;
99 }
101 private:
102 Aws::String m_networkId;
103
104 Aws::String m_proposalId;
105
106 Aws::String m_voterMemberId;
107
109 bool m_networkIdHasBeenSet = false;
110 bool m_proposalIdHasBeenSet = false;
111 bool m_voterMemberIdHasBeenSet = false;
112 bool m_voteHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace ManagedBlockchain
117} // namespace Aws
virtual const char * GetServiceRequestName() const override
VoteOnProposalRequest & WithProposalId(ProposalIdT &&value)
AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override
AWS_MANAGEDBLOCKCHAIN_API VoteOnProposalRequest()=default
VoteOnProposalRequest & WithVoterMemberId(VoterMemberIdT &&value)
VoteOnProposalRequest & WithNetworkId(NetworkIdT &&value)
VoteOnProposalRequest & WithVote(VoteValue value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String