org.finra.herd.sdk.model.BusinessObjectDataStatus 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;
/**
* BusinessObjectDataStatus
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class BusinessObjectDataStatus {
@JsonProperty("businessObjectFormatVersion")
private Integer businessObjectFormatVersion = null;
@JsonProperty("partitionValue")
private String partitionValue = null;
@JsonProperty("subPartitionValues")
private List subPartitionValues = null;
@JsonProperty("businessObjectDataVersion")
private Integer businessObjectDataVersion = null;
@JsonProperty("reason")
private String reason = null;
public BusinessObjectDataStatus businessObjectFormatVersion(Integer businessObjectFormatVersion) {
this.businessObjectFormatVersion = businessObjectFormatVersion;
return this;
}
/**
* The Business Object Format Version for a previously registered Business Object Format
* @return businessObjectFormatVersion
**/
@ApiModelProperty(value = "The Business Object Format Version for a previously registered Business Object Format")
public Integer getBusinessObjectFormatVersion() {
return businessObjectFormatVersion;
}
public void setBusinessObjectFormatVersion(Integer businessObjectFormatVersion) {
this.businessObjectFormatVersion = businessObjectFormatVersion;
}
public BusinessObjectDataStatus partitionValue(String partitionValue) {
this.partitionValue = partitionValue;
return this;
}
/**
* The partition value that the Business Object Data is associated with
* @return partitionValue
**/
@ApiModelProperty(required = true, value = "The partition value that the Business Object Data is associated with")
public String getPartitionValue() {
return partitionValue;
}
public void setPartitionValue(String partitionValue) {
this.partitionValue = partitionValue;
}
public BusinessObjectDataStatus subPartitionValues(List subPartitionValues) {
this.subPartitionValues = subPartitionValues;
return this;
}
public BusinessObjectDataStatus addSubPartitionValuesItem(String subPartitionValuesItem) {
if (this.subPartitionValues == null) {
this.subPartitionValues = new ArrayList();
}
this.subPartitionValues.add(subPartitionValuesItem);
return this;
}
/**
* A list of Sub-Partition values associated with a Business Object Data
* @return subPartitionValues
**/
@ApiModelProperty(value = "A list of Sub-Partition values associated with a Business Object Data")
public List getSubPartitionValues() {
return subPartitionValues;
}
public void setSubPartitionValues(List subPartitionValues) {
this.subPartitionValues = subPartitionValues;
}
public BusinessObjectDataStatus businessObjectDataVersion(Integer businessObjectDataVersion) {
this.businessObjectDataVersion = businessObjectDataVersion;
return this;
}
/**
* The numeric version of a Business Object Data
* @return businessObjectDataVersion
**/
@ApiModelProperty(value = "The numeric version of a Business Object Data")
public Integer getBusinessObjectDataVersion() {
return businessObjectDataVersion;
}
public void setBusinessObjectDataVersion(Integer businessObjectDataVersion) {
this.businessObjectDataVersion = businessObjectDataVersion;
}
public BusinessObjectDataStatus reason(String reason) {
this.reason = reason;
return this;
}
/**
* A reason for the Business Object Data not being available (NOT_REGISTERED, INVALID, etc...)
* @return reason
**/
@ApiModelProperty(value = "A reason for the Business Object Data not being available (NOT_REGISTERED, INVALID, etc...)")
public String getReason() {
return reason;
}
public void setReason(String reason) {
this.reason = reason;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BusinessObjectDataStatus businessObjectDataStatus = (BusinessObjectDataStatus) o;
return Objects.equals(this.businessObjectFormatVersion, businessObjectDataStatus.businessObjectFormatVersion) &&
Objects.equals(this.partitionValue, businessObjectDataStatus.partitionValue) &&
Objects.equals(this.subPartitionValues, businessObjectDataStatus.subPartitionValues) &&
Objects.equals(this.businessObjectDataVersion, businessObjectDataStatus.businessObjectDataVersion) &&
Objects.equals(this.reason, businessObjectDataStatus.reason);
}
@Override
public int hashCode() {
return Objects.hash(businessObjectFormatVersion, partitionValue, subPartitionValues, businessObjectDataVersion, reason);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BusinessObjectDataStatus {\n");
sb.append(" businessObjectFormatVersion: ").append(toIndentedString(businessObjectFormatVersion)).append("\n");
sb.append(" partitionValue: ").append(toIndentedString(partitionValue)).append("\n");
sb.append(" subPartitionValues: ").append(toIndentedString(subPartitionValues)).append("\n");
sb.append(" businessObjectDataVersion: ").append(toIndentedString(businessObjectDataVersion)).append("\n");
sb.append(" reason: ").append(toIndentedString(reason)).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 ");
}
}