Class CfnMemberPropsMixin.ApprovalThresholdPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.managedblockchain.CfnMemberPropsMixin.ApprovalThresholdPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMemberPropsMixin.ApprovalThresholdPolicyProperty>
- Enclosing interface:
CfnMemberPropsMixin.ApprovalThresholdPolicyProperty
@Stability(Stable)
public static final class CfnMemberPropsMixin.ApprovalThresholdPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMemberPropsMixin.ApprovalThresholdPolicyProperty>
A builder for
CfnMemberPropsMixin.ApprovalThresholdPolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.proposalDurationInHours(Number proposalDurationInHours) thresholdComparator(String thresholdComparator) thresholdPercentage(Number thresholdPercentage)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
proposalDurationInHours
@Stability(Stable) public CfnMemberPropsMixin.ApprovalThresholdPolicyProperty.Builder proposalDurationInHours(Number proposalDurationInHours) - 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 CfnMemberPropsMixin.ApprovalThresholdPolicyProperty.Builder thresholdComparator(String thresholdComparator) - 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 CfnMemberPropsMixin.ApprovalThresholdPolicyProperty.Builder thresholdPercentage(Number thresholdPercentage) - 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<CfnMemberPropsMixin.ApprovalThresholdPolicyProperty>- Returns:
- a new instance of
CfnMemberPropsMixin.ApprovalThresholdPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-