7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
11#include <aws/managedblockchain/model/ProposalActions.h>
12#include <aws/managedblockchain/model/ProposalStatus.h>
23namespace ManagedBlockchain {
34 AWS_MANAGEDBLOCKCHAIN_API
Proposal() =
default;
45 template <
typename ProposalIdT = Aws::String>
47 m_proposalIdHasBeenSet =
true;
48 m_proposalId = std::forward<ProposalIdT>(value);
50 template <
typename ProposalIdT = Aws::String>
63 template <
typename NetworkIdT = Aws::String>
65 m_networkIdHasBeenSet =
true;
66 m_networkId = std::forward<NetworkIdT>(value);
68 template <
typename NetworkIdT = Aws::String>
81 template <
typename DescriptionT = Aws::String>
83 m_descriptionHasBeenSet =
true;
84 m_description = std::forward<DescriptionT>(value);
86 template <
typename DescriptionT = Aws::String>
100 template <
typename ActionsT = ProposalActions>
102 m_actionsHasBeenSet =
true;
103 m_actions = std::forward<ActionsT>(value);
105 template <
typename ActionsT = ProposalActions>
118 template <
typename ProposedByMemberIdT = Aws::String>
120 m_proposedByMemberIdHasBeenSet =
true;
121 m_proposedByMemberId = std::forward<ProposedByMemberIdT>(value);
123 template <
typename ProposedByMemberIdT = Aws::String>
136 template <
typename ProposedByMemberNameT = Aws::String>
138 m_proposedByMemberNameHasBeenSet =
true;
139 m_proposedByMemberName = std::forward<ProposedByMemberNameT>(value);
141 template <
typename ProposedByMemberNameT = Aws::String>
171 m_statusHasBeenSet =
true;
186 template <
typename CreationDateT = Aws::Utils::DateTime>
188 m_creationDateHasBeenSet =
true;
189 m_creationDate = std::forward<CreationDateT>(value);
191 template <
typename CreationDateT = Aws::Utils::DateTime>
209 template <
typename ExpirationDateT = Aws::Utils::DateTime>
211 m_expirationDateHasBeenSet =
true;
212 m_expirationDate = std::forward<ExpirationDateT>(value);
214 template <
typename ExpirationDateT = Aws::Utils::DateTime>
229 m_yesVoteCountHasBeenSet =
true;
230 m_yesVoteCount = value;
246 m_noVoteCountHasBeenSet =
true;
247 m_noVoteCount = value;
264 m_outstandingVoteCountHasBeenSet =
true;
265 m_outstandingVoteCount = value;
286 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
288 m_tagsHasBeenSet =
true;
289 m_tags = std::forward<TagsT>(value);
291 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
293 SetTags(std::forward<TagsT>(value));
296 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
298 m_tagsHasBeenSet =
true;
299 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
314 template <
typename ArnT = Aws::String>
316 m_arnHasBeenSet =
true;
317 m_arn = std::forward<ArnT>(value);
319 template <
typename ArnT = Aws::String>
321 SetArn(std::forward<ArnT>(value));
344 int m_yesVoteCount{0};
346 int m_noVoteCount{0};
348 int m_outstandingVoteCount{0};
353 bool m_proposalIdHasBeenSet =
false;
354 bool m_networkIdHasBeenSet =
false;
355 bool m_descriptionHasBeenSet =
false;
356 bool m_actionsHasBeenSet =
false;
357 bool m_proposedByMemberIdHasBeenSet =
false;
358 bool m_proposedByMemberNameHasBeenSet =
false;
359 bool m_statusHasBeenSet =
false;
360 bool m_creationDateHasBeenSet =
false;
361 bool m_expirationDateHasBeenSet =
false;
362 bool m_yesVoteCountHasBeenSet =
false;
363 bool m_noVoteCountHasBeenSet =
false;
364 bool m_outstandingVoteCountHasBeenSet =
false;
365 bool m_tagsHasBeenSet =
false;
366 bool m_arnHasBeenSet =
false;
const Aws::String & GetProposalId() const
Proposal & WithNoVoteCount(int value)
const Aws::String & GetDescription() const
const Aws::String & GetNetworkId() const
int GetNoVoteCount() const
void SetCreationDate(CreationDateT &&value)
int GetYesVoteCount() const
Proposal & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetProposedByMemberName() const
int GetOutstandingVoteCount() const
void SetExpirationDate(ExpirationDateT &&value)
void SetTags(TagsT &&value)
Proposal & WithCreationDate(CreationDateT &&value)
void SetNoVoteCount(int value)
bool ProposalIdHasBeenSet() const
Proposal & WithYesVoteCount(int value)
Proposal & WithArn(ArnT &&value)
Proposal & WithProposedByMemberId(ProposedByMemberIdT &&value)
const Aws::String & GetProposedByMemberId() const
bool StatusHasBeenSet() const
bool NoVoteCountHasBeenSet() const
void SetActions(ActionsT &&value)
bool TagsHasBeenSet() const
const Aws::Utils::DateTime & GetCreationDate() const
bool ArnHasBeenSet() const
const Aws::String & GetArn() const
ProposalStatus GetStatus() const
void SetDescription(DescriptionT &&value)
const ProposalActions & GetActions() const
bool DescriptionHasBeenSet() const
void SetYesVoteCount(int value)
Proposal & WithProposalId(ProposalIdT &&value)
bool ActionsHasBeenSet() const
AWS_MANAGEDBLOCKCHAIN_API Proposal(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDBLOCKCHAIN_API Proposal()=default
Proposal & WithTags(TagsT &&value)
void SetProposalId(ProposalIdT &&value)
bool OutstandingVoteCountHasBeenSet() const
Proposal & WithStatus(ProposalStatus value)
Proposal & WithNetworkId(NetworkIdT &&value)
void SetProposedByMemberName(ProposedByMemberNameT &&value)
bool CreationDateHasBeenSet() const
Proposal & WithActions(ActionsT &&value)
bool ExpirationDateHasBeenSet() const
void SetNetworkId(NetworkIdT &&value)
void SetArn(ArnT &&value)
const Aws::Utils::DateTime & GetExpirationDate() const
Proposal & WithOutstandingVoteCount(int value)
AWS_MANAGEDBLOCKCHAIN_API Proposal & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetProposedByMemberId(ProposedByMemberIdT &&value)
bool ProposedByMemberNameHasBeenSet() const
bool ProposedByMemberIdHasBeenSet() const
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(ProposalStatus value)
Proposal & WithExpirationDate(ExpirationDateT &&value)
Proposal & WithProposedByMemberName(ProposedByMemberNameT &&value)
bool NetworkIdHasBeenSet() const
Proposal & WithDescription(DescriptionT &&value)
void SetOutstandingVoteCount(int value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool YesVoteCountHasBeenSet() const
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