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

org.graylog2.rest.models.tools.requests.$AutoValue_LookupTableTestRequest Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;
import javax.validation.constraints.NotEmpty;

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

  private final @NotEmpty String string;

  private final @NotEmpty String lookupTableName;

  $AutoValue_LookupTableTestRequest(
      @NotEmpty String string,
      @NotEmpty String lookupTableName) {
    if (string == null) {
      throw new NullPointerException("Null string");
    }
    this.string = string;
    if (lookupTableName == null) {
      throw new NullPointerException("Null lookupTableName");
    }
    this.lookupTableName = lookupTableName;
  }

  @JsonProperty("string")
  @Override
  public @NotEmpty String string() {
    return string;
  }

  @JsonProperty("lookup_table_name")
  @Override
  public @NotEmpty String lookupTableName() {
    return lookupTableName;
  }

  @Override
  public String toString() {
    return "LookupTableTestRequest{"
        + "string=" + string + ", "
        + "lookupTableName=" + lookupTableName
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof LookupTableTestRequest) {
      LookupTableTestRequest that = (LookupTableTestRequest) o;
      return this.string.equals(that.string())
          && this.lookupTableName.equals(that.lookupTableName());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= string.hashCode();
    h$ *= 1000003;
    h$ ^= lookupTableName.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy