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

org.finra.herd.sdk.model.BusinessObjectFormatDdlRequest 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;

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

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

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

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

  @JsonProperty("businessObjectFormatVersion")
  private Integer businessObjectFormatVersion = null;

  /**
   * The output format for the generated DDL. The only format currently supported is HIVE_13_DDL
   */
  public enum OutputFormatEnum {
    HIVE_13_DDL("HIVE_13_DDL");

    private String value;

    OutputFormatEnum(String value) {
      this.value = value;
    }

    @JsonValue
    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }

    @JsonCreator
    public static OutputFormatEnum fromValue(String text) {
      for (OutputFormatEnum b : OutputFormatEnum.values()) {
        if (String.valueOf(b.value).equals(text)) {
          return b;
        }
      }
      throw new IllegalArgumentException("Unexpected value '" + text + "'");
    }
  }

  @JsonProperty("outputFormat")
  private OutputFormatEnum outputFormat = null;

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

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

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

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

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

  public BusinessObjectFormatDdlRequest namespace(String namespace) {
    this.namespace = namespace;
    return this;
  }

   /**
   * The Namespace to which a Business Object Format is related
   * @return namespace
  **/
  @ApiModelProperty(required = true, value = "The Namespace to which a Business Object Format is related")
  public String getNamespace() {
    return namespace;
  }

  public void setNamespace(String namespace) {
    this.namespace = namespace;
  }

  public BusinessObjectFormatDdlRequest businessObjectDefinitionName(String businessObjectDefinitionName) {
    this.businessObjectDefinitionName = businessObjectDefinitionName;
    return this;
  }

   /**
   * The name of the Business Object Definition to which a Business Object Format is related
   * @return businessObjectDefinitionName
  **/
  @ApiModelProperty(required = true, value = "The name of the Business Object Definition to which a Business Object Format is related")
  public String getBusinessObjectDefinitionName() {
    return businessObjectDefinitionName;
  }

  public void setBusinessObjectDefinitionName(String businessObjectDefinitionName) {
    this.businessObjectDefinitionName = businessObjectDefinitionName;
  }

  public BusinessObjectFormatDdlRequest businessObjectFormatUsage(String businessObjectFormatUsage) {
    this.businessObjectFormatUsage = businessObjectFormatUsage;
    return this;
  }

   /**
   * The Usage of this Business Object Format - a string describing how this format is used. Often used as a label for the Business                   Object Format. Does not have to be unique in the system, the Usage string is frequently shared across formats for multiple Business Object                   Definitions                
   * @return businessObjectFormatUsage
  **/
  @ApiModelProperty(required = true, value = "The Usage of this Business Object Format - a string describing how this format is used. Often used as a label for the Business                   Object Format. Does not have to be unique in the system, the Usage string is frequently shared across formats for multiple Business Object                   Definitions                ")
  public String getBusinessObjectFormatUsage() {
    return businessObjectFormatUsage;
  }

  public void setBusinessObjectFormatUsage(String businessObjectFormatUsage) {
    this.businessObjectFormatUsage = businessObjectFormatUsage;
  }

  public BusinessObjectFormatDdlRequest businessObjectFormatFileType(String businessObjectFormatFileType) {
    this.businessObjectFormatFileType = businessObjectFormatFileType;
    return this;
  }

   /**
   * A File Type known to the system that describes the file type of data stored under a Business Object Format
   * @return businessObjectFormatFileType
  **/
  @ApiModelProperty(required = true, value = "A File Type known to the system that describes the file type of data stored under a Business Object Format")
  public String getBusinessObjectFormatFileType() {
    return businessObjectFormatFileType;
  }

  public void setBusinessObjectFormatFileType(String businessObjectFormatFileType) {
    this.businessObjectFormatFileType = businessObjectFormatFileType;
  }

  public BusinessObjectFormatDdlRequest businessObjectFormatVersion(Integer businessObjectFormatVersion) {
    this.businessObjectFormatVersion = businessObjectFormatVersion;
    return this;
  }

   /**
   * The numeric version of a Business Object Format. If not supplied, the latest version will be used
   * @return businessObjectFormatVersion
  **/
  @ApiModelProperty(value = "The numeric version of a Business Object Format. If not supplied, the latest version will be used")
  public Integer getBusinessObjectFormatVersion() {
    return businessObjectFormatVersion;
  }

  public void setBusinessObjectFormatVersion(Integer businessObjectFormatVersion) {
    this.businessObjectFormatVersion = businessObjectFormatVersion;
  }

  public BusinessObjectFormatDdlRequest outputFormat(OutputFormatEnum outputFormat) {
    this.outputFormat = outputFormat;
    return this;
  }

   /**
   * The output format for the generated DDL. The only format currently supported is HIVE_13_DDL
   * @return outputFormat
  **/
  @ApiModelProperty(required = true, value = "The output format for the generated DDL. The only format currently supported is HIVE_13_DDL")
  public OutputFormatEnum getOutputFormat() {
    return outputFormat;
  }

  public void setOutputFormat(OutputFormatEnum outputFormat) {
    this.outputFormat = outputFormat;
  }

  public BusinessObjectFormatDdlRequest tableName(String tableName) {
    this.tableName = tableName;
    return this;
  }

   /**
   * The table name to be used in the generated DDL
   * @return tableName
  **/
  @ApiModelProperty(required = true, value = "The table name to be used in the generated DDL")
  public String getTableName() {
    return tableName;
  }

  public void setTableName(String tableName) {
    this.tableName = tableName;
  }

  public BusinessObjectFormatDdlRequest customDdlName(String customDdlName) {
    this.customDdlName = customDdlName;
    return this;
  }

   /**
   * The name of the Custom DDL. When Custom DDL name is specified, the Custom DDL which had previously been stored Business Object                   Format is returned instead of generated DDL. Must not be specified when replaceColumns is true                
   * @return customDdlName
  **/
  @ApiModelProperty(value = "The name of the Custom DDL. When Custom DDL name is specified, the Custom DDL which had previously been stored Business Object                   Format is returned instead of generated DDL. Must not be specified when replaceColumns is true                ")
  public String getCustomDdlName() {
    return customDdlName;
  }

  public void setCustomDdlName(String customDdlName) {
    this.customDdlName = customDdlName;
  }

  public BusinessObjectFormatDdlRequest includeDropTableStatement(Boolean includeDropTableStatement) {
    this.includeDropTableStatement = includeDropTableStatement;
    return this;
  }

   /**
   * If true, drop table statement for existing table will be added to the generated DDL. Must not be specified when replaceColumns                   is true.                
   * @return includeDropTableStatement
  **/
  @ApiModelProperty(value = "If true, drop table statement for existing table will be added to the generated DDL. Must not be specified when replaceColumns                   is true.                ")
  public Boolean getIncludeDropTableStatement() {
    return includeDropTableStatement;
  }

  public void setIncludeDropTableStatement(Boolean includeDropTableStatement) {
    this.includeDropTableStatement = includeDropTableStatement;
  }

  public BusinessObjectFormatDdlRequest includeIfNotExistsOption(Boolean includeIfNotExistsOption) {
    this.includeIfNotExistsOption = includeIfNotExistsOption;
    return this;
  }

   /**
   * If true, IF NOT EXISTS option will be added to the CREATE TABLE ... statement in the generrated DDL. Please note that this                   parameter value has no effect on the relative CREATE TABLE ... statement, if generated DDL uses custom DDL. Must not be specified when                   replaceColumns is true.                
   * @return includeIfNotExistsOption
  **/
  @ApiModelProperty(value = "If true, IF NOT EXISTS option will be added to the CREATE TABLE ... statement in the generrated DDL. Please note that this                   parameter value has no effect on the relative CREATE TABLE ... statement, if generated DDL uses custom DDL. Must not be specified when                   replaceColumns is true.                ")
  public Boolean getIncludeIfNotExistsOption() {
    return includeIfNotExistsOption;
  }

  public void setIncludeIfNotExistsOption(Boolean includeIfNotExistsOption) {
    this.includeIfNotExistsOption = includeIfNotExistsOption;
  }

  public BusinessObjectFormatDdlRequest replaceColumns(Boolean replaceColumns) {
    this.replaceColumns = replaceColumns;
    return this;
  }

   /**
   * If true, an ALTER TABLE ... REPLACE COLUMNS will be generated
   * @return replaceColumns
  **/
  @ApiModelProperty(value = "If true, an ALTER TABLE ... REPLACE COLUMNS will be generated")
  public Boolean getReplaceColumns() {
    return replaceColumns;
  }

  public void setReplaceColumns(Boolean replaceColumns) {
    this.replaceColumns = replaceColumns;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BusinessObjectFormatDdlRequest businessObjectFormatDdlRequest = (BusinessObjectFormatDdlRequest) o;
    return Objects.equals(this.namespace, businessObjectFormatDdlRequest.namespace) &&
        Objects.equals(this.businessObjectDefinitionName, businessObjectFormatDdlRequest.businessObjectDefinitionName) &&
        Objects.equals(this.businessObjectFormatUsage, businessObjectFormatDdlRequest.businessObjectFormatUsage) &&
        Objects.equals(this.businessObjectFormatFileType, businessObjectFormatDdlRequest.businessObjectFormatFileType) &&
        Objects.equals(this.businessObjectFormatVersion, businessObjectFormatDdlRequest.businessObjectFormatVersion) &&
        Objects.equals(this.outputFormat, businessObjectFormatDdlRequest.outputFormat) &&
        Objects.equals(this.tableName, businessObjectFormatDdlRequest.tableName) &&
        Objects.equals(this.customDdlName, businessObjectFormatDdlRequest.customDdlName) &&
        Objects.equals(this.includeDropTableStatement, businessObjectFormatDdlRequest.includeDropTableStatement) &&
        Objects.equals(this.includeIfNotExistsOption, businessObjectFormatDdlRequest.includeIfNotExistsOption) &&
        Objects.equals(this.replaceColumns, businessObjectFormatDdlRequest.replaceColumns);
  }

  @Override
  public int hashCode() {
    return Objects.hash(namespace, businessObjectDefinitionName, businessObjectFormatUsage, businessObjectFormatFileType, businessObjectFormatVersion, outputFormat, tableName, customDdlName, includeDropTableStatement, includeIfNotExistsOption, replaceColumns);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class BusinessObjectFormatDdlRequest {\n");
    
    sb.append("    namespace: ").append(toIndentedString(namespace)).append("\n");
    sb.append("    businessObjectDefinitionName: ").append(toIndentedString(businessObjectDefinitionName)).append("\n");
    sb.append("    businessObjectFormatUsage: ").append(toIndentedString(businessObjectFormatUsage)).append("\n");
    sb.append("    businessObjectFormatFileType: ").append(toIndentedString(businessObjectFormatFileType)).append("\n");
    sb.append("    businessObjectFormatVersion: ").append(toIndentedString(businessObjectFormatVersion)).append("\n");
    sb.append("    outputFormat: ").append(toIndentedString(outputFormat)).append("\n");
    sb.append("    tableName: ").append(toIndentedString(tableName)).append("\n");
    sb.append("    customDdlName: ").append(toIndentedString(customDdlName)).append("\n");
    sb.append("    includeDropTableStatement: ").append(toIndentedString(includeDropTableStatement)).append("\n");
    sb.append("    includeIfNotExistsOption: ").append(toIndentedString(includeIfNotExistsOption)).append("\n");
    sb.append("    replaceColumns: ").append(toIndentedString(replaceColumns)).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