com.seeq.model.LabelInputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 63.1.6-v202409101657
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.seeq.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* LabelInputV1
*/
public class LabelInputV1 {
@JsonProperty("categoryId")
private String categoryId = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("parentId")
private String parentId = null;
public LabelInputV1 categoryId(String categoryId) {
this.categoryId = categoryId;
return this;
}
/**
* ID of the label category
* @return categoryId
**/
@Schema(description = "ID of the label category")
public String getCategoryId() {
return categoryId;
}
public void setCategoryId(String categoryId) {
this.categoryId = categoryId;
}
public LabelInputV1 name(String name) {
this.name = name;
return this;
}
/**
* Text for the label
* @return name
**/
@Schema(description = "Text for the label")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public LabelInputV1 parentId(String parentId) {
this.parentId = parentId;
return this;
}
/**
* ID of the parent label if this label is part of a hierarchy. Cannot be used with autocomplete categories
* @return parentId
**/
@Schema(description = "ID of the parent label if this label is part of a hierarchy. Cannot be used with autocomplete categories")
public String getParentId() {
return parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
LabelInputV1 labelInputV1 = (LabelInputV1) o;
return Objects.equals(this.categoryId, labelInputV1.categoryId) &&
Objects.equals(this.name, labelInputV1.name) &&
Objects.equals(this.parentId, labelInputV1.parentId);
}
@Override
public int hashCode() {
return Objects.hash(categoryId, name, parentId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class LabelInputV1 {\n");
sb.append(" categoryId: ").append(toIndentedString(categoryId)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" parentId: ").append(toIndentedString(parentId)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}