com.yahoo.athenz.zms.ResourceDomainOwnership 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.*;
//
// ResourceDomainOwnership - The representation of the domain ownership object
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class ResourceDomainOwnership {
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public String metaOwner;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public String objectOwner;
public ResourceDomainOwnership setMetaOwner(String metaOwner) {
this.metaOwner = metaOwner;
return this;
}
public String getMetaOwner() {
return metaOwner;
}
public ResourceDomainOwnership setObjectOwner(String objectOwner) {
this.objectOwner = objectOwner;
return this;
}
public String getObjectOwner() {
return objectOwner;
}
@Override
public boolean equals(Object another) {
if (this != another) {
if (another == null || another.getClass() != ResourceDomainOwnership.class) {
return false;
}
ResourceDomainOwnership a = (ResourceDomainOwnership) another;
if (metaOwner == null ? a.metaOwner != null : !metaOwner.equals(a.metaOwner)) {
return false;
}
if (objectOwner == null ? a.objectOwner != null : !objectOwner.equals(a.objectOwner)) {
return false;
}
}
return true;
}
}