org.graylog2.datatiering.$AutoValue_DataTieringState Maven / Gradle / Ivy
package org.graylog2.datatiering;
import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.NotNull;
import java.util.List;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_DataTieringState extends DataTieringState {
private final @NotNull String type;
private final @NotNull List warmTierRequirements;
$AutoValue_DataTieringState(
@NotNull String type,
@NotNull List warmTierRequirements) {
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
if (warmTierRequirements == null) {
throw new NullPointerException("Null warmTierRequirements");
}
this.warmTierRequirements = warmTierRequirements;
}
@JsonProperty("type")
@Override
public @NotNull String type() {
return type;
}
@JsonProperty("warm_tier_requirements")
@Override
public @NotNull List warmTierRequirements() {
return warmTierRequirements;
}
@Override
public String toString() {
return "DataTieringState{"
+ "type=" + type + ", "
+ "warmTierRequirements=" + warmTierRequirements
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof DataTieringState) {
DataTieringState that = (DataTieringState) o;
return this.type.equals(that.type())
&& this.warmTierRequirements.equals(that.warmTierRequirements());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= type.hashCode();
h$ *= 1000003;
h$ ^= warmTierRequirements.hashCode();
return h$;
}
static class Builder extends DataTieringState.Builder {
private @NotNull String type;
private @NotNull List warmTierRequirements;
Builder() {
}
@Override
public DataTieringState.Builder type(@NotNull String type) {
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
return this;
}
@Override
public DataTieringState.Builder warmTierRequirements(@NotNull List warmTierRequirements) {
if (warmTierRequirements == null) {
throw new NullPointerException("Null warmTierRequirements");
}
this.warmTierRequirements = warmTierRequirements;
return this;
}
@Override
public DataTieringState build() {
if (this.type == null
|| this.warmTierRequirements == null) {
StringBuilder missing = new StringBuilder();
if (this.type == null) {
missing.append(" type");
}
if (this.warmTierRequirements == null) {
missing.append(" warmTierRequirements");
}
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_DataTieringState(
this.type,
this.warmTierRequirements);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy