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
53 inline void SetProposalId(
const char* value) { m_proposalIdHasBeenSet =
true; m_proposalId.assign(value); }
67 inline void SetNetworkId(
const char* value) { m_networkIdHasBeenSet =
true; m_networkId.assign(value); }
81 inline void SetDescription(
const char* value) { m_descriptionHasBeenSet =
true; m_description.assign(value); }
108 inline void SetProposedByMemberId(
const char* value) { m_proposedByMemberIdHasBeenSet =
true; m_proposedByMemberId.assign(value); }
122 inline void SetProposedByMemberName(
const char* value) { m_proposedByMemberNameHasBeenSet =
true; m_proposedByMemberName.assign(value); }
192 inline void SetYesVoteCount(
int value) { m_yesVoteCountHasBeenSet =
true; m_yesVoteCount = value; }
203 inline void SetNoVoteCount(
int value) { m_noVoteCountHasBeenSet =
true; m_noVoteCount = value; }
240 inline Proposal&
AddTags(
const char* key,
Aws::String&& value) { m_tagsHasBeenSet =
true; m_tags.emplace(key, std::move(value));
return *
this; }
241 inline Proposal&
AddTags(
Aws::String&& key,
const char* value) { m_tagsHasBeenSet =
true; m_tags.emplace(std::move(key), value);
return *
this; }
242 inline Proposal&
AddTags(
const char* key,
const char* value) { m_tagsHasBeenSet =
true; m_tags.emplace(key, value);
return *
this; }
257 inline void SetArn(
const char* value) { m_arnHasBeenSet =
true; m_arn.assign(value); }
265 bool m_proposalIdHasBeenSet =
false;
268 bool m_networkIdHasBeenSet =
false;
271 bool m_descriptionHasBeenSet =
false;
274 bool m_actionsHasBeenSet =
false;
277 bool m_proposedByMemberIdHasBeenSet =
false;
280 bool m_proposedByMemberNameHasBeenSet =
false;
283 bool m_statusHasBeenSet =
false;
286 bool m_creationDateHasBeenSet =
false;
289 bool m_expirationDateHasBeenSet =
false;
292 bool m_yesVoteCountHasBeenSet =
false;
295 bool m_noVoteCountHasBeenSet =
false;
297 int m_outstandingVoteCount;
298 bool m_outstandingVoteCountHasBeenSet =
false;
301 bool m_tagsHasBeenSet =
false;
304 bool m_arnHasBeenSet =
false;
const Aws::String & GetProposalId() const
Proposal & AddTags(const char *key, Aws::String &&value)
Proposal & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Proposal & AddTags(const Aws::String &key, const Aws::String &value)
void SetProposedByMemberId(Aws::String &&value)
Proposal & WithNetworkId(const Aws::String &value)
Proposal & WithNoVoteCount(int value)
void SetActions(const ProposalActions &value)
Proposal & WithCreationDate(const Aws::Utils::DateTime &value)
const Aws::String & GetDescription() const
Proposal & WithNetworkId(const char *value)
Proposal & WithCreationDate(Aws::Utils::DateTime &&value)
Proposal & WithExpirationDate(const Aws::Utils::DateTime &value)
const Aws::String & GetNetworkId() const
Proposal & WithExpirationDate(Aws::Utils::DateTime &&value)
void SetNetworkId(const Aws::String &value)
Proposal & AddTags(const Aws::String &key, Aws::String &&value)
int GetNoVoteCount() const
void SetExpirationDate(const Aws::Utils::DateTime &value)
Proposal & WithProposalId(Aws::String &&value)
void SetProposedByMemberName(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Proposal & WithProposedByMemberName(const Aws::String &value)
Proposal & WithDescription(const char *value)
Proposal & WithProposalId(const Aws::String &value)
int GetYesVoteCount() const
void SetExpirationDate(Aws::Utils::DateTime &&value)
const Aws::String & GetProposedByMemberName() const
void SetArn(Aws::String &&value)
int GetOutstandingVoteCount() const
void SetCreationDate(const Aws::Utils::DateTime &value)
void SetArn(const Aws::String &value)
void SetProposedByMemberName(const Aws::String &value)
Proposal & AddTags(Aws::String &&key, const Aws::String &value)
void SetNoVoteCount(int value)
bool ProposalIdHasBeenSet() const
Proposal & WithYesVoteCount(int value)
Proposal & WithStatus(const ProposalStatus &value)
const ProposalStatus & GetStatus() const
Proposal & WithArn(Aws::String &&value)
const Aws::String & GetProposedByMemberId() const
bool StatusHasBeenSet() const
bool NoVoteCountHasBeenSet() const
Proposal & AddTags(const char *key, const char *value)
Proposal & WithStatus(ProposalStatus &&value)
bool TagsHasBeenSet() const
const Aws::Utils::DateTime & GetCreationDate() const
bool ArnHasBeenSet() const
const Aws::String & GetArn() const
void SetArn(const char *value)
void SetProposalId(Aws::String &&value)
void SetNetworkId(Aws::String &&value)
const ProposalActions & GetActions() const
bool DescriptionHasBeenSet() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Proposal & WithArn(const Aws::String &value)
Proposal & WithActions(const ProposalActions &value)
void SetYesVoteCount(int value)
Proposal & AddTags(Aws::String &&key, const char *value)
void SetProposedByMemberId(const char *value)
bool ActionsHasBeenSet() const
AWS_MANAGEDBLOCKCHAIN_API Proposal(Aws::Utils::Json::JsonView jsonValue)
void SetProposalId(const Aws::String &value)
Proposal & WithProposalId(const char *value)
Proposal & WithProposedByMemberName(Aws::String &&value)
void SetProposedByMemberId(const Aws::String &value)
void SetNetworkId(const char *value)
bool OutstandingVoteCountHasBeenSet() const
void SetActions(ProposalActions &&value)
Proposal & WithProposedByMemberName(const char *value)
void SetStatus(ProposalStatus &&value)
Proposal & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
bool CreationDateHasBeenSet() const
bool ExpirationDateHasBeenSet() const
const Aws::Utils::DateTime & GetExpirationDate() const
Proposal & WithOutstandingVoteCount(int value)
void SetDescription(Aws::String &&value)
Proposal & WithProposedByMemberId(const Aws::String &value)
AWS_MANAGEDBLOCKCHAIN_API Proposal & operator=(Aws::Utils::Json::JsonView jsonValue)
Proposal & WithProposedByMemberId(Aws::String &&value)
AWS_MANAGEDBLOCKCHAIN_API Proposal()
bool ProposedByMemberNameHasBeenSet() const
void SetCreationDate(Aws::Utils::DateTime &&value)
void SetDescription(const Aws::String &value)
bool ProposedByMemberIdHasBeenSet() const
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDescription(const char *value)
Proposal & WithActions(ProposalActions &&value)
void SetProposedByMemberName(Aws::String &&value)
Proposal & AddTags(Aws::String &&key, Aws::String &&value)
bool NetworkIdHasBeenSet() const
Proposal & WithNetworkId(Aws::String &&value)
Proposal & WithDescription(Aws::String &&value)
void SetProposalId(const char *value)
Proposal & WithArn(const char *value)
void SetStatus(const ProposalStatus &value)
void SetOutstandingVoteCount(int value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Proposal & WithDescription(const Aws::String &value)
Proposal & WithProposedByMemberId(const char *value)
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