Interface Proposal.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Proposal.Builder,,Proposal> SdkBuilder<Proposal.Builder,,Proposal> SdkPojo
- Enclosing class:
Proposal
-
Method Summary
Modifier and TypeMethodDescriptiondefault Proposal.Builderactions(Consumer<ProposalActions.Builder> actions) The actions to perform on the network if the proposal isAPPROVED.actions(ProposalActions actions) The actions to perform on the network if the proposal isAPPROVED.The Amazon Resource Name (ARN) of the proposal.creationDate(Instant creationDate) The date and time that the proposal was created.description(String description) The description of the proposal.expirationDate(Instant expirationDate) The date and time that the proposal expires.The unique identifier of the network for which the proposal is made.noVoteCount(Integer noVoteCount) The current total ofNOvotes cast on the proposal by members.outstandingVoteCount(Integer outstandingVoteCount) The number of votes remaining to be cast on the proposal by members.proposalId(String proposalId) The unique identifier of the proposal.proposedByMemberId(String proposedByMemberId) The unique identifier of the member that created the proposal.proposedByMemberName(String proposedByMemberName) The name of the member that created the proposal.The status of the proposal.status(ProposalStatus status) The status of the proposal.Tags assigned to the proposal.yesVoteCount(Integer yesVoteCount) The current total ofYESvotes cast on the proposal by members.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
proposalId
The unique identifier of the proposal.
- Parameters:
proposalId- The unique identifier of the proposal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkId
The unique identifier of the network for which the proposal is made.
- Parameters:
networkId- The unique identifier of the network for which the proposal is made.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the proposal.
- Parameters:
description- The description of the proposal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
The actions to perform on the network if the proposal is
APPROVED.- Parameters:
actions- The actions to perform on the network if the proposal isAPPROVED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
The actions to perform on the network if the proposal is
This is a convenience method that creates an instance of theAPPROVED.ProposalActions.Builderavoiding the need to create one manually viaProposalActions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toactions(ProposalActions).- Parameters:
actions- a consumer that will call methods onProposalActions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
proposedByMemberId
The unique identifier of the member that created the proposal.
- Parameters:
proposedByMemberId- The unique identifier of the member that created the proposal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
proposedByMemberName
The name of the member that created the proposal.
- Parameters:
proposedByMemberName- The name of the member that created the proposal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 sufficientYESvotes among members according to theVotingPolicyspecified for theNetwork. The specified proposal actions are carried out. -
REJECTED- The proposal was rejected with insufficientYESvotes among members according to theVotingPolicyspecified for theNetwork. The specifiedProposalActionsaren't carried out. -
EXPIRED- Members didn't cast the number of votes required to determine the proposal outcome before the proposal expired. The specifiedProposalActionsaren't carried out. -
ACTION_FAILED- One or more of the specifiedProposalActionsin a proposal that was approved couldn't be completed because of an error. TheACTION_FAILEDstatus occurs even if only one ProposalAction fails and other actions are successful.
- Parameters:
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 sufficientYESvotes among members according to theVotingPolicyspecified for theNetwork. The specified proposal actions are carried out. -
REJECTED- The proposal was rejected with insufficientYESvotes among members according to theVotingPolicyspecified for theNetwork. The specifiedProposalActionsaren't carried out. -
EXPIRED- Members didn't cast the number of votes required to determine the proposal outcome before the proposal expired. The specifiedProposalActionsaren't carried out. -
ACTION_FAILED- One or more of the specifiedProposalActionsin a proposal that was approved couldn't be completed because of an error. TheACTION_FAILEDstatus occurs even if only one ProposalAction fails and other actions are successful.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
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 sufficientYESvotes among members according to theVotingPolicyspecified for theNetwork. The specified proposal actions are carried out. -
REJECTED- The proposal was rejected with insufficientYESvotes among members according to theVotingPolicyspecified for theNetwork. The specifiedProposalActionsaren't carried out. -
EXPIRED- Members didn't cast the number of votes required to determine the proposal outcome before the proposal expired. The specifiedProposalActionsaren't carried out. -
ACTION_FAILED- One or more of the specifiedProposalActionsin a proposal that was approved couldn't be completed because of an error. TheACTION_FAILEDstatus occurs even if only one ProposalAction fails and other actions are successful.
- Parameters:
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 sufficientYESvotes among members according to theVotingPolicyspecified for theNetwork. The specified proposal actions are carried out. -
REJECTED- The proposal was rejected with insufficientYESvotes among members according to theVotingPolicyspecified for theNetwork. The specifiedProposalActionsaren't carried out. -
EXPIRED- Members didn't cast the number of votes required to determine the proposal outcome before the proposal expired. The specifiedProposalActionsaren't carried out. -
ACTION_FAILED- One or more of the specifiedProposalActionsin a proposal that was approved couldn't be completed because of an error. TheACTION_FAILEDstatus occurs even if only one ProposalAction fails and other actions are successful.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
creationDate
The date and time that the proposal was created.
- Parameters:
creationDate- The date and time that the proposal was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expirationDate
The date and time that the proposal expires. This is the
CreationDateplus theProposalDurationInHoursthat is specified in theProposalThresholdPolicy. After this date and time, if members haven't cast enough votes to determine the outcome according to the voting policy, the proposal isEXPIREDandActionsaren't carried out.- Parameters:
expirationDate- The date and time that the proposal expires. This is theCreationDateplus theProposalDurationInHoursthat is specified in theProposalThresholdPolicy. After this date and time, if members haven't cast enough votes to determine the outcome according to the voting policy, the proposal isEXPIREDandActionsaren't carried out.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
yesVoteCount
The current total of
YESvotes cast on the proposal by members.- Parameters:
yesVoteCount- The current total ofYESvotes cast on the proposal by members.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
noVoteCount
The current total of
NOvotes cast on the proposal by members.- Parameters:
noVoteCount- The current total ofNOvotes cast on the proposal by members.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
YESvotes andNOvotes.- Parameters:
outstandingVoteCount- The number of votes remaining to be cast on the proposal by members. In other words, the number of members minus the sum ofYESvotes andNOvotes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-