org.graylog2.datatiering.fallback.$AutoValue_FallbackDataTieringConfig Maven / Gradle / Ivy
package org.graylog2.datatiering.fallback;
import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.NotNull;
import javax.annotation.processing.Generated;
import org.joda.time.Period;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_FallbackDataTieringConfig extends FallbackDataTieringConfig {
private final @NotNull String type;
private final @NotNull Period indexLifetimeMin;
private final @NotNull Period indexLifetimeMax;
$AutoValue_FallbackDataTieringConfig(
@NotNull String type,
@NotNull Period indexLifetimeMin,
@NotNull Period indexLifetimeMax) {
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
if (indexLifetimeMin == null) {
throw new NullPointerException("Null indexLifetimeMin");
}
this.indexLifetimeMin = indexLifetimeMin;
if (indexLifetimeMax == null) {
throw new NullPointerException("Null indexLifetimeMax");
}
this.indexLifetimeMax = indexLifetimeMax;
}
@JsonProperty("type")
@Override
public @NotNull String type() {
return type;
}
@JsonProperty("index_lifetime_min")
@Override
public @NotNull Period indexLifetimeMin() {
return indexLifetimeMin;
}
@JsonProperty("index_lifetime_max")
@Override
public @NotNull Period indexLifetimeMax() {
return indexLifetimeMax;
}
@Override
public String toString() {
return "FallbackDataTieringConfig{"
+ "type=" + type + ", "
+ "indexLifetimeMin=" + indexLifetimeMin + ", "
+ "indexLifetimeMax=" + indexLifetimeMax
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof FallbackDataTieringConfig) {
FallbackDataTieringConfig that = (FallbackDataTieringConfig) o;
return this.type.equals(that.type())
&& this.indexLifetimeMin.equals(that.indexLifetimeMin())
&& this.indexLifetimeMax.equals(that.indexLifetimeMax());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= type.hashCode();
h$ *= 1000003;
h$ ^= indexLifetimeMin.hashCode();
h$ *= 1000003;
h$ ^= indexLifetimeMax.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy