com.yahoo.athenz.zms.ResourcePolicyOwnership 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.*;
//
// ResourcePolicyOwnership - The representation of the policy ownership object
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class ResourcePolicyOwnership {
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public String assertionsOwner;
@RdlOptional
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public String objectOwner;
public ResourcePolicyOwnership setAssertionsOwner(String assertionsOwner) {
this.assertionsOwner = assertionsOwner;
return this;
}
public String getAssertionsOwner() {
return assertionsOwner;
}
public ResourcePolicyOwnership 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() != ResourcePolicyOwnership.class) {
return false;
}
ResourcePolicyOwnership a = (ResourcePolicyOwnership) another;
if (assertionsOwner == null ? a.assertionsOwner != null : !assertionsOwner.equals(a.assertionsOwner)) {
return false;
}
if (objectOwner == null ? a.objectOwner != null : !objectOwner.equals(a.objectOwner)) {
return false;
}
}
return true;
}
}