@Generated(value="software.amazon.awssdk:codegen") public final class VotingPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<VotingPolicy.Builder,VotingPolicy>
The voting rules for the network to decide if a proposal is accepted
Applies only to Hyperledger Fabric.
| Modifier and Type | Class and Description |
|---|---|
static interface |
VotingPolicy.Builder |
| Modifier and Type | Method and Description |
|---|---|
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. |
static VotingPolicy.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends VotingPolicy.Builder> |
serializableBuilderClass() |
VotingPolicy.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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.
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.public VotingPolicy.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<VotingPolicy.Builder,VotingPolicy>public static VotingPolicy.Builder builder()
public static Class<? extends VotingPolicy.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.