org.finra.herd.sdk.model.StoragePolicyRule 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;
/**
* StoragePolicyRule
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class StoragePolicyRule {
@JsonProperty("ruleType")
private String ruleType = null;
@JsonProperty("ruleValue")
private Integer ruleValue = null;
public StoragePolicyRule ruleType(String ruleType) {
this.ruleType = ruleType;
return this;
}
/**
* The storage policy rule type. Supported rule types are: DAYS_SINCE_BDATA_REGISTERED, DAYS_SINCE_BDATA_PRIMARY_PARTITION_VALUE
* @return ruleType
**/
@ApiModelProperty(required = true, value = "The storage policy rule type. Supported rule types are: DAYS_SINCE_BDATA_REGISTERED, DAYS_SINCE_BDATA_PRIMARY_PARTITION_VALUE ")
public String getRuleType() {
return ruleType;
}
public void setRuleType(String ruleType) {
this.ruleType = ruleType;
}
public StoragePolicyRule ruleValue(Integer ruleValue) {
this.ruleValue = ruleValue;
return this;
}
/**
* The storage policy rule value. This parameter is required
* @return ruleValue
**/
@ApiModelProperty(value = "The storage policy rule value. This parameter is required")
public Integer getRuleValue() {
return ruleValue;
}
public void setRuleValue(Integer ruleValue) {
this.ruleValue = ruleValue;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
StoragePolicyRule storagePolicyRule = (StoragePolicyRule) o;
return Objects.equals(this.ruleType, storagePolicyRule.ruleType) &&
Objects.equals(this.ruleValue, storagePolicyRule.ruleValue);
}
@Override
public int hashCode() {
return Objects.hash(ruleType, ruleValue);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class StoragePolicyRule {\n");
sb.append(" ruleType: ").append(toIndentedString(ruleType)).append("\n");
sb.append(" ruleValue: ").append(toIndentedString(ruleValue)).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 ");
}
}