com.seeq.model.TableColumnOutputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 60.1.3-v202304250417
*
*
* 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;
/**
* The list of headers.
*/
@Schema(description = "The list of headers.")
public class TableColumnOutputV1 {
@JsonProperty("name")
private String name = null;
@JsonProperty("type")
private String type = null;
@JsonProperty("units")
private String units = null;
public TableColumnOutputV1 name(String name) {
this.name = name;
return this;
}
/**
* The name of the column
* @return name
**/
@Schema(required = true, description = "The name of the column")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public TableColumnOutputV1 type(String type) {
this.type = type;
return this;
}
/**
* The type of the column. Valid values include 'string', 'number', and 'date'. Booleans are reported as 'number'
* @return type
**/
@Schema(required = true, description = "The type of the column. Valid values include 'string', 'number', and 'date'. Booleans are reported as 'number'")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public TableColumnOutputV1 units(String units) {
this.units = units;
return this;
}
/**
* The units of the column. Only provided if type is 'number'
* @return units
**/
@Schema(description = "The units of the column. Only provided if type is 'number'")
public String getUnits() {
return units;
}
public void setUnits(String units) {
this.units = units;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TableColumnOutputV1 tableColumnOutputV1 = (TableColumnOutputV1) o;
return Objects.equals(this.name, tableColumnOutputV1.name) &&
Objects.equals(this.type, tableColumnOutputV1.type) &&
Objects.equals(this.units, tableColumnOutputV1.units);
}
@Override
public int hashCode() {
return Objects.hash(name, type, units);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TableColumnOutputV1 {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" units: ").append(toIndentedString(units)).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 ");
}
}