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

org.graylog.plugins.map.config.AutoValue_S3GeoIpFileService_BucketsAndKeys Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog.plugins.map.config;

import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_S3GeoIpFileService_BucketsAndKeys extends S3GeoIpFileService.BucketsAndKeys {

  private final String asnBucket;

  private final String asnKey;

  private final String cityBucket;

  private final String cityKey;

  AutoValue_S3GeoIpFileService_BucketsAndKeys(
      String asnBucket,
      String asnKey,
      String cityBucket,
      String cityKey) {
    if (asnBucket == null) {
      throw new NullPointerException("Null asnBucket");
    }
    this.asnBucket = asnBucket;
    if (asnKey == null) {
      throw new NullPointerException("Null asnKey");
    }
    this.asnKey = asnKey;
    if (cityBucket == null) {
      throw new NullPointerException("Null cityBucket");
    }
    this.cityBucket = cityBucket;
    if (cityKey == null) {
      throw new NullPointerException("Null cityKey");
    }
    this.cityKey = cityKey;
  }

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

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

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

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

  @Override
  public String toString() {
    return "BucketsAndKeys{"
        + "asnBucket=" + asnBucket + ", "
        + "asnKey=" + asnKey + ", "
        + "cityBucket=" + cityBucket + ", "
        + "cityKey=" + cityKey
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof S3GeoIpFileService.BucketsAndKeys) {
      S3GeoIpFileService.BucketsAndKeys that = (S3GeoIpFileService.BucketsAndKeys) o;
      return this.asnBucket.equals(that.asnBucket())
          && this.asnKey.equals(that.asnKey())
          && this.cityBucket.equals(that.cityBucket())
          && this.cityKey.equals(that.cityKey());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= asnBucket.hashCode();
    h$ *= 1000003;
    h$ ^= asnKey.hashCode();
    h$ *= 1000003;
    h$ ^= cityBucket.hashCode();
    h$ *= 1000003;
    h$ ^= cityKey.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy