org.finra.herd.sdk.model.BusinessObjectDataSearchKey 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.AttributeValueFilter;
import org.finra.herd.sdk.model.PartitionValueFilter;
import org.finra.herd.sdk.model.RegistrationDateRangeFilter;
/**
* BusinessObjectDataSearchKey
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class BusinessObjectDataSearchKey {
@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("registrationDateRangeFilter")
private RegistrationDateRangeFilter registrationDateRangeFilter = null;
@JsonProperty("attributeValueFilters")
private List attributeValueFilters = null;
@JsonProperty("filterOnLatestValidVersion")
private Boolean filterOnLatestValidVersion = null;
@JsonProperty("filterOnRetentionExpiration")
private Boolean filterOnRetentionExpiration = null;
public BusinessObjectDataSearchKey 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 BusinessObjectDataSearchKey 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 BusinessObjectDataSearchKey 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(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 BusinessObjectDataSearchKey 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(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 BusinessObjectDataSearchKey businessObjectFormatVersion(Integer businessObjectFormatVersion) {
this.businessObjectFormatVersion = businessObjectFormatVersion;
return this;
}
/**
* The numeric version of a Business Object Format. Each time a format is registered, the new version will be the previous version + 1
* @return businessObjectFormatVersion
**/
@ApiModelProperty(value = "The numeric version of a Business Object Format. Each time a format is registered, the new version will be the previous version + 1 ")
public Integer getBusinessObjectFormatVersion() {
return businessObjectFormatVersion;
}
public void setBusinessObjectFormatVersion(Integer businessObjectFormatVersion) {
this.businessObjectFormatVersion = businessObjectFormatVersion;
}
public BusinessObjectDataSearchKey partitionValueFilters(List partitionValueFilters) {
this.partitionValueFilters = partitionValueFilters;
return this;
}
public BusinessObjectDataSearchKey addPartitionValueFiltersItem(PartitionValueFilter partitionValueFiltersItem) {
if (this.partitionValueFilters == null) {
this.partitionValueFilters = new ArrayList();
}
this.partitionValueFilters.add(partitionValueFiltersItem);
return this;
}
/**
* A container for Partition Value Filters
* @return partitionValueFilters
**/
@ApiModelProperty(value = "A container for Partition Value Filters")
public List getPartitionValueFilters() {
return partitionValueFilters;
}
public void setPartitionValueFilters(List partitionValueFilters) {
this.partitionValueFilters = partitionValueFilters;
}
public BusinessObjectDataSearchKey registrationDateRangeFilter(RegistrationDateRangeFilter registrationDateRangeFilter) {
this.registrationDateRangeFilter = registrationDateRangeFilter;
return this;
}
/**
* Get registrationDateRangeFilter
* @return registrationDateRangeFilter
**/
@ApiModelProperty(value = "")
public RegistrationDateRangeFilter getRegistrationDateRangeFilter() {
return registrationDateRangeFilter;
}
public void setRegistrationDateRangeFilter(RegistrationDateRangeFilter registrationDateRangeFilter) {
this.registrationDateRangeFilter = registrationDateRangeFilter;
}
public BusinessObjectDataSearchKey attributeValueFilters(List attributeValueFilters) {
this.attributeValueFilters = attributeValueFilters;
return this;
}
public BusinessObjectDataSearchKey addAttributeValueFiltersItem(AttributeValueFilter attributeValueFiltersItem) {
if (this.attributeValueFilters == null) {
this.attributeValueFilters = new ArrayList();
}
this.attributeValueFilters.add(attributeValueFiltersItem);
return this;
}
/**
* A container for Attribute Value Filters
* @return attributeValueFilters
**/
@ApiModelProperty(value = "A container for Attribute Value Filters")
public List getAttributeValueFilters() {
return attributeValueFilters;
}
public void setAttributeValueFilters(List attributeValueFilters) {
this.attributeValueFilters = attributeValueFilters;
}
public BusinessObjectDataSearchKey filterOnLatestValidVersion(Boolean filterOnLatestValidVersion) {
this.filterOnLatestValidVersion = filterOnLatestValidVersion;
return this;
}
/**
* The business object is the latest valid version
* @return filterOnLatestValidVersion
**/
@ApiModelProperty(value = "The business object is the latest valid version")
public Boolean getFilterOnLatestValidVersion() {
return filterOnLatestValidVersion;
}
public void setFilterOnLatestValidVersion(Boolean filterOnLatestValidVersion) {
this.filterOnLatestValidVersion = filterOnLatestValidVersion;
}
public BusinessObjectDataSearchKey filterOnRetentionExpiration(Boolean filterOnRetentionExpiration) {
this.filterOnRetentionExpiration = filterOnRetentionExpiration;
return this;
}
/**
* The filter for expired business object data with its business object format retention type as PARTITION_VALUE and the business object data partition value plus the retentionPeriodInDays specified in the business object format expired. Retention information specified in business object format is version less
* @return filterOnRetentionExpiration
**/
@ApiModelProperty(value = "The filter for expired business object data with its business object format retention type as PARTITION_VALUE and the business object data partition value plus the retentionPeriodInDays specified in the business object format expired. Retention information specified in business object format is version less ")
public Boolean getFilterOnRetentionExpiration() {
return filterOnRetentionExpiration;
}
public void setFilterOnRetentionExpiration(Boolean filterOnRetentionExpiration) {
this.filterOnRetentionExpiration = filterOnRetentionExpiration;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BusinessObjectDataSearchKey businessObjectDataSearchKey = (BusinessObjectDataSearchKey) o;
return Objects.equals(this.namespace, businessObjectDataSearchKey.namespace) &&
Objects.equals(this.businessObjectDefinitionName, businessObjectDataSearchKey.businessObjectDefinitionName) &&
Objects.equals(this.businessObjectFormatUsage, businessObjectDataSearchKey.businessObjectFormatUsage) &&
Objects.equals(this.businessObjectFormatFileType, businessObjectDataSearchKey.businessObjectFormatFileType) &&
Objects.equals(this.businessObjectFormatVersion, businessObjectDataSearchKey.businessObjectFormatVersion) &&
Objects.equals(this.partitionValueFilters, businessObjectDataSearchKey.partitionValueFilters) &&
Objects.equals(this.registrationDateRangeFilter, businessObjectDataSearchKey.registrationDateRangeFilter) &&
Objects.equals(this.attributeValueFilters, businessObjectDataSearchKey.attributeValueFilters) &&
Objects.equals(this.filterOnLatestValidVersion, businessObjectDataSearchKey.filterOnLatestValidVersion) &&
Objects.equals(this.filterOnRetentionExpiration, businessObjectDataSearchKey.filterOnRetentionExpiration);
}
@Override
public int hashCode() {
return Objects.hash(namespace, businessObjectDefinitionName, businessObjectFormatUsage, businessObjectFormatFileType, businessObjectFormatVersion, partitionValueFilters, registrationDateRangeFilter, attributeValueFilters, filterOnLatestValidVersion, filterOnRetentionExpiration);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BusinessObjectDataSearchKey {\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(" registrationDateRangeFilter: ").append(toIndentedString(registrationDateRangeFilter)).append("\n");
sb.append(" attributeValueFilters: ").append(toIndentedString(attributeValueFilters)).append("\n");
sb.append(" filterOnLatestValidVersion: ").append(toIndentedString(filterOnLatestValidVersion)).append("\n");
sb.append(" filterOnRetentionExpiration: ").append(toIndentedString(filterOnRetentionExpiration)).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 ");
}
}