org.finra.herd.sdk.model.StoragePolicyCreateRequest 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.StoragePolicyKey;
import org.finra.herd.sdk.model.StoragePolicyRule;
import org.finra.herd.sdk.model.StoragePolicyTransition;
/**
* StoragePolicyCreateRequest
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class StoragePolicyCreateRequest {
@JsonProperty("storagePolicyKey")
private StoragePolicyKey storagePolicyKey = null;
@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 StoragePolicyCreateRequest storagePolicyKey(StoragePolicyKey storagePolicyKey) {
this.storagePolicyKey = storagePolicyKey;
return this;
}
/**
* Get storagePolicyKey
* @return storagePolicyKey
**/
@ApiModelProperty(required = true, value = "")
public StoragePolicyKey getStoragePolicyKey() {
return storagePolicyKey;
}
public void setStoragePolicyKey(StoragePolicyKey storagePolicyKey) {
this.storagePolicyKey = storagePolicyKey;
}
public StoragePolicyCreateRequest 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 StoragePolicyCreateRequest 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 StoragePolicyCreateRequest 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 StoragePolicyCreateRequest 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;
}
StoragePolicyCreateRequest storagePolicyCreateRequest = (StoragePolicyCreateRequest) o;
return Objects.equals(this.storagePolicyKey, storagePolicyCreateRequest.storagePolicyKey) &&
Objects.equals(this.storagePolicyRule, storagePolicyCreateRequest.storagePolicyRule) &&
Objects.equals(this.storagePolicyFilter, storagePolicyCreateRequest.storagePolicyFilter) &&
Objects.equals(this.storagePolicyTransition, storagePolicyCreateRequest.storagePolicyTransition) &&
Objects.equals(this.status, storagePolicyCreateRequest.status);
}
@Override
public int hashCode() {
return Objects.hash(storagePolicyKey, storagePolicyRule, storagePolicyFilter, storagePolicyTransition, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class StoragePolicyCreateRequest {\n");
sb.append(" storagePolicyKey: ").append(toIndentedString(storagePolicyKey)).append("\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 ");
}
}