org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.viewwidgets.AutoValue_ValueConfig Maven / Gradle / Ivy
package org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.viewwidgets;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ValueConfig extends ValueConfig {
private final int limit;
private AutoValue_ValueConfig(
int limit) {
this.limit = limit;
}
@JsonProperty("limit")
@Override
public int limit() {
return limit;
}
@Override
public String toString() {
return "ValueConfig{"
+ "limit=" + limit
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ValueConfig) {
ValueConfig that = (ValueConfig) o;
return this.limit == that.limit();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= limit;
return h$;
}
static final class Builder extends ValueConfig.Builder {
private Integer limit;
Builder() {
}
@Override
public ValueConfig.Builder limit(int limit) {
this.limit = limit;
return this;
}
@Override
public ValueConfig build() {
String missing = "";
if (this.limit == null) {
missing += " limit";
}
if (!missing.isEmpty()) {
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_ValueConfig(
this.limit);
}
}
}