org.finra.herd.sdk.model.BusinessObjectDataStorageUnitStatusUpdateResponse 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 org.finra.herd.sdk.model.BusinessObjectDataStorageUnitKey;
/**
* BusinessObjectDataStorageUnitStatusUpdateResponse
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class BusinessObjectDataStorageUnitStatusUpdateResponse {
@JsonProperty("businessObjectDataStorageUnitKey")
private BusinessObjectDataStorageUnitKey businessObjectDataStorageUnitKey = null;
@JsonProperty("status")
private String status = null;
@JsonProperty("previousStatus")
private String previousStatus = null;
public BusinessObjectDataStorageUnitStatusUpdateResponse businessObjectDataStorageUnitKey(BusinessObjectDataStorageUnitKey businessObjectDataStorageUnitKey) {
this.businessObjectDataStorageUnitKey = businessObjectDataStorageUnitKey;
return this;
}
/**
* Get businessObjectDataStorageUnitKey
* @return businessObjectDataStorageUnitKey
**/
@ApiModelProperty(required = true, value = "")
public BusinessObjectDataStorageUnitKey getBusinessObjectDataStorageUnitKey() {
return businessObjectDataStorageUnitKey;
}
public void setBusinessObjectDataStorageUnitKey(BusinessObjectDataStorageUnitKey businessObjectDataStorageUnitKey) {
this.businessObjectDataStorageUnitKey = businessObjectDataStorageUnitKey;
}
public BusinessObjectDataStorageUnitStatusUpdateResponse status(String status) {
this.status = status;
return this;
}
/**
* The status of the Business Object Data Storage Unit
* @return status
**/
@ApiModelProperty(required = true, value = "The status of the Business Object Data Storage Unit")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public BusinessObjectDataStorageUnitStatusUpdateResponse previousStatus(String previousStatus) {
this.previousStatus = previousStatus;
return this;
}
/**
* The status of the Business Object Data Storage Unit prior to the update
* @return previousStatus
**/
@ApiModelProperty(required = true, value = "The status of the Business Object Data Storage Unit prior to the update")
public String getPreviousStatus() {
return previousStatus;
}
public void setPreviousStatus(String previousStatus) {
this.previousStatus = previousStatus;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BusinessObjectDataStorageUnitStatusUpdateResponse businessObjectDataStorageUnitStatusUpdateResponse = (BusinessObjectDataStorageUnitStatusUpdateResponse) o;
return Objects.equals(this.businessObjectDataStorageUnitKey, businessObjectDataStorageUnitStatusUpdateResponse.businessObjectDataStorageUnitKey) &&
Objects.equals(this.status, businessObjectDataStorageUnitStatusUpdateResponse.status) &&
Objects.equals(this.previousStatus, businessObjectDataStorageUnitStatusUpdateResponse.previousStatus);
}
@Override
public int hashCode() {
return Objects.hash(businessObjectDataStorageUnitKey, status, previousStatus);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BusinessObjectDataStorageUnitStatusUpdateResponse {\n");
sb.append(" businessObjectDataStorageUnitKey: ").append(toIndentedString(businessObjectDataStorageUnitKey)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" previousStatus: ").append(toIndentedString(previousStatus)).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 ");
}
}