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

org.catools.zapi.model.CZApiProject Maven / Gradle / Ivy

There is a newer version: 0.1.25
Show newest version
package org.catools.zapi.model;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Objects;

public class CZApiProject {
    @JsonProperty("value")
    private Long id;

    @JsonProperty("label")
    private String name;

    public CZApiProject() {
    }

    public CZApiProject(Long id, String name) {
        this.id = id;
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public CZApiProject setId(Long id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public CZApiProject setName(String name) {
        this.name = name;
        return this;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CZApiProject that = (CZApiProject) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(name, that.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name);
    }

    @Override
    public String toString() {
        return "CZApiProject{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy