org.graylog2.contentpacks.model.entities.$AutoValue_DashboardWidgetEntity Maven / Gradle / Ivy
package org.graylog2.contentpacks.model.entities;
import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.PositiveOrZero;
import java.util.Optional;
import javax.annotation.processing.Generated;
import org.graylog2.contentpacks.model.entities.references.ReferenceMap;
import org.graylog2.contentpacks.model.entities.references.ValueReference;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_DashboardWidgetEntity extends DashboardWidgetEntity {
private final @NotNull ValueReference id;
private final @NotNull ValueReference description;
private final @NotBlank ValueReference type;
private final @PositiveOrZero ValueReference cacheTime;
private final @NotNull TimeRangeEntity timeRange;
private final @NotNull ReferenceMap configuration;
private final Optional position;
$AutoValue_DashboardWidgetEntity(
@NotNull ValueReference id,
@NotNull ValueReference description,
@NotBlank ValueReference type,
@PositiveOrZero ValueReference cacheTime,
@NotNull TimeRangeEntity timeRange,
@NotNull ReferenceMap configuration,
Optional position) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
if (description == null) {
throw new NullPointerException("Null description");
}
this.description = description;
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
if (cacheTime == null) {
throw new NullPointerException("Null cacheTime");
}
this.cacheTime = cacheTime;
if (timeRange == null) {
throw new NullPointerException("Null timeRange");
}
this.timeRange = timeRange;
if (configuration == null) {
throw new NullPointerException("Null configuration");
}
this.configuration = configuration;
if (position == null) {
throw new NullPointerException("Null position");
}
this.position = position;
}
@JsonProperty("id")
@Override
public @NotNull ValueReference id() {
return id;
}
@JsonProperty("description")
@Override
public @NotNull ValueReference description() {
return description;
}
@JsonProperty("type")
@Override
public @NotBlank ValueReference type() {
return type;
}
@JsonProperty("cache_time")
@Override
public @PositiveOrZero ValueReference cacheTime() {
return cacheTime;
}
@JsonProperty("time_range")
@Override
public @NotNull TimeRangeEntity timeRange() {
return timeRange;
}
@JsonProperty("configuration")
@Override
public @NotNull ReferenceMap configuration() {
return configuration;
}
@JsonProperty("position")
@Override
public Optional position() {
return position;
}
@Override
public String toString() {
return "DashboardWidgetEntity{"
+ "id=" + id + ", "
+ "description=" + description + ", "
+ "type=" + type + ", "
+ "cacheTime=" + cacheTime + ", "
+ "timeRange=" + timeRange + ", "
+ "configuration=" + configuration + ", "
+ "position=" + position
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof DashboardWidgetEntity) {
DashboardWidgetEntity that = (DashboardWidgetEntity) o;
return this.id.equals(that.id())
&& this.description.equals(that.description())
&& this.type.equals(that.type())
&& this.cacheTime.equals(that.cacheTime())
&& this.timeRange.equals(that.timeRange())
&& this.configuration.equals(that.configuration())
&& this.position.equals(that.position());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= id.hashCode();
h$ *= 1000003;
h$ ^= description.hashCode();
h$ *= 1000003;
h$ ^= type.hashCode();
h$ *= 1000003;
h$ ^= cacheTime.hashCode();
h$ *= 1000003;
h$ ^= timeRange.hashCode();
h$ *= 1000003;
h$ ^= configuration.hashCode();
h$ *= 1000003;
h$ ^= position.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy