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>
25namespace ManagedBlockchain
39 AWS_MANAGEDBLOCKCHAIN_API
Proposal() =
default;
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>
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>
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>
88 template<
typename ActionsT = ProposalActions>
89 void SetActions(ActionsT&& value) { m_actionsHasBeenSet =
true; m_actions = std::forward<ActionsT>(value); }
90 template<
typename ActionsT = ProposalActions>
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>
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>
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>
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>
180 inline void SetYesVoteCount(
int value) { m_yesVoteCountHasBeenSet =
true; m_yesVoteCount = value; }
191 inline void SetNoVoteCount(
int value) { m_noVoteCountHasBeenSet =
true; m_noVoteCount = value; }
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>>
224 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
226 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
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>
248 bool m_proposalIdHasBeenSet =
false;
251 bool m_networkIdHasBeenSet =
false;
254 bool m_descriptionHasBeenSet =
false;
257 bool m_actionsHasBeenSet =
false;
260 bool m_proposedByMemberIdHasBeenSet =
false;
263 bool m_proposedByMemberNameHasBeenSet =
false;
266 bool m_statusHasBeenSet =
false;
269 bool m_creationDateHasBeenSet =
false;
272 bool m_expirationDateHasBeenSet =
false;
274 int m_yesVoteCount{0};
275 bool m_yesVoteCountHasBeenSet =
false;
277 int m_noVoteCount{0};
278 bool m_noVoteCountHasBeenSet =
false;
280 int m_outstandingVoteCount{0};
281 bool m_outstandingVoteCountHasBeenSet =
false;
284 bool m_tagsHasBeenSet =
false;
287 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