org.graylog2.rest.models.system.indices.AutoValue_RetentionStrategies_Context Maven / Gradle / Ivy
package org.graylog2.rest.models.system.indices;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;
import org.joda.time.Period;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_RetentionStrategies_Context extends RetentionStrategies.Context {
private final Period maxIndexRetentionPeriod;
AutoValue_RetentionStrategies_Context(
@Nullable Period maxIndexRetentionPeriod) {
this.maxIndexRetentionPeriod = maxIndexRetentionPeriod;
}
@Nullable
@JsonProperty("max_index_retention_period")
@Override
public Period maxIndexRetentionPeriod() {
return maxIndexRetentionPeriod;
}
@Override
public String toString() {
return "Context{"
+ "maxIndexRetentionPeriod=" + maxIndexRetentionPeriod
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof RetentionStrategies.Context) {
RetentionStrategies.Context that = (RetentionStrategies.Context) o;
return (this.maxIndexRetentionPeriod == null ? that.maxIndexRetentionPeriod() == null : this.maxIndexRetentionPeriod.equals(that.maxIndexRetentionPeriod()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (maxIndexRetentionPeriod == null) ? 0 : maxIndexRetentionPeriod.hashCode();
return h$;
}
}