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

com.seeq.model.TableDefinitionInputV1 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.ColumnDefinitionInputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
 * TableDefinitionInputV1
 */
public class TableDefinitionInputV1 {
  @JsonProperty("columnDefinitions")
  private List columnDefinitions = new ArrayList();

  @JsonProperty("dataId")
  private String dataId = null;

  @JsonProperty("datasourceClass")
  private String datasourceClass = null;

  @JsonProperty("datasourceId")
  private String datasourceId = null;

  @JsonProperty("description")
  private String description = null;

  @JsonProperty("name")
  private String name = null;

  @JsonProperty("scopedTo")
  private String scopedTo = null;

  @JsonProperty("subscriptionId")
  private String subscriptionId = null;

  public TableDefinitionInputV1 columnDefinitions(List columnDefinitions) {
    this.columnDefinitions = columnDefinitions;
    return this;
  }

  public TableDefinitionInputV1 addColumnDefinitionsItem(ColumnDefinitionInputV1 columnDefinitionsItem) {
    this.columnDefinitions.add(columnDefinitionsItem);
    return this;
  }

   /**
   * Column definitions for the Table. A column definition contains all the properties that define each column in the table. An \"item id\" column is required and must reference a Seeq item (e.g. Condition ID). A \"datum id\" column is required because it is used to uniquely identify a row (e.g. Capsule Start property).
   * @return columnDefinitions
  **/
  @Schema(required = true, description = "Column definitions for the Table. A column definition contains all the properties that define each column in the table. An \"item id\" column is required and must reference a Seeq item (e.g. Condition ID). A \"datum id\" column is required because it is used to uniquely identify a row (e.g. Capsule Start property).")
  public List getColumnDefinitions() {
    return columnDefinitions;
  }

  public void setColumnDefinitions(List columnDefinitions) {
    this.columnDefinitions = columnDefinitions;
  }

  public TableDefinitionInputV1 dataId(String dataId) {
    this.dataId = dataId;
    return this;
  }

   /**
   * A unique identifier for the table definition within its datasource
   * @return dataId
  **/
  @Schema(description = "A unique identifier for the table definition within its datasource")
  public String getDataId() {
    return dataId;
  }

  public void setDataId(String dataId) {
    this.dataId = dataId;
  }

  public TableDefinitionInputV1 datasourceClass(String datasourceClass) {
    this.datasourceClass = datasourceClass;
    return this;
  }

   /**
   * Along with the Datasource ID, the Datasource Class uniquely identifies a datasource
   * @return datasourceClass
  **/
  @Schema(description = "Along with the Datasource ID, the Datasource Class uniquely identifies a datasource")
  public String getDatasourceClass() {
    return datasourceClass;
  }

  public void setDatasourceClass(String datasourceClass) {
    this.datasourceClass = datasourceClass;
  }

  public TableDefinitionInputV1 datasourceId(String datasourceId) {
    this.datasourceId = datasourceId;
    return this;
  }

   /**
   * Along with the Datasource Class, the Datasource ID uniquely identifies a datasource
   * @return datasourceId
  **/
  @Schema(description = "Along with the Datasource Class, the Datasource ID uniquely identifies a datasource")
  public String getDatasourceId() {
    return datasourceId;
  }

  public void setDatasourceId(String datasourceId) {
    this.datasourceId = datasourceId;
  }

  public TableDefinitionInputV1 description(String description) {
    this.description = description;
    return this;
  }

   /**
   * Clarifying information or other plain language description of this item. An input of just whitespaces is equivalent to a null input.
   * @return description
  **/
  @Schema(description = "Clarifying information or other plain language description of this item. An input of just whitespaces is equivalent to a null input.")
  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

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

   /**
   * Human readable name. Required during creation. An input of just whitespaces is equivalent to a null input.
   * @return name
  **/
  @Schema(required = true, description = "Human readable name. Required during creation. An input of just whitespaces is equivalent to a null input.")
  public String getName() {
    return name;
  }

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

  public TableDefinitionInputV1 scopedTo(String scopedTo) {
    this.scopedTo = scopedTo;
    return this;
  }

   /**
   * The ID of the workbook to which the table definition will be scoped. If not provided, the table definition will have a global scope
   * @return scopedTo
  **/
  @Schema(description = "The ID of the workbook to which the table definition will be scoped. If not provided, the table definition will have a global scope")
  public String getScopedTo() {
    return scopedTo;
  }

  public void setScopedTo(String scopedTo) {
    this.scopedTo = scopedTo;
  }

  public TableDefinitionInputV1 subscriptionId(String subscriptionId) {
    this.subscriptionId = subscriptionId;
    return this;
  }

   /**
   * The ID of the item (only condition monitors supported for now) to subscribe to.
   * @return subscriptionId
  **/
  @Schema(description = "The ID of the item (only condition monitors supported for now) to subscribe to.")
  public String getSubscriptionId() {
    return subscriptionId;
  }

  public void setSubscriptionId(String subscriptionId) {
    this.subscriptionId = subscriptionId;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TableDefinitionInputV1 tableDefinitionInputV1 = (TableDefinitionInputV1) o;
    return Objects.equals(this.columnDefinitions, tableDefinitionInputV1.columnDefinitions) &&
        Objects.equals(this.dataId, tableDefinitionInputV1.dataId) &&
        Objects.equals(this.datasourceClass, tableDefinitionInputV1.datasourceClass) &&
        Objects.equals(this.datasourceId, tableDefinitionInputV1.datasourceId) &&
        Objects.equals(this.description, tableDefinitionInputV1.description) &&
        Objects.equals(this.name, tableDefinitionInputV1.name) &&
        Objects.equals(this.scopedTo, tableDefinitionInputV1.scopedTo) &&
        Objects.equals(this.subscriptionId, tableDefinitionInputV1.subscriptionId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(columnDefinitions, dataId, datasourceClass, datasourceId, description, name, scopedTo, subscriptionId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class TableDefinitionInputV1 {\n");
    
    sb.append("    columnDefinitions: ").append(toIndentedString(columnDefinitions)).append("\n");
    sb.append("    dataId: ").append(toIndentedString(dataId)).append("\n");
    sb.append("    datasourceClass: ").append(toIndentedString(datasourceClass)).append("\n");
    sb.append("    datasourceId: ").append(toIndentedString(datasourceId)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    scopedTo: ").append(toIndentedString(scopedTo)).append("\n");
    sb.append("    subscriptionId: ").append(toIndentedString(subscriptionId)).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    ");
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy