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

org.finra.herd.sdk.model.SchemaColumn Maven / Gradle / Ivy

There is a newer version: 0.160.0
Show newest version
/*
 * herd-external
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * OpenAPI spec version: 0.125.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package org.finra.herd.sdk.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.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * SchemaColumn
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class SchemaColumn {
  @JsonProperty("name")
  private String name = null;

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

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

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

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

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

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

   /**
   * The name of the schema column. Required when Column is present
   * @return name
  **/
  @ApiModelProperty(required = true, value = "The name of the schema column. Required when Column is present")
  public String getName() {
    return name;
  }

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

  public SchemaColumn type(String type) {
    this.type = type;
    return this;
  }

   /**
   * The data type of the schema column. Required when Column is present
   * @return type
  **/
  @ApiModelProperty(required = true, value = "The data type of the schema column. Required when Column is present")
  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public SchemaColumn size(String size) {
    this.size = size;
    return this;
  }

   /**
   * The column size. This is a string value since, for \"NUMERIC\" and \"DECIMAL\" data types, we should be able to specify both                   the maximum number of digits (p) that are present in the number and the maximum number of decimal places (s) as a \"p,s\" string. Required when                   Column is present                
   * @return size
  **/
  @ApiModelProperty(value = "The column size. This is a string value since, for \"NUMERIC\" and \"DECIMAL\" data types, we should be able to specify both                   the maximum number of digits (p) that are present in the number and the maximum number of decimal places (s) as a \"p,s\" string. Required when                   Column is present                ")
  public String getSize() {
    return size;
  }

  public void setSize(String size) {
    this.size = size;
  }

  public SchemaColumn required(Boolean required) {
    this.required = required;
    return this;
  }

   /**
   * Values true|false. If true, a value isis required for the column (not nullable)
   * @return required
  **/
  @ApiModelProperty(value = "Values true|false. If true, a value isis required for the column (not nullable)")
  public Boolean getRequired() {
    return required;
  }

  public void setRequired(Boolean required) {
    this.required = required;
  }

  public SchemaColumn defaultValue(String defaultValue) {
    this.defaultValue = defaultValue;
    return this;
  }

   /**
   * Default value for the column
   * @return defaultValue
  **/
  @ApiModelProperty(value = "Default value for the column")
  public String getDefaultValue() {
    return defaultValue;
  }

  public void setDefaultValue(String defaultValue) {
    this.defaultValue = defaultValue;
  }

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

   /**
   * Description of the column
   * @return description
  **/
  @ApiModelProperty(value = "Description of the column")
  public String getDescription() {
    return description;
  }

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


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SchemaColumn schemaColumn = (SchemaColumn) o;
    return Objects.equals(this.name, schemaColumn.name) &&
        Objects.equals(this.type, schemaColumn.type) &&
        Objects.equals(this.size, schemaColumn.size) &&
        Objects.equals(this.required, schemaColumn.required) &&
        Objects.equals(this.defaultValue, schemaColumn.defaultValue) &&
        Objects.equals(this.description, schemaColumn.description);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, type, size, required, defaultValue, description);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SchemaColumn {\n");
    
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("    size: ").append(toIndentedString(size)).append("\n");
    sb.append("    required: ").append(toIndentedString(required)).append("\n");
    sb.append("    defaultValue: ").append(toIndentedString(defaultValue)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).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