com.yahoo.athenz.zms.PolicyOptions Maven / Gradle / Ivy
//
// This file generated by rdl 1.5.2. Do not modify!
//
package com.yahoo.athenz.zms;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.yahoo.rdl.*;
//
// PolicyOptions - Options for Policy Management Requests
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class PolicyOptions {
public String version;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public String fromVersion;
public PolicyOptions setVersion(String version) {
this.version = version;
return this;
}
public String getVersion() {
return version;
}
public PolicyOptions setFromVersion(String fromVersion) {
this.fromVersion = fromVersion;
return this;
}
public String getFromVersion() {
return fromVersion;
}
@Override
public boolean equals(Object another) {
if (this != another) {
if (another == null || another.getClass() != PolicyOptions.class) {
return false;
}
PolicyOptions a = (PolicyOptions) another;
if (version == null ? a.version != null : !version.equals(a.version)) {
return false;
}
if (fromVersion == null ? a.fromVersion != null : !fromVersion.equals(a.fromVersion)) {
return false;
}
}
return true;
}
}