AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NetworkIdT = Aws::String>
43 void SetNetworkId(NetworkIdT&& value) { m_networkIdHasBeenSet = true; m_networkId = std::forward<NetworkIdT>(value); }
44 template<typename NetworkIdT = Aws::String>
45 VoteOnProposalRequest& WithNetworkId(NetworkIdT&& value) { SetNetworkId(std::forward<NetworkIdT>(value)); return *this;}
47
49
52 inline const Aws::String& GetProposalId() const { return m_proposalId; }
53 inline bool ProposalIdHasBeenSet() const { return m_proposalIdHasBeenSet; }
54 template<typename ProposalIdT = Aws::String>
55 void SetProposalId(ProposalIdT&& value) { m_proposalIdHasBeenSet = true; m_proposalId = std::forward<ProposalIdT>(value); }
56 template<typename ProposalIdT = Aws::String>
57 VoteOnProposalRequest& WithProposalId(ProposalIdT&& value) { SetProposalId(std::forward<ProposalIdT>(value)); return *this;}
59
61
64 inline const Aws::String& GetVoterMemberId() const { return m_voterMemberId; }
65 inline bool VoterMemberIdHasBeenSet() const { return m_voterMemberIdHasBeenSet; }
66 template<typename VoterMemberIdT = Aws::String>
67 void SetVoterMemberId(VoterMemberIdT&& value) { m_voterMemberIdHasBeenSet = true; m_voterMemberId = std::forward<VoterMemberIdT>(value); }
68 template<typename VoterMemberIdT = Aws::String>
69 VoteOnProposalRequest& WithVoterMemberId(VoterMemberIdT&& value) { SetVoterMemberId(std::forward<VoterMemberIdT>(value)); return *this;}
71
73
76 inline VoteValue GetVote() const { return m_vote; }
77 inline bool VoteHasBeenSet() const { return m_voteHasBeenSet; }
78 inline void SetVote(VoteValue value) { m_voteHasBeenSet = true; m_vote = value; }
79 inline VoteOnProposalRequest& WithVote(VoteValue value) { SetVote(value); return *this;}
81 private:
82
83 Aws::String m_networkId;
84 bool m_networkIdHasBeenSet = false;
85
86 Aws::String m_proposalId;
87 bool m_proposalIdHasBeenSet = false;
88
89 Aws::String m_voterMemberId;
90 bool m_voterMemberIdHasBeenSet = false;
91
93 bool m_voteHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace ManagedBlockchain
98} // 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