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

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

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

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;

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

  private final String string;

  private final String pattern;

  private final boolean namedCapturesOnly;

  $AutoValue_GrokTestRequest(
      String string,
      String pattern,
      boolean namedCapturesOnly) {
    if (string == null) {
      throw new NullPointerException("Null string");
    }
    this.string = string;
    if (pattern == null) {
      throw new NullPointerException("Null pattern");
    }
    this.pattern = pattern;
    this.namedCapturesOnly = namedCapturesOnly;
  }

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

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

  @JsonProperty("named_captures_only")
  @Override
  public boolean namedCapturesOnly() {
    return namedCapturesOnly;
  }

  @Override
  public String toString() {
    return "GrokTestRequest{"
        + "string=" + string + ", "
        + "pattern=" + pattern + ", "
        + "namedCapturesOnly=" + namedCapturesOnly
        + "}";
  }

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

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= string.hashCode();
    h$ *= 1000003;
    h$ ^= pattern.hashCode();
    h$ *= 1000003;
    h$ ^= namedCapturesOnly ? 1231 : 1237;
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy