Interface Proposal.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Proposal.Builder,
,Proposal> SdkBuilder<Proposal.Builder,
,Proposal> SdkPojo
- Enclosing class:
Proposal
-
Method Summary
Modifier and TypeMethodDescriptiondefault Proposal.Builder
actions
(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 ofNO
votes 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 ofYES
votes cast on the proposal by members.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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.Builder
avoiding the need to create one manually viaProposalActions.builder()
.When the
Consumer
completes,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 sufficientYES
votes among members according to theVotingPolicy
specified for theNetwork
. The specified proposal actions are carried out. -
REJECTED
- The proposal was rejected with insufficientYES
votes among members according to theVotingPolicy
specified for theNetwork
. The specifiedProposalActions
aren't carried out. -
EXPIRED
- Members didn't cast the number of votes required to determine the proposal outcome before the proposal expired. The specifiedProposalActions
aren't carried out. -
ACTION_FAILED
- One or more of the specifiedProposalActions
in a proposal that was approved couldn't be completed because of an error. TheACTION_FAILED
status 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 sufficientYES
votes among members according to theVotingPolicy
specified for theNetwork
. The specified proposal actions are carried out. -
REJECTED
- The proposal was rejected with insufficientYES
votes among members according to theVotingPolicy
specified for theNetwork
. The specifiedProposalActions
aren't carried out. -
EXPIRED
- Members didn't cast the number of votes required to determine the proposal outcome before the proposal expired. The specifiedProposalActions
aren't carried out. -
ACTION_FAILED
- One or more of the specifiedProposalActions
in a proposal that was approved couldn't be completed because of an error. TheACTION_FAILED
status 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 sufficientYES
votes among members according to theVotingPolicy
specified for theNetwork
. The specified proposal actions are carried out. -
REJECTED
- The proposal was rejected with insufficientYES
votes among members according to theVotingPolicy
specified for theNetwork
. The specifiedProposalActions
aren't carried out. -
EXPIRED
- Members didn't cast the number of votes required to determine the proposal outcome before the proposal expired. The specifiedProposalActions
aren't carried out. -
ACTION_FAILED
- One or more of the specifiedProposalActions
in a proposal that was approved couldn't be completed because of an error. TheACTION_FAILED
status 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 sufficientYES
votes among members according to theVotingPolicy
specified for theNetwork
. The specified proposal actions are carried out. -
REJECTED
- The proposal was rejected with insufficientYES
votes among members according to theVotingPolicy
specified for theNetwork
. The specifiedProposalActions
aren't carried out. -
EXPIRED
- Members didn't cast the number of votes required to determine the proposal outcome before the proposal expired. The specifiedProposalActions
aren't carried out. -
ACTION_FAILED
- One or more of the specifiedProposalActions
in a proposal that was approved couldn't be completed because of an error. TheACTION_FAILED
status 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
CreationDate
plus theProposalDurationInHours
that 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 isEXPIRED
andActions
aren't carried out.- Parameters:
expirationDate
- The date and time that the proposal expires. This is theCreationDate
plus theProposalDurationInHours
that 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 isEXPIRED
andActions
aren't carried out.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
yesVoteCount
The current total of
YES
votes cast on the proposal by members.- Parameters:
yesVoteCount
- The current total ofYES
votes 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
NO
votes cast on the proposal by members.- Parameters:
noVoteCount
- The current total ofNO
votes 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
YES
votes andNO
votes.- 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 ofYES
votes andNO
votes.- 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.
-