Class CfnMember.ApprovalThresholdPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.managedblockchain.CfnMember.ApprovalThresholdPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMember.ApprovalThresholdPolicyProperty>
- Enclosing interface:
CfnMember.ApprovalThresholdPolicyProperty
@Stability(Stable)
public static final class CfnMember.ApprovalThresholdPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMember.ApprovalThresholdPolicyProperty>
A builder for
CfnMember.ApprovalThresholdPolicyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.proposalDurationInHours
(Number proposalDurationInHours) Sets the value ofCfnMember.ApprovalThresholdPolicyProperty.getProposalDurationInHours()
thresholdComparator
(String thresholdComparator) Sets the value ofCfnMember.ApprovalThresholdPolicyProperty.getThresholdComparator()
thresholdPercentage
(Number thresholdPercentage) Sets the value ofCfnMember.ApprovalThresholdPolicyProperty.getThresholdPercentage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
proposalDurationInHours
@Stability(Stable) public CfnMember.ApprovalThresholdPolicyProperty.Builder proposalDurationInHours(Number proposalDurationInHours) Sets the value ofCfnMember.ApprovalThresholdPolicyProperty.getProposalDurationInHours()
- Parameters:
proposalDurationInHours
- The duration from the time that a proposal is created until it expires. If members cast neither the required number ofYES
votes to approve the proposal nor the number ofNO
votes required to reject it before the duration expires, the proposal isEXPIRED
andProposalActions
aren't carried out.- Returns:
this
-
thresholdComparator
@Stability(Stable) public CfnMember.ApprovalThresholdPolicyProperty.Builder thresholdComparator(String thresholdComparator) Sets the value ofCfnMember.ApprovalThresholdPolicyProperty.getThresholdComparator()
- Parameters:
thresholdComparator
- Determines whether the vote percentage must be greater than theThresholdPercentage
or must be greater than or equal to theThreholdPercentage
to be approved.- Returns:
this
-
thresholdPercentage
@Stability(Stable) public CfnMember.ApprovalThresholdPolicyProperty.Builder thresholdPercentage(Number thresholdPercentage) Sets the value ofCfnMember.ApprovalThresholdPolicyProperty.getThresholdPercentage()
- Parameters:
thresholdPercentage
- The percentage of votes among all members that must beYES
for a proposal to be approved. For example, aThresholdPercentage
value of50
indicates 50%. TheThresholdComparator
determines the precise comparison. If aThresholdPercentage
value of50
is specified on a network with 10 members, along with aThresholdComparator
value ofGREATER_THAN
, this indicates that 6YES
votes are required for the proposal to be approved.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMember.ApprovalThresholdPolicyProperty>
- Returns:
- a new instance of
CfnMember.ApprovalThresholdPolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-