All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.graylog2.contentpacks.model.entities.$AutoValue_DashboardEntity Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
package org.graylog2.contentpacks.model.entities;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import javax.annotation.processing.Generated;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import org.graylog2.contentpacks.model.entities.references.ValueReference;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_DashboardEntity extends DashboardEntity {

  private final @NotBlank ValueReference title;

  private final ValueReference description;

  private final @NotNull List widgets;

  $AutoValue_DashboardEntity(
      @NotBlank ValueReference title,
      ValueReference description,
      @NotNull List widgets) {
    if (title == null) {
      throw new NullPointerException("Null title");
    }
    this.title = title;
    if (description == null) {
      throw new NullPointerException("Null description");
    }
    this.description = description;
    if (widgets == null) {
      throw new NullPointerException("Null widgets");
    }
    this.widgets = widgets;
  }

  @JsonProperty("title")
  @Override
  public @NotBlank ValueReference title() {
    return title;
  }

  @JsonProperty("description")
  @Override
  public ValueReference description() {
    return description;
  }

  @JsonProperty("widgets")
  @Override
  public @NotNull List widgets() {
    return widgets;
  }

  @Override
  public String toString() {
    return "DashboardEntity{"
        + "title=" + title + ", "
        + "description=" + description + ", "
        + "widgets=" + widgets
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof DashboardEntity) {
      DashboardEntity that = (DashboardEntity) o;
      return this.title.equals(that.title())
          && this.description.equals(that.description())
          && this.widgets.equals(that.widgets());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= title.hashCode();
    h$ *= 1000003;
    h$ ^= description.hashCode();
    h$ *= 1000003;
    h$ ^= widgets.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy