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

com.seeq.model.ColumnDefinitionOutputV1 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.ColumnRuleOutputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
/**
 * The Column Definitions for this Table Definition
 */
@Schema(description = "The Column Definitions for this Table Definition")
public class ColumnDefinitionOutputV1 {
  @JsonProperty("columnName")
  private String columnName = null;

  /**
   * The column definition's type
   */
  public enum ColumnTypeEnum {
    UUID("UUID"),
    TEXT("TEXT"),
    NUMERIC("NUMERIC"),
    TIMESTAMPTZ("TIMESTAMPTZ"),
    BOOLEAN("BOOLEAN");

    private String value;

    ColumnTypeEnum(String value) {
      this.value = value;
    }
    @JsonValue
    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }
    @JsonCreator
    public static ColumnTypeEnum fromValue(String input) {
      for (ColumnTypeEnum b : ColumnTypeEnum.values()) {
        if (b.value.equals(input)) {
          return b;
        }
      }
      return null;
    }

  }  @JsonProperty("columnType")
  private ColumnTypeEnum columnType = null;

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

  @JsonProperty("id")
  private UUID id = null;

  @JsonProperty("isIndexed")
  private Boolean isIndexed = null;

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

  public ColumnDefinitionOutputV1 columnName(String columnName) {
    this.columnName = columnName;
    return this;
  }

   /**
   * The column definition's name
   * @return columnName
  **/
  @Schema(description = "The column definition's name")
  public String getColumnName() {
    return columnName;
  }

  public void setColumnName(String columnName) {
    this.columnName = columnName;
  }

  public ColumnDefinitionOutputV1 columnType(ColumnTypeEnum columnType) {
    this.columnType = columnType;
    return this;
  }

   /**
   * The column definition's type
   * @return columnType
  **/
  @Schema(description = "The column definition's type")
  public ColumnTypeEnum getColumnType() {
    return columnType;
  }

  public void setColumnType(ColumnTypeEnum columnType) {
    this.columnType = columnType;
  }

  public ColumnDefinitionOutputV1 columnUom(String columnUom) {
    this.columnUom = columnUom;
    return this;
  }

   /**
   * The column definition's Unit of Measure
   * @return columnUom
  **/
  @Schema(description = "The column definition's Unit of Measure")
  public String getColumnUom() {
    return columnUom;
  }

  public void setColumnUom(String columnUom) {
    this.columnUom = columnUom;
  }

  public ColumnDefinitionOutputV1 id(UUID id) {
    this.id = id;
    return this;
  }

   /**
   * The column definition's ID
   * @return id
  **/
  @Schema(description = "The column definition's ID")
  public UUID getId() {
    return id;
  }

  public void setId(UUID id) {
    this.id = id;
  }

  public ColumnDefinitionOutputV1 isIndexed(Boolean isIndexed) {
    this.isIndexed = isIndexed;
    return this;
  }

   /**
   * Whether the column is indexed
   * @return isIndexed
  **/
  @Schema(description = "Whether the column is indexed")
  public Boolean getIsIndexed() {
    return isIndexed;
  }

  public void setIsIndexed(Boolean isIndexed) {
    this.isIndexed = isIndexed;
  }

  public ColumnDefinitionOutputV1 rules(List rules) {
    this.rules = rules;
    return this;
  }

  public ColumnDefinitionOutputV1 addRulesItem(ColumnRuleOutputV1 rulesItem) {
    if (this.rules == null) {
      this.rules = new ArrayList();
    }
    this.rules.add(rulesItem);
    return this;
  }

   /**
   * The rules associated with the column definition
   * @return rules
  **/
  @Schema(description = "The rules associated with the column definition")
  public List getRules() {
    return rules;
  }

  public void setRules(List rules) {
    this.rules = rules;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ColumnDefinitionOutputV1 columnDefinitionOutputV1 = (ColumnDefinitionOutputV1) o;
    return Objects.equals(this.columnName, columnDefinitionOutputV1.columnName) &&
        Objects.equals(this.columnType, columnDefinitionOutputV1.columnType) &&
        Objects.equals(this.columnUom, columnDefinitionOutputV1.columnUom) &&
        Objects.equals(this.id, columnDefinitionOutputV1.id) &&
        Objects.equals(this.isIndexed, columnDefinitionOutputV1.isIndexed) &&
        Objects.equals(this.rules, columnDefinitionOutputV1.rules);
  }

  @Override
  public int hashCode() {
    return Objects.hash(columnName, columnType, columnUom, id, isIndexed, rules);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ColumnDefinitionOutputV1 {\n");
    
    sb.append("    columnName: ").append(toIndentedString(columnName)).append("\n");
    sb.append("    columnType: ").append(toIndentedString(columnType)).append("\n");
    sb.append("    columnUom: ").append(toIndentedString(columnUom)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    isIndexed: ").append(toIndentedString(isIndexed)).append("\n");
    sb.append("    rules: ").append(toIndentedString(rules)).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