com.yahoo.athenz.zts.Policy Maven / Gradle / Ivy
The newest version!
//
// This file generated by rdl 1.5.2. Do not modify!
//
package com.yahoo.athenz.zts;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.List;
import com.yahoo.rdl.*;
//
// Policy - The representation for a Policy with set of assertions.
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class Policy {
public String name;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Timestamp modified;
public List assertions;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Boolean caseSensitive;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public String version;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public Boolean active;
public Policy setName(String name) {
this.name = name;
return this;
}
public String getName() {
return name;
}
public Policy setModified(Timestamp modified) {
this.modified = modified;
return this;
}
public Timestamp getModified() {
return modified;
}
public Policy setAssertions(List assertions) {
this.assertions = assertions;
return this;
}
public List getAssertions() {
return assertions;
}
public Policy setCaseSensitive(Boolean caseSensitive) {
this.caseSensitive = caseSensitive;
return this;
}
public Boolean getCaseSensitive() {
return caseSensitive;
}
public Policy setVersion(String version) {
this.version = version;
return this;
}
public String getVersion() {
return version;
}
public Policy setActive(Boolean active) {
this.active = active;
return this;
}
public Boolean getActive() {
return active;
}
@Override
public boolean equals(Object another) {
if (this != another) {
if (another == null || another.getClass() != Policy.class) {
return false;
}
Policy a = (Policy) another;
if (name == null ? a.name != null : !name.equals(a.name)) {
return false;
}
if (modified == null ? a.modified != null : !modified.equals(a.modified)) {
return false;
}
if (assertions == null ? a.assertions != null : !assertions.equals(a.assertions)) {
return false;
}
if (caseSensitive == null ? a.caseSensitive != null : !caseSensitive.equals(a.caseSensitive)) {
return false;
}
if (version == null ? a.version != null : !version.equals(a.version)) {
return false;
}
if (active == null ? a.active != null : !active.equals(a.active)) {
return false;
}
}
return true;
}
}