All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.athenz.zms.ExpiryMember Maven / Gradle / Ivy

There is a newer version: 1.12.5
Show newest version
//
// 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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy