com.yahoo.athenz.zts.RoleToken Maven / Gradle / Ivy
//
// 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;
}
}