AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Proposal.h
1
6#pragma once
7#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/managedblockchain/model/ProposalActions.h>
10#include <aws/managedblockchain/model/ProposalStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ManagedBlockchain
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_MANAGEDBLOCKCHAIN_API Proposal() = default;
40 AWS_MANAGEDBLOCKCHAIN_API Proposal(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MANAGEDBLOCKCHAIN_API Proposal& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetProposalId() const { return m_proposalId; }
50 inline bool ProposalIdHasBeenSet() const { return m_proposalIdHasBeenSet; }
51 template<typename ProposalIdT = Aws::String>
52 void SetProposalId(ProposalIdT&& value) { m_proposalIdHasBeenSet = true; m_proposalId = std::forward<ProposalIdT>(value); }
53 template<typename ProposalIdT = Aws::String>
54 Proposal& WithProposalId(ProposalIdT&& value) { SetProposalId(std::forward<ProposalIdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetNetworkId() const { return m_networkId; }
62 inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
63 template<typename NetworkIdT = Aws::String>
64 void SetNetworkId(NetworkIdT&& value) { m_networkIdHasBeenSet = true; m_networkId = std::forward<NetworkIdT>(value); }
65 template<typename NetworkIdT = Aws::String>
66 Proposal& WithNetworkId(NetworkIdT&& value) { SetNetworkId(std::forward<NetworkIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template<typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
77 template<typename DescriptionT = Aws::String>
78 Proposal& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
80
82
86 inline const ProposalActions& GetActions() const { return m_actions; }
87 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
88 template<typename ActionsT = ProposalActions>
89 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
90 template<typename ActionsT = ProposalActions>
91 Proposal& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
93
95
98 inline const Aws::String& GetProposedByMemberId() const { return m_proposedByMemberId; }
99 inline bool ProposedByMemberIdHasBeenSet() const { return m_proposedByMemberIdHasBeenSet; }
100 template<typename ProposedByMemberIdT = Aws::String>
101 void SetProposedByMemberId(ProposedByMemberIdT&& value) { m_proposedByMemberIdHasBeenSet = true; m_proposedByMemberId = std::forward<ProposedByMemberIdT>(value); }
102 template<typename ProposedByMemberIdT = Aws::String>
103 Proposal& WithProposedByMemberId(ProposedByMemberIdT&& value) { SetProposedByMemberId(std::forward<ProposedByMemberIdT>(value)); return *this;}
105
107
110 inline const Aws::String& GetProposedByMemberName() const { return m_proposedByMemberName; }
111 inline bool ProposedByMemberNameHasBeenSet() const { return m_proposedByMemberNameHasBeenSet; }
112 template<typename ProposedByMemberNameT = Aws::String>
113 void SetProposedByMemberName(ProposedByMemberNameT&& value) { m_proposedByMemberNameHasBeenSet = true; m_proposedByMemberName = std::forward<ProposedByMemberNameT>(value); }
114 template<typename ProposedByMemberNameT = Aws::String>
115 Proposal& WithProposedByMemberName(ProposedByMemberNameT&& value) { SetProposedByMemberName(std::forward<ProposedByMemberNameT>(value)); return *this;}
117
119
138 inline ProposalStatus GetStatus() const { return m_status; }
139 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
140 inline void SetStatus(ProposalStatus value) { m_statusHasBeenSet = true; m_status = value; }
141 inline Proposal& WithStatus(ProposalStatus value) { SetStatus(value); return *this;}
143
145
148 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
149 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
150 template<typename CreationDateT = Aws::Utils::DateTime>
151 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
152 template<typename CreationDateT = Aws::Utils::DateTime>
153 Proposal& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
155
157
165 inline const Aws::Utils::DateTime& GetExpirationDate() const { return m_expirationDate; }
166 inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
167 template<typename ExpirationDateT = Aws::Utils::DateTime>
168 void SetExpirationDate(ExpirationDateT&& value) { m_expirationDateHasBeenSet = true; m_expirationDate = std::forward<ExpirationDateT>(value); }
169 template<typename ExpirationDateT = Aws::Utils::DateTime>
170 Proposal& WithExpirationDate(ExpirationDateT&& value) { SetExpirationDate(std::forward<ExpirationDateT>(value)); return *this;}
172
174
178 inline int GetYesVoteCount() const { return m_yesVoteCount; }
179 inline bool YesVoteCountHasBeenSet() const { return m_yesVoteCountHasBeenSet; }
180 inline void SetYesVoteCount(int value) { m_yesVoteCountHasBeenSet = true; m_yesVoteCount = value; }
181 inline Proposal& WithYesVoteCount(int value) { SetYesVoteCount(value); return *this;}
183
185
189 inline int GetNoVoteCount() const { return m_noVoteCount; }
190 inline bool NoVoteCountHasBeenSet() const { return m_noVoteCountHasBeenSet; }
191 inline void SetNoVoteCount(int value) { m_noVoteCountHasBeenSet = true; m_noVoteCount = value; }
192 inline Proposal& WithNoVoteCount(int value) { SetNoVoteCount(value); return *this;}
194
196
201 inline int GetOutstandingVoteCount() const { return m_outstandingVoteCount; }
202 inline bool OutstandingVoteCountHasBeenSet() const { return m_outstandingVoteCountHasBeenSet; }
203 inline void SetOutstandingVoteCount(int value) { m_outstandingVoteCountHasBeenSet = true; m_outstandingVoteCount = value; }
204 inline Proposal& WithOutstandingVoteCount(int value) { SetOutstandingVoteCount(value); return *this;}
206
208
218 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
219 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
220 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
221 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
222 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
223 Proposal& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
224 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
225 Proposal& AddTags(TagsKeyT&& key, TagsValueT&& value) {
226 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
227 }
229
231
238 inline const Aws::String& GetArn() const { return m_arn; }
239 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
240 template<typename ArnT = Aws::String>
241 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
242 template<typename ArnT = Aws::String>
243 Proposal& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
245 private:
246
247 Aws::String m_proposalId;
248 bool m_proposalIdHasBeenSet = false;
249
250 Aws::String m_networkId;
251 bool m_networkIdHasBeenSet = false;
252
253 Aws::String m_description;
254 bool m_descriptionHasBeenSet = false;
255
256 ProposalActions m_actions;
257 bool m_actionsHasBeenSet = false;
258
259 Aws::String m_proposedByMemberId;
260 bool m_proposedByMemberIdHasBeenSet = false;
261
262 Aws::String m_proposedByMemberName;
263 bool m_proposedByMemberNameHasBeenSet = false;
264
266 bool m_statusHasBeenSet = false;
267
268 Aws::Utils::DateTime m_creationDate{};
269 bool m_creationDateHasBeenSet = false;
270
271 Aws::Utils::DateTime m_expirationDate{};
272 bool m_expirationDateHasBeenSet = false;
273
274 int m_yesVoteCount{0};
275 bool m_yesVoteCountHasBeenSet = false;
276
277 int m_noVoteCount{0};
278 bool m_noVoteCountHasBeenSet = false;
279
280 int m_outstandingVoteCount{0};
281 bool m_outstandingVoteCountHasBeenSet = false;
282
284 bool m_tagsHasBeenSet = false;
285
286 Aws::String m_arn;
287 bool m_arnHasBeenSet = false;
288 };
289
290} // namespace Model
291} // namespace ManagedBlockchain
292} // namespace Aws
const Aws::String & GetProposalId() const
Definition Proposal.h:49
Proposal & WithNoVoteCount(int value)
Definition Proposal.h:192
const Aws::String & GetDescription() const
Definition Proposal.h:73
const Aws::String & GetNetworkId() const
Definition Proposal.h:61
void SetCreationDate(CreationDateT &&value)
Definition Proposal.h:151
Proposal & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Proposal.h:225
const Aws::String & GetProposedByMemberName() const
Definition Proposal.h:110
void SetExpirationDate(ExpirationDateT &&value)
Definition Proposal.h:168
Proposal & WithCreationDate(CreationDateT &&value)
Definition Proposal.h:153
Proposal & WithYesVoteCount(int value)
Definition Proposal.h:181
Proposal & WithArn(ArnT &&value)
Definition Proposal.h:243
Proposal & WithProposedByMemberId(ProposedByMemberIdT &&value)
Definition Proposal.h:103
const Aws::String & GetProposedByMemberId() const
Definition Proposal.h:98
void SetActions(ActionsT &&value)
Definition Proposal.h:89
const Aws::Utils::DateTime & GetCreationDate() const
Definition Proposal.h:148
const Aws::String & GetArn() const
Definition Proposal.h:238
ProposalStatus GetStatus() const
Definition Proposal.h:138
void SetDescription(DescriptionT &&value)
Definition Proposal.h:76
const ProposalActions & GetActions() const
Definition Proposal.h:86
Proposal & WithProposalId(ProposalIdT &&value)
Definition Proposal.h:54
AWS_MANAGEDBLOCKCHAIN_API Proposal(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDBLOCKCHAIN_API Proposal()=default
Proposal & WithTags(TagsT &&value)
Definition Proposal.h:223
void SetProposalId(ProposalIdT &&value)
Definition Proposal.h:52
Proposal & WithStatus(ProposalStatus value)
Definition Proposal.h:141
Proposal & WithNetworkId(NetworkIdT &&value)
Definition Proposal.h:66
void SetProposedByMemberName(ProposedByMemberNameT &&value)
Definition Proposal.h:113
Proposal & WithActions(ActionsT &&value)
Definition Proposal.h:91
void SetNetworkId(NetworkIdT &&value)
Definition Proposal.h:64
const Aws::Utils::DateTime & GetExpirationDate() const
Definition Proposal.h:165
Proposal & WithOutstandingVoteCount(int value)
Definition Proposal.h:204
AWS_MANAGEDBLOCKCHAIN_API Proposal & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetProposedByMemberId(ProposedByMemberIdT &&value)
Definition Proposal.h:101
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(ProposalStatus value)
Definition Proposal.h:140
Proposal & WithExpirationDate(ExpirationDateT &&value)
Definition Proposal.h:170
Proposal & WithProposedByMemberName(ProposedByMemberNameT &&value)
Definition Proposal.h:115
Proposal & WithDescription(DescriptionT &&value)
Definition Proposal.h:78
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Proposal.h:218
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
Aws::Utils::Json::JsonValue JsonValue