public static interface VotingPolicy.Builder extends SdkPojo, CopyableBuilder<VotingPolicy.Builder,VotingPolicy>
| Modifier and Type | Method and Description |
|---|---|
VotingPolicy.Builder |
approvalThresholdPolicy(ApprovalThresholdPolicy approvalThresholdPolicy)
Defines the rules for the network for voting on proposals, such as the percentage of
YES votes
required for the proposal to be approved and the duration of the proposal. |
default VotingPolicy.Builder |
approvalThresholdPolicy(Consumer<ApprovalThresholdPolicy.Builder> approvalThresholdPolicy)
Defines the rules for the network for voting on proposals, such as the percentage of
YES votes
required for the proposal to be approved and the duration of the proposal. |
equalsBySdkFields, sdkFieldscopyapplyMutation, buildVotingPolicy.Builder approvalThresholdPolicy(ApprovalThresholdPolicy approvalThresholdPolicy)
Defines the rules for the network for voting on proposals, such as the percentage of YES 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.
approvalThresholdPolicy - Defines the rules for the network for voting on proposals, such as the percentage of YES
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.default VotingPolicy.Builder approvalThresholdPolicy(Consumer<ApprovalThresholdPolicy.Builder> approvalThresholdPolicy)
Defines the rules for the network for voting on proposals, such as the percentage of YES 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.
ApprovalThresholdPolicy.Builder avoiding
the need to create one manually via ApprovalThresholdPolicy.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to approvalThresholdPolicy(ApprovalThresholdPolicy).
approvalThresholdPolicy - a consumer that will call methods on ApprovalThresholdPolicy.BuilderapprovalThresholdPolicy(ApprovalThresholdPolicy)Copyright © 2023. All rights reserved.