com.yahoo.athenz.zms.ExpiryMember 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.yahoo.rdl.*;
//
// ExpiryMember -
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class ExpiryMember {
public String domainName;
public String collectionName;
public String principalName;
public Timestamp expiration;
public ExpiryMember setDomainName(String domainName) {
this.domainName = domainName;
return this;
}
public String getDomainName() {
return domainName;
}
public ExpiryMember setCollectionName(String collectionName) {
this.collectionName = collectionName;
return this;
}
public String getCollectionName() {
return collectionName;
}
public ExpiryMember setPrincipalName(String principalName) {
this.principalName = principalName;
return this;
}
public String getPrincipalName() {
return principalName;
}
public ExpiryMember setExpiration(Timestamp expiration) {
this.expiration = expiration;
return this;
}
public Timestamp getExpiration() {
return expiration;
}
@Override
public boolean equals(Object another) {
if (this != another) {
if (another == null || another.getClass() != ExpiryMember.class) {
return false;
}
ExpiryMember a = (ExpiryMember) another;
if (domainName == null ? a.domainName != null : !domainName.equals(a.domainName)) {
return false;
}
if (collectionName == null ? a.collectionName != null : !collectionName.equals(a.collectionName)) {
return false;
}
if (principalName == null ? a.principalName != null : !principalName.equals(a.principalName)) {
return false;
}
if (expiration == null ? a.expiration != null : !expiration.equals(a.expiration)) {
return false;
}
}
return true;
}
}