shiver.me.timbers.aws.managedblockchain.MemberVotingPolicy Maven / Gradle / Ivy
package shiver.me.timbers.aws.managedblockchain;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import shiver.me.timbers.aws.Property;
/**
* MemberVotingPolicy
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-managedblockchain-member-votingpolicy.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"ApprovalThresholdPolicy"
})
public class MemberVotingPolicy implements Property
{
/**
* MemberApprovalThresholdPolicy
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-managedblockchain-member-approvalthresholdpolicy.html
*
*/
@JsonProperty("ApprovalThresholdPolicy")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-managedblockchain-member-approvalthresholdpolicy.html")
private Property approvalThresholdPolicy;
/**
* MemberApprovalThresholdPolicy
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-managedblockchain-member-approvalthresholdpolicy.html
*
*/
@JsonIgnore
public Property getApprovalThresholdPolicy() {
return approvalThresholdPolicy;
}
/**
* MemberApprovalThresholdPolicy
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-managedblockchain-member-approvalthresholdpolicy.html
*
*/
@JsonIgnore
public void setApprovalThresholdPolicy(Property approvalThresholdPolicy) {
this.approvalThresholdPolicy = approvalThresholdPolicy;
}
public MemberVotingPolicy withApprovalThresholdPolicy(Property approvalThresholdPolicy) {
this.approvalThresholdPolicy = approvalThresholdPolicy;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("approvalThresholdPolicy", approvalThresholdPolicy).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(approvalThresholdPolicy).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof MemberVotingPolicy) == false) {
return false;
}
MemberVotingPolicy rhs = ((MemberVotingPolicy) other);
return new EqualsBuilder().append(approvalThresholdPolicy, rhs.approvalThresholdPolicy).isEquals();
}
}