com.yahoo.athenz.zms.ResourceAccess 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 java.util.List;
import com.yahoo.rdl.*;
//
// ResourceAccess -
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class ResourceAccess {
public String principal;
public List assertions;
public ResourceAccess setPrincipal(String principal) {
this.principal = principal;
return this;
}
public String getPrincipal() {
return principal;
}
public ResourceAccess setAssertions(List assertions) {
this.assertions = assertions;
return this;
}
public List getAssertions() {
return assertions;
}
@Override
public boolean equals(Object another) {
if (this != another) {
if (another == null || another.getClass() != ResourceAccess.class) {
return false;
}
ResourceAccess a = (ResourceAccess) another;
if (principal == null ? a.principal != null : !principal.equals(a.principal)) {
return false;
}
if (assertions == null ? a.assertions != null : !assertions.equals(a.assertions)) {
return false;
}
}
return true;
}
}