public static interface Proposal.Builder extends SdkPojo, CopyableBuilder<Proposal.Builder,Proposal>
| Modifier and Type | Method and Description |
|---|---|
default Proposal.Builder |
actions(Consumer<ProposalActions.Builder> actions)
The actions to perform on the network if the proposal is
APPROVED. |
Proposal.Builder |
actions(ProposalActions actions)
The actions to perform on the network if the proposal is
APPROVED. |
Proposal.Builder |
arn(String arn)
The Amazon Resource Name (ARN) of the proposal.
|
Proposal.Builder |
creationDate(Instant creationDate)
The date and time that the proposal was created.
|
Proposal.Builder |
description(String description)
The description of the proposal.
|
Proposal.Builder |
expirationDate(Instant expirationDate)
The date and time that the proposal expires.
|
Proposal.Builder |
networkId(String networkId)
The unique identifier of the network for which the proposal is made.
|
Proposal.Builder |
noVoteCount(Integer noVoteCount)
The current total of
NO votes cast on the proposal by members. |
Proposal.Builder |
outstandingVoteCount(Integer outstandingVoteCount)
The number of votes remaining to be cast on the proposal by members.
|
Proposal.Builder |
proposalId(String proposalId)
The unique identifier of the proposal.
|
Proposal.Builder |
proposedByMemberId(String proposedByMemberId)
The unique identifier of the member that created the proposal.
|
Proposal.Builder |
proposedByMemberName(String proposedByMemberName)
The name of the member that created the proposal.
|
Proposal.Builder |
status(ProposalStatus status)
The status of the proposal.
|
Proposal.Builder |
status(String status)
The status of the proposal.
|
Proposal.Builder |
tags(Map<String,String> tags)
Tags assigned to the proposal.
|
Proposal.Builder |
yesVoteCount(Integer yesVoteCount)
The current total of
YES votes cast on the proposal by members. |
equalsBySdkFields, sdkFieldscopyapplyMutation, buildProposal.Builder proposalId(String proposalId)
The unique identifier of the proposal.
proposalId - The unique identifier of the proposal.Proposal.Builder networkId(String networkId)
The unique identifier of the network for which the proposal is made.
networkId - The unique identifier of the network for which the proposal is made.Proposal.Builder description(String description)
The description of the proposal.
description - The description of the proposal.Proposal.Builder actions(ProposalActions actions)
The actions to perform on the network if the proposal is APPROVED.
actions - The actions to perform on the network if the proposal is APPROVED.default Proposal.Builder actions(Consumer<ProposalActions.Builder> actions)
The actions to perform on the network if the proposal is APPROVED.
ProposalActions.Builder avoiding the
need to create one manually via ProposalActions.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to actions(ProposalActions).
actions - a consumer that will call methods on ProposalActions.Builderactions(ProposalActions)Proposal.Builder proposedByMemberId(String proposedByMemberId)
The unique identifier of the member that created the proposal.
proposedByMemberId - The unique identifier of the member that created the proposal.Proposal.Builder proposedByMemberName(String proposedByMemberName)
The name of the member that created the proposal.
proposedByMemberName - The name of the member that created the proposal.Proposal.Builder status(String 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. The ACTION_FAILED status occurs even if only
one ProposalAction fails and other actions are successful.
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. The ACTION_FAILED status
occurs even if only one ProposalAction fails and other actions are successful.
ProposalStatus,
ProposalStatusProposal.Builder status(ProposalStatus 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. The ACTION_FAILED status occurs even if only
one ProposalAction fails and other actions are successful.
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. The ACTION_FAILED status
occurs even if only one ProposalAction fails and other actions are successful.
ProposalStatus,
ProposalStatusProposal.Builder creationDate(Instant creationDate)
The date and time that the proposal was created.
creationDate - The date and time that the proposal was created.Proposal.Builder expirationDate(Instant 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.
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.Proposal.Builder yesVoteCount(Integer yesVoteCount)
The current total of YES votes cast on the proposal by members.
yesVoteCount - The current total of YES votes cast on the proposal by members.Proposal.Builder noVoteCount(Integer noVoteCount)
The current total of NO votes cast on the proposal by members.
noVoteCount - The current total of NO votes cast on the proposal by members.Proposal.Builder outstandingVoteCount(Integer outstandingVoteCount)
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.
outstandingVoteCount - 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.Proposal.Builder tags(Map<String,String> tags)
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.
tags - 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.
Proposal.Builder arn(String 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.
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.Copyright © 2023. All rights reserved.