org.catools.zapi.model.CZApiProject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zapi Show documentation
Show all versions of zapi Show documentation
The Zephyr client to be used in other CATools projects.
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 + '\'' +
'}';
}
}