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
Constructors -
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 ofYESvotes to approve the proposal nor the number ofNOvotes required to reject it before the duration expires, the proposal isEXPIREDandProposalActionsaren'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 theThresholdPercentageor must be greater than or equal to theThresholdPercentageto 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 beYESfor a proposal to be approved. For example, aThresholdPercentagevalue of50indicates 50%. TheThresholdComparatordetermines the precise comparison. If aThresholdPercentagevalue of50is specified on a network with 10 members, along with aThresholdComparatorvalue ofGREATER_THAN, this indicates that 6YESvotes are required for the proposal to be approved.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMember.ApprovalThresholdPolicyProperty>- Returns:
- a new instance of
CfnMember.ApprovalThresholdPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-