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

com.yahoo.athenz.zts.OIDCResponse 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.*;

//
// OIDCResponse -
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class OIDCResponse {
    public int version;
    public String id_token;
    public String token_type;
    public boolean success;
    public long expiration_time;

    public OIDCResponse setVersion(int version) {
        this.version = version;
        return this;
    }
    public int getVersion() {
        return version;
    }
    public OIDCResponse setId_token(String id_token) {
        this.id_token = id_token;
        return this;
    }
    public String getId_token() {
        return id_token;
    }
    public OIDCResponse setToken_type(String token_type) {
        this.token_type = token_type;
        return this;
    }
    public String getToken_type() {
        return token_type;
    }
    public OIDCResponse setSuccess(boolean success) {
        this.success = success;
        return this;
    }
    public boolean getSuccess() {
        return success;
    }
    public OIDCResponse setExpiration_time(long expiration_time) {
        this.expiration_time = expiration_time;
        return this;
    }
    public long getExpiration_time() {
        return expiration_time;
    }

    @Override
    public boolean equals(Object another) {
        if (this != another) {
            if (another == null || another.getClass() != OIDCResponse.class) {
                return false;
            }
            OIDCResponse a = (OIDCResponse) another;
            if (version != a.version) {
                return false;
            }
            if (id_token == null ? a.id_token != null : !id_token.equals(a.id_token)) {
                return false;
            }
            if (token_type == null ? a.token_type != null : !token_type.equals(a.token_type)) {
                return false;
            }
            if (success != a.success) {
                return false;
            }
            if (expiration_time != a.expiration_time) {
                return false;
            }
        }
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy