org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.AutoValue_Dashboard Maven / Gradle / Ivy
package org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Generated;
import org.joda.time.DateTime;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Dashboard extends Dashboard {
private final String id;
private final String title;
private final String description;
private final Optional contentPack;
private final String creatorUserId;
private final DateTime createdAt;
private final Map widgetPositions;
private final List widgets;
AutoValue_Dashboard(
String id,
String title,
String description,
Optional contentPack,
String creatorUserId,
DateTime createdAt,
Map widgetPositions,
List widgets) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
if (title == null) {
throw new NullPointerException("Null title");
}
this.title = title;
if (description == null) {
throw new NullPointerException("Null description");
}
this.description = description;
if (contentPack == null) {
throw new NullPointerException("Null contentPack");
}
this.contentPack = contentPack;
if (creatorUserId == null) {
throw new NullPointerException("Null creatorUserId");
}
this.creatorUserId = creatorUserId;
if (createdAt == null) {
throw new NullPointerException("Null createdAt");
}
this.createdAt = createdAt;
if (widgetPositions == null) {
throw new NullPointerException("Null widgetPositions");
}
this.widgetPositions = widgetPositions;
if (widgets == null) {
throw new NullPointerException("Null widgets");
}
this.widgets = widgets;
}
@JsonProperty("_id")
@Override
String id() {
return id;
}
@JsonProperty("title")
@Override
String title() {
return title;
}
@JsonProperty("description")
@Override
String description() {
return description;
}
@JsonProperty("content_pack")
@Override
Optional contentPack() {
return contentPack;
}
@JsonProperty("creator_user_id")
@Override
String creatorUserId() {
return creatorUserId;
}
@JsonProperty("created_at")
@Override
DateTime createdAt() {
return createdAt;
}
@JsonProperty("positions")
@Override
Map widgetPositions() {
return widgetPositions;
}
@JsonProperty("widgets")
@Override
List widgets() {
return widgets;
}
@Override
public String toString() {
return "Dashboard{"
+ "id=" + id + ", "
+ "title=" + title + ", "
+ "description=" + description + ", "
+ "contentPack=" + contentPack + ", "
+ "creatorUserId=" + creatorUserId + ", "
+ "createdAt=" + createdAt + ", "
+ "widgetPositions=" + widgetPositions + ", "
+ "widgets=" + widgets
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Dashboard) {
Dashboard that = (Dashboard) o;
return this.id.equals(that.id())
&& this.title.equals(that.title())
&& this.description.equals(that.description())
&& this.contentPack.equals(that.contentPack())
&& this.creatorUserId.equals(that.creatorUserId())
&& this.createdAt.equals(that.createdAt())
&& this.widgetPositions.equals(that.widgetPositions())
&& this.widgets.equals(that.widgets());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= id.hashCode();
h$ *= 1000003;
h$ ^= title.hashCode();
h$ *= 1000003;
h$ ^= description.hashCode();
h$ *= 1000003;
h$ ^= contentPack.hashCode();
h$ *= 1000003;
h$ ^= creatorUserId.hashCode();
h$ *= 1000003;
h$ ^= createdAt.hashCode();
h$ *= 1000003;
h$ ^= widgetPositions.hashCode();
h$ *= 1000003;
h$ ^= widgets.hashCode();
return h$;
}
}