All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.finra.herd.sdk.model.BusinessObjectDataDdl Maven / Gradle / Ivy
/*
* 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;
import java.util.ArrayList;
import java.util.List;
import org.finra.herd.sdk.model.PartitionValueFilter;
import org.joda.time.DateTime;
/**
* BusinessObjectDataDdl
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class BusinessObjectDataDdl {
@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;
@JsonProperty("partitionValueFilters")
private List partitionValueFilters = null;
@JsonProperty("partitionValueFilter")
private PartitionValueFilter partitionValueFilter = null;
@JsonProperty("businessObjectDataVersion")
private Integer businessObjectDataVersion = null;
@JsonProperty("storageNames")
private List storageNames = null;
@JsonProperty("storageName")
private String storageName = null;
/**
* Gets or Sets outputFormat
*/
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("ddl")
private String ddl = null;
@JsonProperty("asOfTime")
private DateTime asOfTime = null;
public BusinessObjectDataDdl namespace(String namespace) {
this.namespace = namespace;
return this;
}
/**
* Get namespace
* @return namespace
**/
@ApiModelProperty(required = true, value = "")
public String getNamespace() {
return namespace;
}
public void setNamespace(String namespace) {
this.namespace = namespace;
}
public BusinessObjectDataDdl businessObjectDefinitionName(String businessObjectDefinitionName) {
this.businessObjectDefinitionName = businessObjectDefinitionName;
return this;
}
/**
* Get businessObjectDefinitionName
* @return businessObjectDefinitionName
**/
@ApiModelProperty(required = true, value = "")
public String getBusinessObjectDefinitionName() {
return businessObjectDefinitionName;
}
public void setBusinessObjectDefinitionName(String businessObjectDefinitionName) {
this.businessObjectDefinitionName = businessObjectDefinitionName;
}
public BusinessObjectDataDdl businessObjectFormatUsage(String businessObjectFormatUsage) {
this.businessObjectFormatUsage = businessObjectFormatUsage;
return this;
}
/**
* Get businessObjectFormatUsage
* @return businessObjectFormatUsage
**/
@ApiModelProperty(required = true, value = "")
public String getBusinessObjectFormatUsage() {
return businessObjectFormatUsage;
}
public void setBusinessObjectFormatUsage(String businessObjectFormatUsage) {
this.businessObjectFormatUsage = businessObjectFormatUsage;
}
public BusinessObjectDataDdl businessObjectFormatFileType(String businessObjectFormatFileType) {
this.businessObjectFormatFileType = businessObjectFormatFileType;
return this;
}
/**
* Get businessObjectFormatFileType
* @return businessObjectFormatFileType
**/
@ApiModelProperty(required = true, value = "")
public String getBusinessObjectFormatFileType() {
return businessObjectFormatFileType;
}
public void setBusinessObjectFormatFileType(String businessObjectFormatFileType) {
this.businessObjectFormatFileType = businessObjectFormatFileType;
}
public BusinessObjectDataDdl businessObjectFormatVersion(Integer businessObjectFormatVersion) {
this.businessObjectFormatVersion = businessObjectFormatVersion;
return this;
}
/**
* Get businessObjectFormatVersion
* @return businessObjectFormatVersion
**/
@ApiModelProperty(value = "")
public Integer getBusinessObjectFormatVersion() {
return businessObjectFormatVersion;
}
public void setBusinessObjectFormatVersion(Integer businessObjectFormatVersion) {
this.businessObjectFormatVersion = businessObjectFormatVersion;
}
public BusinessObjectDataDdl partitionValueFilters(List partitionValueFilters) {
this.partitionValueFilters = partitionValueFilters;
return this;
}
public BusinessObjectDataDdl addPartitionValueFiltersItem(PartitionValueFilter partitionValueFiltersItem) {
if (this.partitionValueFilters == null) {
this.partitionValueFilters = new ArrayList();
}
this.partitionValueFilters.add(partitionValueFiltersItem);
return this;
}
/**
* Get partitionValueFilters
* @return partitionValueFilters
**/
@ApiModelProperty(value = "")
public List getPartitionValueFilters() {
return partitionValueFilters;
}
public void setPartitionValueFilters(List partitionValueFilters) {
this.partitionValueFilters = partitionValueFilters;
}
public BusinessObjectDataDdl partitionValueFilter(PartitionValueFilter partitionValueFilter) {
this.partitionValueFilter = partitionValueFilter;
return this;
}
/**
* Get partitionValueFilter
* @return partitionValueFilter
**/
@ApiModelProperty(value = "")
public PartitionValueFilter getPartitionValueFilter() {
return partitionValueFilter;
}
public void setPartitionValueFilter(PartitionValueFilter partitionValueFilter) {
this.partitionValueFilter = partitionValueFilter;
}
public BusinessObjectDataDdl businessObjectDataVersion(Integer businessObjectDataVersion) {
this.businessObjectDataVersion = businessObjectDataVersion;
return this;
}
/**
* Get businessObjectDataVersion
* @return businessObjectDataVersion
**/
@ApiModelProperty(value = "")
public Integer getBusinessObjectDataVersion() {
return businessObjectDataVersion;
}
public void setBusinessObjectDataVersion(Integer businessObjectDataVersion) {
this.businessObjectDataVersion = businessObjectDataVersion;
}
public BusinessObjectDataDdl storageNames(List storageNames) {
this.storageNames = storageNames;
return this;
}
public BusinessObjectDataDdl addStorageNamesItem(String storageNamesItem) {
if (this.storageNames == null) {
this.storageNames = new ArrayList();
}
this.storageNames.add(storageNamesItem);
return this;
}
/**
* Get storageNames
* @return storageNames
**/
@ApiModelProperty(value = "")
public List getStorageNames() {
return storageNames;
}
public void setStorageNames(List storageNames) {
this.storageNames = storageNames;
}
public BusinessObjectDataDdl storageName(String storageName) {
this.storageName = storageName;
return this;
}
/**
* Get storageName
* @return storageName
**/
@ApiModelProperty(value = "")
public String getStorageName() {
return storageName;
}
public void setStorageName(String storageName) {
this.storageName = storageName;
}
public BusinessObjectDataDdl outputFormat(OutputFormatEnum outputFormat) {
this.outputFormat = outputFormat;
return this;
}
/**
* Get outputFormat
* @return outputFormat
**/
@ApiModelProperty(required = true, value = "")
public OutputFormatEnum getOutputFormat() {
return outputFormat;
}
public void setOutputFormat(OutputFormatEnum outputFormat) {
this.outputFormat = outputFormat;
}
public BusinessObjectDataDdl tableName(String tableName) {
this.tableName = tableName;
return this;
}
/**
* Get tableName
* @return tableName
**/
@ApiModelProperty(required = true, value = "")
public String getTableName() {
return tableName;
}
public void setTableName(String tableName) {
this.tableName = tableName;
}
public BusinessObjectDataDdl customDdlName(String customDdlName) {
this.customDdlName = customDdlName;
return this;
}
/**
* Get customDdlName
* @return customDdlName
**/
@ApiModelProperty(value = "")
public String getCustomDdlName() {
return customDdlName;
}
public void setCustomDdlName(String customDdlName) {
this.customDdlName = customDdlName;
}
public BusinessObjectDataDdl ddl(String ddl) {
this.ddl = ddl;
return this;
}
/**
* Get ddl
* @return ddl
**/
@ApiModelProperty(required = true, value = "")
public String getDdl() {
return ddl;
}
public void setDdl(String ddl) {
this.ddl = ddl;
}
public BusinessObjectDataDdl asOfTime(DateTime asOfTime) {
this.asOfTime = asOfTime;
return this;
}
/**
* Get asOfTime
* @return asOfTime
**/
@ApiModelProperty(value = "")
public DateTime getAsOfTime() {
return asOfTime;
}
public void setAsOfTime(DateTime asOfTime) {
this.asOfTime = asOfTime;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BusinessObjectDataDdl businessObjectDataDdl = (BusinessObjectDataDdl) o;
return Objects.equals(this.namespace, businessObjectDataDdl.namespace) &&
Objects.equals(this.businessObjectDefinitionName, businessObjectDataDdl.businessObjectDefinitionName) &&
Objects.equals(this.businessObjectFormatUsage, businessObjectDataDdl.businessObjectFormatUsage) &&
Objects.equals(this.businessObjectFormatFileType, businessObjectDataDdl.businessObjectFormatFileType) &&
Objects.equals(this.businessObjectFormatVersion, businessObjectDataDdl.businessObjectFormatVersion) &&
Objects.equals(this.partitionValueFilters, businessObjectDataDdl.partitionValueFilters) &&
Objects.equals(this.partitionValueFilter, businessObjectDataDdl.partitionValueFilter) &&
Objects.equals(this.businessObjectDataVersion, businessObjectDataDdl.businessObjectDataVersion) &&
Objects.equals(this.storageNames, businessObjectDataDdl.storageNames) &&
Objects.equals(this.storageName, businessObjectDataDdl.storageName) &&
Objects.equals(this.outputFormat, businessObjectDataDdl.outputFormat) &&
Objects.equals(this.tableName, businessObjectDataDdl.tableName) &&
Objects.equals(this.customDdlName, businessObjectDataDdl.customDdlName) &&
Objects.equals(this.ddl, businessObjectDataDdl.ddl) &&
Objects.equals(this.asOfTime, businessObjectDataDdl.asOfTime);
}
@Override
public int hashCode() {
return Objects.hash(namespace, businessObjectDefinitionName, businessObjectFormatUsage, businessObjectFormatFileType, businessObjectFormatVersion, partitionValueFilters, partitionValueFilter, businessObjectDataVersion, storageNames, storageName, outputFormat, tableName, customDdlName, ddl, asOfTime);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BusinessObjectDataDdl {\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(" partitionValueFilters: ").append(toIndentedString(partitionValueFilters)).append("\n");
sb.append(" partitionValueFilter: ").append(toIndentedString(partitionValueFilter)).append("\n");
sb.append(" businessObjectDataVersion: ").append(toIndentedString(businessObjectDataVersion)).append("\n");
sb.append(" storageNames: ").append(toIndentedString(storageNames)).append("\n");
sb.append(" storageName: ").append(toIndentedString(storageName)).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(" ddl: ").append(toIndentedString(ddl)).append("\n");
sb.append(" asOfTime: ").append(toIndentedString(asOfTime)).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 ");
}
}