AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateProposalRequest.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/ProposalActions.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace ManagedBlockchain
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_MANAGEDBLOCKCHAIN_API CreateProposalRequest() = default;
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_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override;
36
37
39
46 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
47 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
48 template<typename ClientRequestTokenT = Aws::String>
49 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
50 template<typename ClientRequestTokenT = Aws::String>
51 CreateProposalRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
53
55
58 inline const Aws::String& GetNetworkId() const { return m_networkId; }
59 inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
60 template<typename NetworkIdT = Aws::String>
61 void SetNetworkId(NetworkIdT&& value) { m_networkIdHasBeenSet = true; m_networkId = std::forward<NetworkIdT>(value); }
62 template<typename NetworkIdT = Aws::String>
63 CreateProposalRequest& WithNetworkId(NetworkIdT&& value) { SetNetworkId(std::forward<NetworkIdT>(value)); return *this;}
65
67
72 inline const Aws::String& GetMemberId() const { return m_memberId; }
73 inline bool MemberIdHasBeenSet() const { return m_memberIdHasBeenSet; }
74 template<typename MemberIdT = Aws::String>
75 void SetMemberId(MemberIdT&& value) { m_memberIdHasBeenSet = true; m_memberId = std::forward<MemberIdT>(value); }
76 template<typename MemberIdT = Aws::String>
77 CreateProposalRequest& WithMemberId(MemberIdT&& value) { SetMemberId(std::forward<MemberIdT>(value)); return *this;}
79
81
87 inline const ProposalActions& GetActions() const { return m_actions; }
88 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
89 template<typename ActionsT = ProposalActions>
90 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
91 template<typename ActionsT = ProposalActions>
92 CreateProposalRequest& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
94
96
100 inline const Aws::String& GetDescription() const { return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 template<typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
104 template<typename DescriptionT = Aws::String>
105 CreateProposalRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
107
109
121 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
122 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
123 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
124 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
125 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
126 CreateProposalRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
127 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
128 CreateProposalRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
129 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
130 }
132 private:
133
134 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
135 bool m_clientRequestTokenHasBeenSet = true;
136
137 Aws::String m_networkId;
138 bool m_networkIdHasBeenSet = false;
139
140 Aws::String m_memberId;
141 bool m_memberIdHasBeenSet = false;
142
143 ProposalActions m_actions;
144 bool m_actionsHasBeenSet = false;
145
146 Aws::String m_description;
147 bool m_descriptionHasBeenSet = false;
148
150 bool m_tagsHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace ManagedBlockchain
155} // namespace Aws
CreateProposalRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateProposalRequest & WithNetworkId(NetworkIdT &&value)
CreateProposalRequest & WithActions(ActionsT &&value)
AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateProposalRequest & WithClientRequestToken(ClientRequestTokenT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_MANAGEDBLOCKCHAIN_API CreateProposalRequest()=default
CreateProposalRequest & WithMemberId(MemberIdT &&value)
CreateProposalRequest & WithDescription(DescriptionT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String