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

org.graylog2.migrations.AutoValue_V20191121145100_FixDefaultGrokPatterns_PatternToMigrate Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
package org.graylog2.migrations;

import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_V20191121145100_FixDefaultGrokPatterns_PatternToMigrate extends V20191121145100_FixDefaultGrokPatterns.PatternToMigrate {

  private final String name;

  private final String migrateFrom;

  private final String migrateTo;

  private AutoValue_V20191121145100_FixDefaultGrokPatterns_PatternToMigrate(
      String name,
      String migrateFrom,
      String migrateTo) {
    this.name = name;
    this.migrateFrom = migrateFrom;
    this.migrateTo = migrateTo;
  }

  @Override
  public String name() {
    return name;
  }

  @Override
  public String migrateFrom() {
    return migrateFrom;
  }

  @Override
  public String migrateTo() {
    return migrateTo;
  }

  @Override
  public String toString() {
    return "PatternToMigrate{"
        + "name=" + name + ", "
        + "migrateFrom=" + migrateFrom + ", "
        + "migrateTo=" + migrateTo
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof V20191121145100_FixDefaultGrokPatterns.PatternToMigrate) {
      V20191121145100_FixDefaultGrokPatterns.PatternToMigrate that = (V20191121145100_FixDefaultGrokPatterns.PatternToMigrate) o;
      return this.name.equals(that.name())
          && this.migrateFrom.equals(that.migrateFrom())
          && this.migrateTo.equals(that.migrateTo());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= name.hashCode();
    h$ *= 1000003;
    h$ ^= migrateFrom.hashCode();
    h$ *= 1000003;
    h$ ^= migrateTo.hashCode();
    return h$;
  }

  static final class Builder extends V20191121145100_FixDefaultGrokPatterns.PatternToMigrate.Builder {
    private String name;
    private String migrateFrom;
    private String migrateTo;
    Builder() {
    }
    @Override
    public V20191121145100_FixDefaultGrokPatterns.PatternToMigrate.Builder name(String name) {
      if (name == null) {
        throw new NullPointerException("Null name");
      }
      this.name = name;
      return this;
    }
    @Override
    public V20191121145100_FixDefaultGrokPatterns.PatternToMigrate.Builder migrateFrom(String migrateFrom) {
      if (migrateFrom == null) {
        throw new NullPointerException("Null migrateFrom");
      }
      this.migrateFrom = migrateFrom;
      return this;
    }
    @Override
    public V20191121145100_FixDefaultGrokPatterns.PatternToMigrate.Builder migrateTo(String migrateTo) {
      if (migrateTo == null) {
        throw new NullPointerException("Null migrateTo");
      }
      this.migrateTo = migrateTo;
      return this;
    }
    @Override
    public V20191121145100_FixDefaultGrokPatterns.PatternToMigrate build() {
      if (this.name == null
          || this.migrateFrom == null
          || this.migrateTo == null) {
        StringBuilder missing = new StringBuilder();
        if (this.name == null) {
          missing.append(" name");
        }
        if (this.migrateFrom == null) {
          missing.append(" migrateFrom");
        }
        if (this.migrateTo == null) {
          missing.append(" migrateTo");
        }
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_V20191121145100_FixDefaultGrokPatterns_PatternToMigrate(
          this.name,
          this.migrateFrom,
          this.migrateTo);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy