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

com.oneops.infoblox.model.host.Ipv4Addrs Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package com.oneops.infoblox.model.host;

import com.google.auto.value.AutoValue;
import com.squareup.moshi.Json;
import com.squareup.moshi.JsonAdapter;
import com.squareup.moshi.Moshi;

/**
 * Host IPv4 object.
 *
 * @author Suresh G
 */
@AutoValue
public abstract class Ipv4Addrs {

  @Json(name = "_ref")
  public abstract String ref();

  public abstract String host();

  @Json(name = "ipv4addr")
  public abstract String ipv4Addr();

  @Json(name = "configure_for_dhcp")
  public abstract boolean configureForDhcp();

  public static Ipv4Addrs create(String ref, String host, String ipv4Addr,
      boolean configureForDhcp) {
    return new AutoValue_Ipv4Addrs(ref, host, ipv4Addr, configureForDhcp);
  }

  public static JsonAdapter jsonAdapter(Moshi moshi) {
    return new AutoValue_Ipv4Addrs.MoshiJsonAdapter(moshi);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy