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

com.yahoo.athenz.zms.Stats Maven / Gradle / Ivy

The 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.*;

//
// Stats - The representation for a stats object
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class Stats {
    @RdlOptional
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public String name;
    public int subdomain;
    public int role;
    public int roleMember;
    public int policy;
    public int assertion;
    public int entity;
    public int service;
    public int serviceHost;
    public int publicKey;
    public int group;
    public int groupMember;

    public Stats setName(String name) {
        this.name = name;
        return this;
    }
    public String getName() {
        return name;
    }
    public Stats setSubdomain(int subdomain) {
        this.subdomain = subdomain;
        return this;
    }
    public int getSubdomain() {
        return subdomain;
    }
    public Stats setRole(int role) {
        this.role = role;
        return this;
    }
    public int getRole() {
        return role;
    }
    public Stats setRoleMember(int roleMember) {
        this.roleMember = roleMember;
        return this;
    }
    public int getRoleMember() {
        return roleMember;
    }
    public Stats setPolicy(int policy) {
        this.policy = policy;
        return this;
    }
    public int getPolicy() {
        return policy;
    }
    public Stats setAssertion(int assertion) {
        this.assertion = assertion;
        return this;
    }
    public int getAssertion() {
        return assertion;
    }
    public Stats setEntity(int entity) {
        this.entity = entity;
        return this;
    }
    public int getEntity() {
        return entity;
    }
    public Stats setService(int service) {
        this.service = service;
        return this;
    }
    public int getService() {
        return service;
    }
    public Stats setServiceHost(int serviceHost) {
        this.serviceHost = serviceHost;
        return this;
    }
    public int getServiceHost() {
        return serviceHost;
    }
    public Stats setPublicKey(int publicKey) {
        this.publicKey = publicKey;
        return this;
    }
    public int getPublicKey() {
        return publicKey;
    }
    public Stats setGroup(int group) {
        this.group = group;
        return this;
    }
    public int getGroup() {
        return group;
    }
    public Stats setGroupMember(int groupMember) {
        this.groupMember = groupMember;
        return this;
    }
    public int getGroupMember() {
        return groupMember;
    }

    @Override
    public boolean equals(Object another) {
        if (this != another) {
            if (another == null || another.getClass() != Stats.class) {
                return false;
            }
            Stats a = (Stats) another;
            if (name == null ? a.name != null : !name.equals(a.name)) {
                return false;
            }
            if (subdomain != a.subdomain) {
                return false;
            }
            if (role != a.role) {
                return false;
            }
            if (roleMember != a.roleMember) {
                return false;
            }
            if (policy != a.policy) {
                return false;
            }
            if (assertion != a.assertion) {
                return false;
            }
            if (entity != a.entity) {
                return false;
            }
            if (service != a.service) {
                return false;
            }
            if (serviceHost != a.serviceHost) {
                return false;
            }
            if (publicKey != a.publicKey) {
                return false;
            }
            if (group != a.group) {
                return false;
            }
            if (groupMember != a.groupMember) {
                return false;
            }
        }
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy