org.finra.herd.sdk.model.StoragePolicyUpdateRequest 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.StoragePolicyFilter;
import org.finra.herd.sdk.model.StoragePolicyRule;
import org.finra.herd.sdk.model.StoragePolicyTransition;
/**
* StoragePolicyUpdateRequest
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class StoragePolicyUpdateRequest {
@JsonProperty("storagePolicyRule")
private StoragePolicyRule storagePolicyRule = null;
@JsonProperty("storagePolicyFilter")
private StoragePolicyFilter storagePolicyFilter = null;
@JsonProperty("storagePolicyTransition")
private StoragePolicyTransition storagePolicyTransition = null;
@JsonProperty("status")
private String status = null;
public StoragePolicyUpdateRequest storagePolicyRule(StoragePolicyRule storagePolicyRule) {
this.storagePolicyRule = storagePolicyRule;
return this;
}
/**
* Get storagePolicyRule
* @return storagePolicyRule
**/
@ApiModelProperty(required = true, value = "")
public StoragePolicyRule getStoragePolicyRule() {
return storagePolicyRule;
}
public void setStoragePolicyRule(StoragePolicyRule storagePolicyRule) {
this.storagePolicyRule = storagePolicyRule;
}
public StoragePolicyUpdateRequest storagePolicyFilter(StoragePolicyFilter storagePolicyFilter) {
this.storagePolicyFilter = storagePolicyFilter;
return this;
}
/**
* Get storagePolicyFilter
* @return storagePolicyFilter
**/
@ApiModelProperty(required = true, value = "")
public StoragePolicyFilter getStoragePolicyFilter() {
return storagePolicyFilter;
}
public void setStoragePolicyFilter(StoragePolicyFilter storagePolicyFilter) {
this.storagePolicyFilter = storagePolicyFilter;
}
public StoragePolicyUpdateRequest storagePolicyTransition(StoragePolicyTransition storagePolicyTransition) {
this.storagePolicyTransition = storagePolicyTransition;
return this;
}
/**
* Get storagePolicyTransition
* @return storagePolicyTransition
**/
@ApiModelProperty(required = true, value = "")
public StoragePolicyTransition getStoragePolicyTransition() {
return storagePolicyTransition;
}
public void setStoragePolicyTransition(StoragePolicyTransition storagePolicyTransition) {
this.storagePolicyTransition = storagePolicyTransition;
}
public StoragePolicyUpdateRequest status(String status) {
this.status = status;
return this;
}
/**
* The status of the storage policy. Supported values are: ENABLED, DISABLED
* @return status
**/
@ApiModelProperty(required = true, value = "The status of the storage policy. Supported values are: ENABLED, DISABLED")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
StoragePolicyUpdateRequest storagePolicyUpdateRequest = (StoragePolicyUpdateRequest) o;
return Objects.equals(this.storagePolicyRule, storagePolicyUpdateRequest.storagePolicyRule) &&
Objects.equals(this.storagePolicyFilter, storagePolicyUpdateRequest.storagePolicyFilter) &&
Objects.equals(this.storagePolicyTransition, storagePolicyUpdateRequest.storagePolicyTransition) &&
Objects.equals(this.status, storagePolicyUpdateRequest.status);
}
@Override
public int hashCode() {
return Objects.hash(storagePolicyRule, storagePolicyFilter, storagePolicyTransition, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class StoragePolicyUpdateRequest {\n");
sb.append(" storagePolicyRule: ").append(toIndentedString(storagePolicyRule)).append("\n");
sb.append(" storagePolicyFilter: ").append(toIndentedString(storagePolicyFilter)).append("\n");
sb.append(" storagePolicyTransition: ").append(toIndentedString(storagePolicyTransition)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).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 ");
}
}