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

com.yahoo.athenz.zts.RoleToken Maven / Gradle / Ivy

There is a newer version: 1.11.66
Show newest version
//
// This file generated by rdl 1.5.2. Do not modify!
//

package com.yahoo.athenz.zts;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.yahoo.rdl.*;

//
// RoleToken - A representation of a signed RoleToken
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class RoleToken {
    public String token;
    public long expiryTime;

    public RoleToken setToken(String token) {
        this.token = token;
        return this;
    }
    public String getToken() {
        return token;
    }
    public RoleToken setExpiryTime(long expiryTime) {
        this.expiryTime = expiryTime;
        return this;
    }
    public long getExpiryTime() {
        return expiryTime;
    }

    @Override
    public boolean equals(Object another) {
        if (this != another) {
            if (another == null || another.getClass() != RoleToken.class) {
                return false;
            }
            RoleToken a = (RoleToken) another;
            if (token == null ? a.token != null : !token.equals(a.token)) {
                return false;
            }
            if (expiryTime != a.expiryTime) {
                return false;
            }
        }
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy