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

com.oneops.infoblox.model.host.$AutoValue_Ipv4Addrs Maven / Gradle / Ivy


package com.oneops.infoblox.model.host;

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

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

  private final String ref;
  private final String host;
  private final String ipv4Addr;
  private final boolean configureForDhcp;

  $AutoValue_Ipv4Addrs(
      String ref,
      String host,
      String ipv4Addr,
      boolean configureForDhcp) {
    if (ref == null) {
      throw new NullPointerException("Null ref");
    }
    this.ref = ref;
    if (host == null) {
      throw new NullPointerException("Null host");
    }
    this.host = host;
    if (ipv4Addr == null) {
      throw new NullPointerException("Null ipv4Addr");
    }
    this.ipv4Addr = ipv4Addr;
    this.configureForDhcp = configureForDhcp;
  }

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

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

  @Json(name = "ipv4addr")
  @Override
  public String ipv4Addr() {
    return ipv4Addr;
  }

  @Json(name = "configure_for_dhcp")
  @Override
  public boolean configureForDhcp() {
    return configureForDhcp;
  }

  @Override
  public String toString() {
    return "Ipv4Addrs{"
         + "ref=" + ref + ", "
         + "host=" + host + ", "
         + "ipv4Addr=" + ipv4Addr + ", "
         + "configureForDhcp=" + configureForDhcp
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Ipv4Addrs) {
      Ipv4Addrs that = (Ipv4Addrs) o;
      return (this.ref.equals(that.ref()))
           && (this.host.equals(that.host()))
           && (this.ipv4Addr.equals(that.ipv4Addr()))
           && (this.configureForDhcp == that.configureForDhcp());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.ref.hashCode();
    h *= 1000003;
    h ^= this.host.hashCode();
    h *= 1000003;
    h ^= this.ipv4Addr.hashCode();
    h *= 1000003;
    h ^= this.configureForDhcp ? 1231 : 1237;
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy