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.
/*
* 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;
/**
* BusinessObjectDataPartitionsRequest
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class BusinessObjectDataPartitionsRequest {
@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("businessObjectDataVersion")
private Integer businessObjectDataVersion = null;
@JsonProperty("storageNames")
private List storageNames = null;
@JsonProperty("allowMissingData")
private Boolean allowMissingData = null;
@JsonProperty("includeAllRegisteredSubPartitions")
private Boolean includeAllRegisteredSubPartitions = null;
@JsonProperty("suppressScanForUnregisteredSubPartitions")
private Boolean suppressScanForUnregisteredSubPartitions = null;
public BusinessObjectDataPartitionsRequest 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 BusinessObjectDataPartitionsRequest 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 BusinessObjectDataPartitionsRequest 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 BusinessObjectDataPartitionsRequest 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 BusinessObjectDataPartitionsRequest 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 BusinessObjectDataPartitionsRequest partitionValueFilters(List partitionValueFilters) {
this.partitionValueFilters = partitionValueFilters;
return this;
}
public BusinessObjectDataPartitionsRequest 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 BusinessObjectDataPartitionsRequest 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 BusinessObjectDataPartitionsRequest storageNames(List storageNames) {
this.storageNames = storageNames;
return this;
}
public BusinessObjectDataPartitionsRequest 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 BusinessObjectDataPartitionsRequest allowMissingData(Boolean allowMissingData) {
this.allowMissingData = allowMissingData;
return this;
}
/**
* Get allowMissingData
* @return allowMissingData
**/
@ApiModelProperty(value = "")
public Boolean getAllowMissingData() {
return allowMissingData;
}
public void setAllowMissingData(Boolean allowMissingData) {
this.allowMissingData = allowMissingData;
}
public BusinessObjectDataPartitionsRequest includeAllRegisteredSubPartitions(Boolean includeAllRegisteredSubPartitions) {
this.includeAllRegisteredSubPartitions = includeAllRegisteredSubPartitions;
return this;
}
/**
* Specifies to perform an exhaustive search to return availability for ALL registered sub-partitions (registered as individual business object data instances) except for the ones with \"DELETED\" status. This parameter has no impact when business object data version is specified. Default value is false, which means that this endpoint ignores any \"not available\" registered sub-partitions when it finds at least one \"VALID\" registered sub-partition for a requested business object data partition value. If true, the call would fail with a \"Not Found\" (status code 404) error when it finds at least one \"not available\" (except for \"DELETED\") registered sub-partition for a requested business object data partition value
* @return includeAllRegisteredSubPartitions
**/
@ApiModelProperty(value = "Specifies to perform an exhaustive search to return availability for ALL registered sub-partitions (registered as individual business object data instances) except for the ones with \"DELETED\" status. This parameter has no impact when business object data version is specified. Default value is false, which means that this endpoint ignores any \"not available\" registered sub-partitions when it finds at least one \"VALID\" registered sub-partition for a requested business object data partition value. If true, the call would fail with a \"Not Found\" (status code 404) error when it finds at least one \"not available\" (except for \"DELETED\") registered sub-partition for a requested business object data partition value ")
public Boolean getIncludeAllRegisteredSubPartitions() {
return includeAllRegisteredSubPartitions;
}
public void setIncludeAllRegisteredSubPartitions(Boolean includeAllRegisteredSubPartitions) {
this.includeAllRegisteredSubPartitions = includeAllRegisteredSubPartitions;
}
public BusinessObjectDataPartitionsRequest suppressScanForUnregisteredSubPartitions(Boolean suppressScanForUnregisteredSubPartitions) {
this.suppressScanForUnregisteredSubPartitions = suppressScanForUnregisteredSubPartitions;
return this;
}
/**
* Specifies to suppress scanning of registered storage files to discover sub-partitions and instead of that relies on business object data registration information to extract primary and sub-partition (if any) values required to identify Hive table partitions. Default value is false. If true, the call would fail with a \"Bad Request\" (status code 400) error when number of partitions in any of the discovered business object data instances does not match to the number of partition columns in the business object format being used to generate the DDL
* @return suppressScanForUnregisteredSubPartitions
**/
@ApiModelProperty(value = "Specifies to suppress scanning of registered storage files to discover sub-partitions and instead of that relies on business object data registration information to extract primary and sub-partition (if any) values required to identify Hive table partitions. Default value is false. If true, the call would fail with a \"Bad Request\" (status code 400) error when number of partitions in any of the discovered business object data instances does not match to the number of partition columns in the business object format being used to generate the DDL ")
public Boolean getSuppressScanForUnregisteredSubPartitions() {
return suppressScanForUnregisteredSubPartitions;
}
public void setSuppressScanForUnregisteredSubPartitions(Boolean suppressScanForUnregisteredSubPartitions) {
this.suppressScanForUnregisteredSubPartitions = suppressScanForUnregisteredSubPartitions;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BusinessObjectDataPartitionsRequest businessObjectDataPartitionsRequest = (BusinessObjectDataPartitionsRequest) o;
return Objects.equals(this.namespace, businessObjectDataPartitionsRequest.namespace) &&
Objects.equals(this.businessObjectDefinitionName, businessObjectDataPartitionsRequest.businessObjectDefinitionName) &&
Objects.equals(this.businessObjectFormatUsage, businessObjectDataPartitionsRequest.businessObjectFormatUsage) &&
Objects.equals(this.businessObjectFormatFileType, businessObjectDataPartitionsRequest.businessObjectFormatFileType) &&
Objects.equals(this.businessObjectFormatVersion, businessObjectDataPartitionsRequest.businessObjectFormatVersion) &&
Objects.equals(this.partitionValueFilters, businessObjectDataPartitionsRequest.partitionValueFilters) &&
Objects.equals(this.businessObjectDataVersion, businessObjectDataPartitionsRequest.businessObjectDataVersion) &&
Objects.equals(this.storageNames, businessObjectDataPartitionsRequest.storageNames) &&
Objects.equals(this.allowMissingData, businessObjectDataPartitionsRequest.allowMissingData) &&
Objects.equals(this.includeAllRegisteredSubPartitions, businessObjectDataPartitionsRequest.includeAllRegisteredSubPartitions) &&
Objects.equals(this.suppressScanForUnregisteredSubPartitions, businessObjectDataPartitionsRequest.suppressScanForUnregisteredSubPartitions);
}
@Override
public int hashCode() {
return Objects.hash(namespace, businessObjectDefinitionName, businessObjectFormatUsage, businessObjectFormatFileType, businessObjectFormatVersion, partitionValueFilters, businessObjectDataVersion, storageNames, allowMissingData, includeAllRegisteredSubPartitions, suppressScanForUnregisteredSubPartitions);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BusinessObjectDataPartitionsRequest {\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(" businessObjectDataVersion: ").append(toIndentedString(businessObjectDataVersion)).append("\n");
sb.append(" storageNames: ").append(toIndentedString(storageNames)).append("\n");
sb.append(" allowMissingData: ").append(toIndentedString(allowMissingData)).append("\n");
sb.append(" includeAllRegisteredSubPartitions: ").append(toIndentedString(includeAllRegisteredSubPartitions)).append("\n");
sb.append(" suppressScanForUnregisteredSubPartitions: ").append(toIndentedString(suppressScanForUnregisteredSubPartitions)).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 ");
}
}