![JAR search and dependency download from the Maven repository](/logo.png)
com.oneops.infoblox.model.host.$AutoValue_Host Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infoblox-java Show documentation
Show all versions of infoblox-java Show documentation
A pure java API for Infoblox DNS appliance.
package com.oneops.infoblox.model.host;
import com.squareup.moshi.Json;
import java.util.List;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_Host extends Host {
private final String view;
private final List aliases;
private final String ref;
private final String name;
private final List ipv4Addrs;
$AutoValue_Host(
String view,
List aliases,
String ref,
String name,
List ipv4Addrs) {
if (view == null) {
throw new NullPointerException("Null view");
}
this.view = view;
if (aliases == null) {
throw new NullPointerException("Null aliases");
}
this.aliases = aliases;
if (ref == null) {
throw new NullPointerException("Null ref");
}
this.ref = ref;
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
if (ipv4Addrs == null) {
throw new NullPointerException("Null ipv4Addrs");
}
this.ipv4Addrs = ipv4Addrs;
}
@Override
public String view() {
return view;
}
@Override
public List aliases() {
return aliases;
}
@Json(name = "_ref")
@Override
public String ref() {
return ref;
}
@Override
public String name() {
return name;
}
@Json(name = "ipv4addrs")
@Override
public List ipv4Addrs() {
return ipv4Addrs;
}
@Override
public String toString() {
return "Host{"
+ "view=" + view + ", "
+ "aliases=" + aliases + ", "
+ "ref=" + ref + ", "
+ "name=" + name + ", "
+ "ipv4Addrs=" + ipv4Addrs
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Host) {
Host that = (Host) o;
return (this.view.equals(that.view()))
&& (this.aliases.equals(that.aliases()))
&& (this.ref.equals(that.ref()))
&& (this.name.equals(that.name()))
&& (this.ipv4Addrs.equals(that.ipv4Addrs()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.view.hashCode();
h *= 1000003;
h ^= this.aliases.hashCode();
h *= 1000003;
h ^= this.ref.hashCode();
h *= 1000003;
h ^= this.name.hashCode();
h *= 1000003;
h ^= this.ipv4Addrs.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy