Class CfnMemberPropsMixin.VotingPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.managedblockchain.CfnMemberPropsMixin.VotingPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMemberPropsMixin.VotingPolicyProperty>
- Enclosing interface:
CfnMemberPropsMixin.VotingPolicyProperty
@Stability(Stable)
public static final class CfnMemberPropsMixin.VotingPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMemberPropsMixin.VotingPolicyProperty>
A builder for
CfnMemberPropsMixin.VotingPolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapprovalThresholdPolicy(CfnMemberPropsMixin.ApprovalThresholdPolicyProperty approvalThresholdPolicy) Sets the value ofCfnMemberPropsMixin.VotingPolicyProperty.getApprovalThresholdPolicy()approvalThresholdPolicy(IResolvable approvalThresholdPolicy) Sets the value ofCfnMemberPropsMixin.VotingPolicyProperty.getApprovalThresholdPolicy()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
approvalThresholdPolicy
@Stability(Stable) public CfnMemberPropsMixin.VotingPolicyProperty.Builder approvalThresholdPolicy(IResolvable approvalThresholdPolicy) Sets the value ofCfnMemberPropsMixin.VotingPolicyProperty.getApprovalThresholdPolicy()- Parameters:
approvalThresholdPolicy- Defines the rules for the network for voting on proposals, such as the percentage ofYESvotes required for the proposal to be approved and the duration of the proposal. The policy applies to all proposals and is specified when the network is created.- Returns:
this
-
approvalThresholdPolicy
@Stability(Stable) public CfnMemberPropsMixin.VotingPolicyProperty.Builder approvalThresholdPolicy(CfnMemberPropsMixin.ApprovalThresholdPolicyProperty approvalThresholdPolicy) Sets the value ofCfnMemberPropsMixin.VotingPolicyProperty.getApprovalThresholdPolicy()- Parameters:
approvalThresholdPolicy- Defines the rules for the network for voting on proposals, such as the percentage ofYESvotes required for the proposal to be approved and the duration of the proposal. The policy applies to all proposals and is specified when the network is created.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMemberPropsMixin.VotingPolicyProperty>- Returns:
- a new instance of
CfnMemberPropsMixin.VotingPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-