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

org.graylog2.rest.models.system.lookup.$AutoValue_ErrorStates Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog2.rest.models.system.lookup;

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

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

  private final Map tables;

  private final Map dataAdapters;

  private final Map caches;

  $AutoValue_ErrorStates(
      Map tables,
      Map dataAdapters,
      Map caches) {
    if (tables == null) {
      throw new NullPointerException("Null tables");
    }
    this.tables = tables;
    if (dataAdapters == null) {
      throw new NullPointerException("Null dataAdapters");
    }
    this.dataAdapters = dataAdapters;
    if (caches == null) {
      throw new NullPointerException("Null caches");
    }
    this.caches = caches;
  }

  @JsonProperty("tables")
  @Override
  public Map tables() {
    return tables;
  }

  @JsonProperty("data_adapters")
  @Override
  public Map dataAdapters() {
    return dataAdapters;
  }

  @JsonProperty("caches")
  @Override
  public Map caches() {
    return caches;
  }

  @Override
  public String toString() {
    return "ErrorStates{"
        + "tables=" + tables + ", "
        + "dataAdapters=" + dataAdapters + ", "
        + "caches=" + caches
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ErrorStates) {
      ErrorStates that = (ErrorStates) o;
      return this.tables.equals(that.tables())
          && this.dataAdapters.equals(that.dataAdapters())
          && this.caches.equals(that.caches());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= tables.hashCode();
    h$ *= 1000003;
    h$ ^= dataAdapters.hashCode();
    h$ *= 1000003;
    h$ ^= caches.hashCode();
    return h$;
  }

  static class Builder extends ErrorStates.Builder {
    private Map tables;
    private Map dataAdapters;
    private Map caches;
    Builder() {
    }
    @Override
    public ErrorStates.Builder tables(Map tables) {
      if (tables == null) {
        throw new NullPointerException("Null tables");
      }
      this.tables = tables;
      return this;
    }
    @Override
    public Map tables() {
      if (tables == null) {
        throw new IllegalStateException("Property \"tables\" has not been set");
      }
      return tables;
    }
    @Override
    public ErrorStates.Builder dataAdapters(Map dataAdapters) {
      if (dataAdapters == null) {
        throw new NullPointerException("Null dataAdapters");
      }
      this.dataAdapters = dataAdapters;
      return this;
    }
    @Override
    public Map dataAdapters() {
      if (dataAdapters == null) {
        throw new IllegalStateException("Property \"dataAdapters\" has not been set");
      }
      return dataAdapters;
    }
    @Override
    public ErrorStates.Builder caches(Map caches) {
      if (caches == null) {
        throw new NullPointerException("Null caches");
      }
      this.caches = caches;
      return this;
    }
    @Override
    public Map caches() {
      if (caches == null) {
        throw new IllegalStateException("Property \"caches\" has not been set");
      }
      return caches;
    }
    @Override
    public ErrorStates build() {
      String missing = "";
      if (this.tables == null) {
        missing += " tables";
      }
      if (this.dataAdapters == null) {
        missing += " dataAdapters";
      }
      if (this.caches == null) {
        missing += " caches";
      }
      if (!missing.isEmpty()) {
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_ErrorStates(
          this.tables,
          this.dataAdapters,
          this.caches);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy