Class CfnMember.VotingPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.managedblockchain.CfnMember.VotingPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMember.VotingPolicyProperty>
- Enclosing interface:
CfnMember.VotingPolicyProperty
@Stability(Stable)
public static final class CfnMember.VotingPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMember.VotingPolicyProperty>
A builder for
CfnMember.VotingPolicyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapprovalThresholdPolicy
(IResolvable approvalThresholdPolicy) Sets the value ofCfnMember.VotingPolicyProperty.getApprovalThresholdPolicy()
approvalThresholdPolicy
(CfnMember.ApprovalThresholdPolicyProperty approvalThresholdPolicy) Sets the value ofCfnMember.VotingPolicyProperty.getApprovalThresholdPolicy()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
approvalThresholdPolicy
@Stability(Stable) public CfnMember.VotingPolicyProperty.Builder approvalThresholdPolicy(IResolvable approvalThresholdPolicy) Sets the value ofCfnMember.VotingPolicyProperty.getApprovalThresholdPolicy()
- Parameters:
approvalThresholdPolicy
- Defines the rules for the network for voting on proposals, such as the percentage ofYES
votes 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 CfnMember.VotingPolicyProperty.Builder approvalThresholdPolicy(CfnMember.ApprovalThresholdPolicyProperty approvalThresholdPolicy) Sets the value ofCfnMember.VotingPolicyProperty.getApprovalThresholdPolicy()
- Parameters:
approvalThresholdPolicy
- Defines the rules for the network for voting on proposals, such as the percentage ofYES
votes 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:
build
in interfacesoftware.amazon.jsii.Builder<CfnMember.VotingPolicyProperty>
- Returns:
- a new instance of
CfnMember.VotingPolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-