/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Properties of a proposal on a Managed Blockchain network. Applies only
* to Hyperledger Fabric.See Also:
AWS
* API Reference
The unique identifier of the proposal.
*/ inline const Aws::String& GetProposalId() const{ return m_proposalId; } /** *The unique identifier of the proposal.
*/ inline bool ProposalIdHasBeenSet() const { return m_proposalIdHasBeenSet; } /** *The unique identifier of the proposal.
*/ inline void SetProposalId(const Aws::String& value) { m_proposalIdHasBeenSet = true; m_proposalId = value; } /** *The unique identifier of the proposal.
*/ inline void SetProposalId(Aws::String&& value) { m_proposalIdHasBeenSet = true; m_proposalId = std::move(value); } /** *The unique identifier of the proposal.
*/ inline void SetProposalId(const char* value) { m_proposalIdHasBeenSet = true; m_proposalId.assign(value); } /** *The unique identifier of the proposal.
*/ inline Proposal& WithProposalId(const Aws::String& value) { SetProposalId(value); return *this;} /** *The unique identifier of the proposal.
*/ inline Proposal& WithProposalId(Aws::String&& value) { SetProposalId(std::move(value)); return *this;} /** *The unique identifier of the proposal.
*/ inline Proposal& WithProposalId(const char* value) { SetProposalId(value); return *this;} /** *The unique identifier of the network for which the proposal is made.
*/ inline const Aws::String& GetNetworkId() const{ return m_networkId; } /** *The unique identifier of the network for which the proposal is made.
*/ inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; } /** *The unique identifier of the network for which the proposal is made.
*/ inline void SetNetworkId(const Aws::String& value) { m_networkIdHasBeenSet = true; m_networkId = value; } /** *The unique identifier of the network for which the proposal is made.
*/ inline void SetNetworkId(Aws::String&& value) { m_networkIdHasBeenSet = true; m_networkId = std::move(value); } /** *The unique identifier of the network for which the proposal is made.
*/ inline void SetNetworkId(const char* value) { m_networkIdHasBeenSet = true; m_networkId.assign(value); } /** *The unique identifier of the network for which the proposal is made.
*/ inline Proposal& WithNetworkId(const Aws::String& value) { SetNetworkId(value); return *this;} /** *The unique identifier of the network for which the proposal is made.
*/ inline Proposal& WithNetworkId(Aws::String&& value) { SetNetworkId(std::move(value)); return *this;} /** *The unique identifier of the network for which the proposal is made.
*/ inline Proposal& WithNetworkId(const char* value) { SetNetworkId(value); return *this;} /** *The description of the proposal.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *The description of the proposal.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *The description of the proposal.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *The description of the proposal.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *The description of the proposal.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *The description of the proposal.
*/ inline Proposal& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The description of the proposal.
*/ inline Proposal& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The description of the proposal.
*/ inline Proposal& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The actions to perform on the network if the proposal is
* APPROVED
.
The actions to perform on the network if the proposal is
* APPROVED
.
The actions to perform on the network if the proposal is
* APPROVED
.
The actions to perform on the network if the proposal is
* APPROVED
.
The actions to perform on the network if the proposal is
* APPROVED
.
The actions to perform on the network if the proposal is
* APPROVED
.
The unique identifier of the member that created the proposal.
*/ inline const Aws::String& GetProposedByMemberId() const{ return m_proposedByMemberId; } /** *The unique identifier of the member that created the proposal.
*/ inline bool ProposedByMemberIdHasBeenSet() const { return m_proposedByMemberIdHasBeenSet; } /** *The unique identifier of the member that created the proposal.
*/ inline void SetProposedByMemberId(const Aws::String& value) { m_proposedByMemberIdHasBeenSet = true; m_proposedByMemberId = value; } /** *The unique identifier of the member that created the proposal.
*/ inline void SetProposedByMemberId(Aws::String&& value) { m_proposedByMemberIdHasBeenSet = true; m_proposedByMemberId = std::move(value); } /** *The unique identifier of the member that created the proposal.
*/ inline void SetProposedByMemberId(const char* value) { m_proposedByMemberIdHasBeenSet = true; m_proposedByMemberId.assign(value); } /** *The unique identifier of the member that created the proposal.
*/ inline Proposal& WithProposedByMemberId(const Aws::String& value) { SetProposedByMemberId(value); return *this;} /** *The unique identifier of the member that created the proposal.
*/ inline Proposal& WithProposedByMemberId(Aws::String&& value) { SetProposedByMemberId(std::move(value)); return *this;} /** *The unique identifier of the member that created the proposal.
*/ inline Proposal& WithProposedByMemberId(const char* value) { SetProposedByMemberId(value); return *this;} /** *The name of the member that created the proposal.
*/ inline const Aws::String& GetProposedByMemberName() const{ return m_proposedByMemberName; } /** *The name of the member that created the proposal.
*/ inline bool ProposedByMemberNameHasBeenSet() const { return m_proposedByMemberNameHasBeenSet; } /** *The name of the member that created the proposal.
*/ inline void SetProposedByMemberName(const Aws::String& value) { m_proposedByMemberNameHasBeenSet = true; m_proposedByMemberName = value; } /** *The name of the member that created the proposal.
*/ inline void SetProposedByMemberName(Aws::String&& value) { m_proposedByMemberNameHasBeenSet = true; m_proposedByMemberName = std::move(value); } /** *The name of the member that created the proposal.
*/ inline void SetProposedByMemberName(const char* value) { m_proposedByMemberNameHasBeenSet = true; m_proposedByMemberName.assign(value); } /** *The name of the member that created the proposal.
*/ inline Proposal& WithProposedByMemberName(const Aws::String& value) { SetProposedByMemberName(value); return *this;} /** *The name of the member that created the proposal.
*/ inline Proposal& WithProposedByMemberName(Aws::String&& value) { SetProposedByMemberName(std::move(value)); return *this;} /** *The name of the member that created the proposal.
*/ inline Proposal& WithProposedByMemberName(const char* value) { SetProposedByMemberName(value); return *this;} /** *The status of the proposal. Values are as follows:
* IN_PROGRESS
- The proposal is active and open for member
* voting.
APPROVED
- The proposal was approved
* with sufficient YES
votes among members according to the
* VotingPolicy
specified for the Network
. The specified
* proposal actions are carried out.
REJECTED
- The
* proposal was rejected with insufficient YES
votes among members
* according to the VotingPolicy
specified for the
* Network
. The specified ProposalActions
aren't carried
* out.
EXPIRED
- Members didn't cast the number of
* votes required to determine the proposal outcome before the proposal expired.
* The specified ProposalActions
aren't carried out.
ACTION_FAILED
- One or more of the specified
* ProposalActions
in a proposal that was approved couldn't be
* completed because of an error. The ACTION_FAILED
status occurs even
* if only one ProposalAction fails and other actions are successful.
The status of the proposal. Values are as follows:
* IN_PROGRESS
- The proposal is active and open for member
* voting.
APPROVED
- The proposal was approved
* with sufficient YES
votes among members according to the
* VotingPolicy
specified for the Network
. The specified
* proposal actions are carried out.
REJECTED
- The
* proposal was rejected with insufficient YES
votes among members
* according to the VotingPolicy
specified for the
* Network
. The specified ProposalActions
aren't carried
* out.
EXPIRED
- Members didn't cast the number of
* votes required to determine the proposal outcome before the proposal expired.
* The specified ProposalActions
aren't carried out.
ACTION_FAILED
- One or more of the specified
* ProposalActions
in a proposal that was approved couldn't be
* completed because of an error. The ACTION_FAILED
status occurs even
* if only one ProposalAction fails and other actions are successful.
The status of the proposal. Values are as follows:
* IN_PROGRESS
- The proposal is active and open for member
* voting.
APPROVED
- The proposal was approved
* with sufficient YES
votes among members according to the
* VotingPolicy
specified for the Network
. The specified
* proposal actions are carried out.
REJECTED
- The
* proposal was rejected with insufficient YES
votes among members
* according to the VotingPolicy
specified for the
* Network
. The specified ProposalActions
aren't carried
* out.
EXPIRED
- Members didn't cast the number of
* votes required to determine the proposal outcome before the proposal expired.
* The specified ProposalActions
aren't carried out.
ACTION_FAILED
- One or more of the specified
* ProposalActions
in a proposal that was approved couldn't be
* completed because of an error. The ACTION_FAILED
status occurs even
* if only one ProposalAction fails and other actions are successful.
The status of the proposal. Values are as follows:
* IN_PROGRESS
- The proposal is active and open for member
* voting.
APPROVED
- The proposal was approved
* with sufficient YES
votes among members according to the
* VotingPolicy
specified for the Network
. The specified
* proposal actions are carried out.
REJECTED
- The
* proposal was rejected with insufficient YES
votes among members
* according to the VotingPolicy
specified for the
* Network
. The specified ProposalActions
aren't carried
* out.
EXPIRED
- Members didn't cast the number of
* votes required to determine the proposal outcome before the proposal expired.
* The specified ProposalActions
aren't carried out.
ACTION_FAILED
- One or more of the specified
* ProposalActions
in a proposal that was approved couldn't be
* completed because of an error. The ACTION_FAILED
status occurs even
* if only one ProposalAction fails and other actions are successful.
The status of the proposal. Values are as follows:
* IN_PROGRESS
- The proposal is active and open for member
* voting.
APPROVED
- The proposal was approved
* with sufficient YES
votes among members according to the
* VotingPolicy
specified for the Network
. The specified
* proposal actions are carried out.
REJECTED
- The
* proposal was rejected with insufficient YES
votes among members
* according to the VotingPolicy
specified for the
* Network
. The specified ProposalActions
aren't carried
* out.
EXPIRED
- Members didn't cast the number of
* votes required to determine the proposal outcome before the proposal expired.
* The specified ProposalActions
aren't carried out.
ACTION_FAILED
- One or more of the specified
* ProposalActions
in a proposal that was approved couldn't be
* completed because of an error. The ACTION_FAILED
status occurs even
* if only one ProposalAction fails and other actions are successful.
The status of the proposal. Values are as follows:
* IN_PROGRESS
- The proposal is active and open for member
* voting.
APPROVED
- The proposal was approved
* with sufficient YES
votes among members according to the
* VotingPolicy
specified for the Network
. The specified
* proposal actions are carried out.
REJECTED
- The
* proposal was rejected with insufficient YES
votes among members
* according to the VotingPolicy
specified for the
* Network
. The specified ProposalActions
aren't carried
* out.
EXPIRED
- Members didn't cast the number of
* votes required to determine the proposal outcome before the proposal expired.
* The specified ProposalActions
aren't carried out.
ACTION_FAILED
- One or more of the specified
* ProposalActions
in a proposal that was approved couldn't be
* completed because of an error. The ACTION_FAILED
status occurs even
* if only one ProposalAction fails and other actions are successful.
The date and time that the proposal was created.
*/ inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } /** *The date and time that the proposal was created.
*/ inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } /** *The date and time that the proposal was created.
*/ inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; } /** *The date and time that the proposal was created.
*/ inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); } /** *The date and time that the proposal was created.
*/ inline Proposal& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *The date and time that the proposal was created.
*/ inline Proposal& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} /** * The date and time that the proposal expires. This is the
* CreationDate
plus the ProposalDurationInHours
that is
* specified in the ProposalThresholdPolicy
. After this date and time,
* if members haven't cast enough votes to determine the outcome according to the
* voting policy, the proposal is EXPIRED
and Actions
* aren't carried out.
The date and time that the proposal expires. This is the
* CreationDate
plus the ProposalDurationInHours
that is
* specified in the ProposalThresholdPolicy
. After this date and time,
* if members haven't cast enough votes to determine the outcome according to the
* voting policy, the proposal is EXPIRED
and Actions
* aren't carried out.
The date and time that the proposal expires. This is the
* CreationDate
plus the ProposalDurationInHours
that is
* specified in the ProposalThresholdPolicy
. After this date and time,
* if members haven't cast enough votes to determine the outcome according to the
* voting policy, the proposal is EXPIRED
and Actions
* aren't carried out.
The date and time that the proposal expires. This is the
* CreationDate
plus the ProposalDurationInHours
that is
* specified in the ProposalThresholdPolicy
. After this date and time,
* if members haven't cast enough votes to determine the outcome according to the
* voting policy, the proposal is EXPIRED
and Actions
* aren't carried out.
The date and time that the proposal expires. This is the
* CreationDate
plus the ProposalDurationInHours
that is
* specified in the ProposalThresholdPolicy
. After this date and time,
* if members haven't cast enough votes to determine the outcome according to the
* voting policy, the proposal is EXPIRED
and Actions
* aren't carried out.
The date and time that the proposal expires. This is the
* CreationDate
plus the ProposalDurationInHours
that is
* specified in the ProposalThresholdPolicy
. After this date and time,
* if members haven't cast enough votes to determine the outcome according to the
* voting policy, the proposal is EXPIRED
and Actions
* aren't carried out.
The current total of YES
votes cast on the proposal by members.
*
The current total of YES
votes cast on the proposal by members.
*
The current total of YES
votes cast on the proposal by members.
*
The current total of YES
votes cast on the proposal by members.
*
The current total of NO
votes cast on the proposal by members.
*
The current total of NO
votes cast on the proposal by members.
*
The current total of NO
votes cast on the proposal by members.
*
The current total of NO
votes cast on the proposal by members.
*
The number of votes remaining to be cast on the proposal by members. In
* other words, the number of members minus the sum of YES
votes and
* NO
votes.
The number of votes remaining to be cast on the proposal by members. In
* other words, the number of members minus the sum of YES
votes and
* NO
votes.
The number of votes remaining to be cast on the proposal by members. In
* other words, the number of members minus the sum of YES
votes and
* NO
votes.
The number of votes remaining to be cast on the proposal by members. In
* other words, the number of members minus the sum of YES
votes and
* NO
votes.
Tags assigned to the proposal. Each tag consists of a key and optional * value.
For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, * or Tagging * Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer * Guide.
*/ inline const Aws::MapTags assigned to the proposal. Each tag consists of a key and optional * value.
For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, * or Tagging * Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer * Guide.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *Tags assigned to the proposal. Each tag consists of a key and optional * value.
For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, * or Tagging * Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer * Guide.
*/ inline void SetTags(const Aws::MapTags assigned to the proposal. Each tag consists of a key and optional * value.
For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, * or Tagging * Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer * Guide.
*/ inline void SetTags(Aws::MapTags assigned to the proposal. Each tag consists of a key and optional * value.
For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, * or Tagging * Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer * Guide.
*/ inline Proposal& WithTags(const Aws::MapTags assigned to the proposal. Each tag consists of a key and optional * value.
For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, * or Tagging * Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer * Guide.
*/ inline Proposal& WithTags(Aws::MapTags assigned to the proposal. Each tag consists of a key and optional * value.
For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, * or Tagging * Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer * Guide.
*/ inline Proposal& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *Tags assigned to the proposal. Each tag consists of a key and optional * value.
For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, * or Tagging * Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer * Guide.
*/ inline Proposal& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *Tags assigned to the proposal. Each tag consists of a key and optional * value.
For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, * or Tagging * Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer * Guide.
*/ inline Proposal& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *Tags assigned to the proposal. Each tag consists of a key and optional * value.
For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, * or Tagging * Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer * Guide.
*/ inline Proposal& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *Tags assigned to the proposal. Each tag consists of a key and optional * value.
For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, * or Tagging * Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer * Guide.
*/ inline Proposal& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *Tags assigned to the proposal. Each tag consists of a key and optional * value.
For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, * or Tagging * Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer * Guide.
*/ inline Proposal& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *Tags assigned to the proposal. Each tag consists of a key and optional * value.
For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, * or Tagging * Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer * Guide.
*/ inline Proposal& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *The Amazon Resource Name (ARN) of the proposal. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The Amazon Resource Name (ARN) of the proposal. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the proposal. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The Amazon Resource Name (ARN) of the proposal. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The Amazon Resource Name (ARN) of the proposal. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The Amazon Resource Name (ARN) of the proposal. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.
*/ inline Proposal& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the proposal. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.
*/ inline Proposal& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the proposal. For more information about * ARNs and their format, see Amazon * Resource Names (ARNs) in the Amazon Web Services General * Reference.
*/ inline Proposal& WithArn(const char* value) { SetArn(value); return *this;} private: Aws::String m_proposalId; bool m_proposalIdHasBeenSet = false; Aws::String m_networkId; bool m_networkIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; ProposalActions m_actions; bool m_actionsHasBeenSet = false; Aws::String m_proposedByMemberId; bool m_proposedByMemberIdHasBeenSet = false; Aws::String m_proposedByMemberName; bool m_proposedByMemberNameHasBeenSet = false; ProposalStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_creationDate; bool m_creationDateHasBeenSet = false; Aws::Utils::DateTime m_expirationDate; bool m_expirationDateHasBeenSet = false; int m_yesVoteCount; bool m_yesVoteCountHasBeenSet = false; int m_noVoteCount; bool m_noVoteCountHasBeenSet = false; int m_outstandingVoteCount; bool m_outstandingVoteCountHasBeenSet = false; Aws::Map