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

com.yahoo.athenz.zms.ServicePrincipal 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.yahoo.rdl.*;

//
// ServicePrincipal - A service principal object identifying a given service.
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class ServicePrincipal {
    public String domain;
    public String service;
    public String token;

    public ServicePrincipal setDomain(String domain) {
        this.domain = domain;
        return this;
    }
    public String getDomain() {
        return domain;
    }
    public ServicePrincipal setService(String service) {
        this.service = service;
        return this;
    }
    public String getService() {
        return service;
    }
    public ServicePrincipal setToken(String token) {
        this.token = token;
        return this;
    }
    public String getToken() {
        return token;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy