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

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

//
// Entity - An entity is a name and a structured value. some entity
// names/prefixes are reserved (i.e. "role",  "policy", "meta", "domain",
// "service")
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class Entity {
    public String name;
    public Struct value;

    public Entity setName(String name) {
        this.name = name;
        return this;
    }
    public String getName() {
        return name;
    }
    public Entity setValue(Struct value) {
        this.value = value;
        return this;
    }
    public Struct getValue() {
        return value;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy