
org.apache.jclouds.oneandone.rest.domain.AutoValue_PublicIp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jclouds-shaded Show documentation
Show all versions of jclouds-shaded Show documentation
Provides a shaded jclouds with relocated guava and guice
The newest version!
package org.apache.jclouds.oneandone.rest.domain;
import javax.annotation.Generated;
import org.jclouds.javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_PublicIp extends PublicIp {
private final String id;
private final String ip;
private final Types.IPType type;
private final PublicIp.AssignedTo assignedTo;
private final String reverseDns;
private final boolean isDhcp;
private final String state;
private final String creationDate;
private final DataCenter datacenter;
AutoValue_PublicIp(
String id,
String ip,
Types.IPType type,
@Nullable PublicIp.AssignedTo assignedTo,
@Nullable String reverseDns,
boolean isDhcp,
@Nullable String state,
@Nullable String creationDate,
@Nullable DataCenter datacenter) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
if (ip == null) {
throw new NullPointerException("Null ip");
}
this.ip = ip;
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
this.assignedTo = assignedTo;
this.reverseDns = reverseDns;
this.isDhcp = isDhcp;
this.state = state;
this.creationDate = creationDate;
this.datacenter = datacenter;
}
@Override
public String id() {
return id;
}
@Override
public String ip() {
return ip;
}
@Override
public Types.IPType type() {
return type;
}
@Nullable
@Override
public PublicIp.AssignedTo assignedTo() {
return assignedTo;
}
@Nullable
@Override
public String reverseDns() {
return reverseDns;
}
@Override
public boolean isDhcp() {
return isDhcp;
}
@Nullable
@Override
public String state() {
return state;
}
@Nullable
@Override
public String creationDate() {
return creationDate;
}
@Nullable
@Override
public DataCenter datacenter() {
return datacenter;
}
@Override
public String toString() {
return "PublicIp{"
+ "id=" + id + ", "
+ "ip=" + ip + ", "
+ "type=" + type + ", "
+ "assignedTo=" + assignedTo + ", "
+ "reverseDns=" + reverseDns + ", "
+ "isDhcp=" + isDhcp + ", "
+ "state=" + state + ", "
+ "creationDate=" + creationDate + ", "
+ "datacenter=" + datacenter
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof PublicIp) {
PublicIp that = (PublicIp) o;
return (this.id.equals(that.id()))
&& (this.ip.equals(that.ip()))
&& (this.type.equals(that.type()))
&& ((this.assignedTo == null) ? (that.assignedTo() == null) : this.assignedTo.equals(that.assignedTo()))
&& ((this.reverseDns == null) ? (that.reverseDns() == null) : this.reverseDns.equals(that.reverseDns()))
&& (this.isDhcp == that.isDhcp())
&& ((this.state == null) ? (that.state() == null) : this.state.equals(that.state()))
&& ((this.creationDate == null) ? (that.creationDate() == null) : this.creationDate.equals(that.creationDate()))
&& ((this.datacenter == null) ? (that.datacenter() == null) : this.datacenter.equals(that.datacenter()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.id.hashCode();
h *= 1000003;
h ^= this.ip.hashCode();
h *= 1000003;
h ^= this.type.hashCode();
h *= 1000003;
h ^= (assignedTo == null) ? 0 : this.assignedTo.hashCode();
h *= 1000003;
h ^= (reverseDns == null) ? 0 : this.reverseDns.hashCode();
h *= 1000003;
h ^= this.isDhcp ? 1231 : 1237;
h *= 1000003;
h ^= (state == null) ? 0 : this.state.hashCode();
h *= 1000003;
h ^= (creationDate == null) ? 0 : this.creationDate.hashCode();
h *= 1000003;
h ^= (datacenter == null) ? 0 : this.datacenter.hashCode();
return h;
}
}