@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VotingPolicy extends Object implements Serializable, Cloneable, StructuredPojo
The voting rules for the network to decide if a proposal is accepted
Constructor and Description |
---|
VotingPolicy() |
Modifier and Type | Method and Description |
---|---|
VotingPolicy |
clone() |
boolean |
equals(Object obj) |
ApprovalThresholdPolicy |
getApprovalThresholdPolicy()
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. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setApprovalThresholdPolicy(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. |
String |
toString()
Returns a string representation of this object.
|
VotingPolicy |
withApprovalThresholdPolicy(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. |
public void setApprovalThresholdPolicy(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.public ApprovalThresholdPolicy getApprovalThresholdPolicy()
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 withApprovalThresholdPolicy(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.public String toString()
toString
in class Object
Object.toString()
public VotingPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.