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

org.graylog2.rest.models.system.loggers.responses.$AutoValue_SingleSubsystemSummary Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
package org.graylog2.rest.models.system.loggers.responses;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import javax.annotation.Generated;

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

  private final String title;

  private final List categories;

  private final String description;

  private final String level;

  private final int levelSyslog;

  $AutoValue_SingleSubsystemSummary(
      String title,
      List categories,
      String description,
      String level,
      int levelSyslog) {
    if (title == null) {
      throw new NullPointerException("Null title");
    }
    this.title = title;
    if (categories == null) {
      throw new NullPointerException("Null categories");
    }
    this.categories = categories;
    if (description == null) {
      throw new NullPointerException("Null description");
    }
    this.description = description;
    if (level == null) {
      throw new NullPointerException("Null level");
    }
    this.level = level;
    this.levelSyslog = levelSyslog;
  }

  @JsonProperty
  @Override
  public String title() {
    return title;
  }

  @JsonProperty
  @Override
  public List categories() {
    return categories;
  }

  @JsonProperty
  @Override
  public String description() {
    return description;
  }

  @JsonProperty
  @Override
  public String level() {
    return level;
  }

  @JsonProperty("level_syslog")
  @Override
  public int levelSyslog() {
    return levelSyslog;
  }

  @Override
  public String toString() {
    return "SingleSubsystemSummary{"
         + "title=" + title + ", "
         + "categories=" + categories + ", "
         + "description=" + description + ", "
         + "level=" + level + ", "
         + "levelSyslog=" + levelSyslog
        + "}";
  }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy