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

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

//
// UserToken - A user token generated based on user's credentials
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class UserToken {
    public String token;
    @RdlOptional
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public String header;

    public UserToken setToken(String token) {
        this.token = token;
        return this;
    }
    public String getToken() {
        return token;
    }
    public UserToken setHeader(String header) {
        this.header = header;
        return this;
    }
    public String getHeader() {
        return header;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy