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

org.graylog.plugins.map.geoip.$AutoValue_IPinfoASN Maven / Gradle / Ivy

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

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

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

  private final String name;

  private final String route;

  private final String type;

  private final String asn;

  private final String domain;

  $AutoValue_IPinfoASN(
      @Nullable String name,
      @Nullable String route,
      @Nullable String type,
      @Nullable String asn,
      @Nullable String domain) {
    this.name = name;
    this.route = route;
    this.type = type;
    this.asn = asn;
    this.domain = domain;
  }

  @JsonProperty("name")
  @Nullable
  @Override
  public String name() {
    return name;
  }

  @JsonProperty("route")
  @Nullable
  @Override
  public String route() {
    return route;
  }

  @JsonProperty("type")
  @Nullable
  @Override
  public String type() {
    return type;
  }

  @JsonProperty("asn")
  @Nullable
  @Override
  public String asn() {
    return asn;
  }

  @JsonProperty("domain")
  @Nullable
  @Override
  public String domain() {
    return domain;
  }

  @Override
  public String toString() {
    return "IPinfoASN{"
        + "name=" + name + ", "
        + "route=" + route + ", "
        + "type=" + type + ", "
        + "asn=" + asn + ", "
        + "domain=" + domain
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof IPinfoASN) {
      IPinfoASN that = (IPinfoASN) o;
      return (this.name == null ? that.name() == null : this.name.equals(that.name()))
          && (this.route == null ? that.route() == null : this.route.equals(that.route()))
          && (this.type == null ? that.type() == null : this.type.equals(that.type()))
          && (this.asn == null ? that.asn() == null : this.asn.equals(that.asn()))
          && (this.domain == null ? that.domain() == null : this.domain.equals(that.domain()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= (name == null) ? 0 : name.hashCode();
    h$ *= 1000003;
    h$ ^= (route == null) ? 0 : route.hashCode();
    h$ *= 1000003;
    h$ ^= (type == null) ? 0 : type.hashCode();
    h$ *= 1000003;
    h$ ^= (asn == null) ? 0 : asn.hashCode();
    h$ *= 1000003;
    h$ ^= (domain == null) ? 0 : domain.hashCode();
    return h$;
  }

  static class Builder extends IPinfoASN.Builder {
    private String name;
    private String route;
    private String type;
    private String asn;
    private String domain;
    Builder() {
    }
    @Override
    public IPinfoASN.Builder name(String name) {
      this.name = name;
      return this;
    }
    @Override
    public IPinfoASN.Builder route(String route) {
      this.route = route;
      return this;
    }
    @Override
    public IPinfoASN.Builder type(String type) {
      this.type = type;
      return this;
    }
    @Override
    public IPinfoASN.Builder asn(String asn) {
      this.asn = asn;
      return this;
    }
    @Override
    public IPinfoASN.Builder domain(String domain) {
      this.domain = domain;
      return this;
    }
    @Override
    public IPinfoASN build() {
      return new AutoValue_IPinfoASN(
          this.name,
          this.route,
          this.type,
          this.asn,
          this.domain);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy