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

com.seeq.model.GenericTableOutputV1 Maven / Gradle / Ivy

There is a newer version: 66.0.0-v202407310200
Show newest version
/*
 * Seeq REST API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 64.3.0-v202405012032
 * 
 *
 * 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 com.seeq.model.TableColumnOutputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
 * Table from the formula result
 */
@Schema(description = "Table from the formula result")
public class GenericTableOutputV1 {
  @JsonProperty("data")
  private List> data = new ArrayList>();

  @JsonProperty("headers")
  private List headers = new ArrayList();

  public GenericTableOutputV1 data(List> data) {
    this.data = data;
    return this;
  }

  public GenericTableOutputV1 addDataItem(List dataItem) {
    this.data.add(dataItem);
    return this;
  }

   /**
   * The list of data rows, each row being a list of cell contents.
   * @return data
  **/
  @Schema(required = true, description = "The list of data rows, each row being a list of cell contents.")
  public List> getData() {
    return data;
  }

  public void setData(List> data) {
    this.data = data;
  }

  public GenericTableOutputV1 headers(List headers) {
    this.headers = headers;
    return this;
  }

  public GenericTableOutputV1 addHeadersItem(TableColumnOutputV1 headersItem) {
    this.headers.add(headersItem);
    return this;
  }

   /**
   * The list of headers.
   * @return headers
  **/
  @Schema(required = true, description = "The list of headers.")
  public List getHeaders() {
    return headers;
  }

  public void setHeaders(List headers) {
    this.headers = headers;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    GenericTableOutputV1 genericTableOutputV1 = (GenericTableOutputV1) o;
    return Objects.equals(this.data, genericTableOutputV1.data) &&
        Objects.equals(this.headers, genericTableOutputV1.headers);
  }

  @Override
  public int hashCode() {
    return Objects.hash(data, headers);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class GenericTableOutputV1 {\n");
    
    sb.append("    data: ").append(toIndentedString(data)).append("\n");
    sb.append("    headers: ").append(toIndentedString(headers)).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    ");
  }
  
}