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

com.yahoo.athenz.zts.AccessTokenResponse 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.fasterxml.jackson.annotation.JsonInclude;
import com.yahoo.rdl.*;

//
// AccessTokenResponse -
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class AccessTokenResponse {
    public String access_token;
    public String token_type;
    @RdlOptional
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public Integer expires_in;
    @RdlOptional
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public String scope;
    @RdlOptional
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public String refresh_token;
    @RdlOptional
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public String id_token;

    public AccessTokenResponse setAccess_token(String access_token) {
        this.access_token = access_token;
        return this;
    }
    public String getAccess_token() {
        return access_token;
    }
    public AccessTokenResponse setToken_type(String token_type) {
        this.token_type = token_type;
        return this;
    }
    public String getToken_type() {
        return token_type;
    }
    public AccessTokenResponse setExpires_in(Integer expires_in) {
        this.expires_in = expires_in;
        return this;
    }
    public Integer getExpires_in() {
        return expires_in;
    }
    public AccessTokenResponse setScope(String scope) {
        this.scope = scope;
        return this;
    }
    public String getScope() {
        return scope;
    }
    public AccessTokenResponse setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
        return this;
    }
    public String getRefresh_token() {
        return refresh_token;
    }
    public AccessTokenResponse setId_token(String id_token) {
        this.id_token = id_token;
        return this;
    }
    public String getId_token() {
        return id_token;
    }

    @Override
    public boolean equals(Object another) {
        if (this != another) {
            if (another == null || another.getClass() != AccessTokenResponse.class) {
                return false;
            }
            AccessTokenResponse a = (AccessTokenResponse) another;
            if (access_token == null ? a.access_token != null : !access_token.equals(a.access_token)) {
                return false;
            }
            if (token_type == null ? a.token_type != null : !token_type.equals(a.token_type)) {
                return false;
            }
            if (expires_in == null ? a.expires_in != null : !expires_in.equals(a.expires_in)) {
                return false;
            }
            if (scope == null ? a.scope != null : !scope.equals(a.scope)) {
                return false;
            }
            if (refresh_token == null ? a.refresh_token != null : !refresh_token.equals(a.refresh_token)) {
                return false;
            }
            if (id_token == null ? a.id_token != null : !id_token.equals(a.id_token)) {
                return false;
            }
        }
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy