Class VotingPolicy
- java.lang.Object
-
- software.amazon.awssdk.services.managedblockchain.model.VotingPolicy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<VotingPolicy.Builder,VotingPolicy>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceVotingPolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApprovalThresholdPolicyapprovalThresholdPolicy()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.static VotingPolicy.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends VotingPolicy.Builder>serializableBuilderClass()VotingPolicy.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
approvalThresholdPolicy
public final ApprovalThresholdPolicy approvalThresholdPolicy()
Defines the rules for the network for voting on proposals, such as the percentage of
YESvotes 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:
- Defines the rules for the network for voting on proposals, such as the percentage of
YESvotes 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.
-
toBuilder
public VotingPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<VotingPolicy.Builder,VotingPolicy>
-
builder
public static VotingPolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends VotingPolicy.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-