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

com.oneops.infoblox.model.aaaa.$AutoValue_AAAA Maven / Gradle / Ivy


package com.oneops.infoblox.model.aaaa;

import com.squareup.moshi.Json;
import javax.annotation.Generated;
import javax.annotation.Nullable;

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

  private final String ref;
  private final String ipv6Addr;
  private final String name;
  private final String view;

  $AutoValue_AAAA(
      String ref,
      String ipv6Addr,
      String name,
      @Nullable String view) {
    if (ref == null) {
      throw new NullPointerException("Null ref");
    }
    this.ref = ref;
    if (ipv6Addr == null) {
      throw new NullPointerException("Null ipv6Addr");
    }
    this.ipv6Addr = ipv6Addr;
    if (name == null) {
      throw new NullPointerException("Null name");
    }
    this.name = name;
    this.view = view;
  }

  @Json(name = "_ref")
  @Override
  public String ref() {
    return ref;
  }

  @Json(name = "ipv6addr")
  @Override
  public String ipv6Addr() {
    return ipv6Addr;
  }

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

  @Nullable
  @Override
  public String view() {
    return view;
  }

  @Override
  public String toString() {
    return "AAAA{"
         + "ref=" + ref + ", "
         + "ipv6Addr=" + ipv6Addr + ", "
         + "name=" + name + ", "
         + "view=" + view
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof AAAA) {
      AAAA that = (AAAA) o;
      return (this.ref.equals(that.ref()))
           && (this.ipv6Addr.equals(that.ipv6Addr()))
           && (this.name.equals(that.name()))
           && ((this.view == null) ? (that.view() == null) : this.view.equals(that.view()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.ref.hashCode();
    h *= 1000003;
    h ^= this.ipv6Addr.hashCode();
    h *= 1000003;
    h ^= this.name.hashCode();
    h *= 1000003;
    h ^= (view == null) ? 0 : this.view.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy