/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ManagedBlockchain { namespace Model { /** *

Properties of a proposal.

Applies only to Hyperledger * Fabric.

See Also:

AWS * API Reference

*/ class ProposalSummary { public: AWS_MANAGEDBLOCKCHAIN_API ProposalSummary(); AWS_MANAGEDBLOCKCHAIN_API ProposalSummary(Aws::Utils::Json::JsonView jsonValue); AWS_MANAGEDBLOCKCHAIN_API ProposalSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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 ProposalSummary& WithProposalId(const Aws::String& value) { SetProposalId(value); return *this;} /** *

The unique identifier of the proposal.

*/ inline ProposalSummary& WithProposalId(Aws::String&& value) { SetProposalId(std::move(value)); return *this;} /** *

The unique identifier of the proposal.

*/ inline ProposalSummary& WithProposalId(const char* value) { SetProposalId(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 ProposalSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the proposal.

*/ inline ProposalSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the proposal.

*/ inline ProposalSummary& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

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 ProposalSummary& WithProposedByMemberId(const Aws::String& value) { SetProposedByMemberId(value); return *this;} /** *

The unique identifier of the member that created the proposal.

*/ inline ProposalSummary& WithProposedByMemberId(Aws::String&& value) { SetProposedByMemberId(std::move(value)); return *this;} /** *

The unique identifier of the member that created the proposal.

*/ inline ProposalSummary& 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 ProposalSummary& WithProposedByMemberName(const Aws::String& value) { SetProposedByMemberName(value); return *this;} /** *

The name of the member that created the proposal.

*/ inline ProposalSummary& WithProposedByMemberName(Aws::String&& value) { SetProposedByMemberName(std::move(value)); return *this;} /** *

The name of the member that created the proposal.

*/ inline ProposalSummary& 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.

*/ inline const ProposalStatus& GetStatus() const{ return m_status; } /** *

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.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

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.

*/ inline void SetStatus(const ProposalStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

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.

*/ inline void SetStatus(ProposalStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

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.

*/ inline ProposalSummary& WithStatus(const ProposalStatus& value) { SetStatus(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.

*/ inline ProposalSummary& WithStatus(ProposalStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

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 ProposalSummary& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *

The date and time that the proposal was created.

*/ inline ProposalSummary& 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.

*/ inline const Aws::Utils::DateTime& GetExpirationDate() const{ return m_expirationDate; } /** *

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.

*/ inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; } /** *

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.

*/ inline void SetExpirationDate(const Aws::Utils::DateTime& value) { m_expirationDateHasBeenSet = true; m_expirationDate = value; } /** *

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.

*/ inline void SetExpirationDate(Aws::Utils::DateTime&& value) { m_expirationDateHasBeenSet = true; m_expirationDate = std::move(value); } /** *

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.

*/ inline ProposalSummary& WithExpirationDate(const Aws::Utils::DateTime& value) { SetExpirationDate(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.

*/ inline ProposalSummary& WithExpirationDate(Aws::Utils::DateTime&& value) { SetExpirationDate(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 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 ProposalSummary& 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 ProposalSummary& 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 ProposalSummary& WithArn(const char* value) { SetArn(value); return *this;} private: Aws::String m_proposalId; bool m_proposalIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = 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; Aws::String m_arn; bool m_arnHasBeenSet = false; }; } // namespace Model } // namespace ManagedBlockchain } // namespace Aws