
org.jclouds.profitbricks.domain.AutoValue_IpBlock 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.jclouds.profitbricks.domain;
import java.util.List;
import javax.annotation.Generated;
import org.jclouds.javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_IpBlock extends IpBlock {
private final String id;
private final Location location;
private final List publicIps;
private final List ips;
private AutoValue_IpBlock(
String id,
Location location,
List publicIps,
@Nullable List ips) {
this.id = id;
this.location = location;
this.publicIps = publicIps;
this.ips = ips;
}
@Override
public String id() {
return id;
}
@Override
public Location location() {
return location;
}
@Override
public List publicIps() {
return publicIps;
}
@Nullable
@Override
public List ips() {
return ips;
}
@Override
public String toString() {
return "IpBlock{"
+ "id=" + id + ", "
+ "location=" + location + ", "
+ "publicIps=" + publicIps + ", "
+ "ips=" + ips
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof IpBlock) {
IpBlock that = (IpBlock) o;
return (this.id.equals(that.id()))
&& (this.location.equals(that.location()))
&& (this.publicIps.equals(that.publicIps()))
&& ((this.ips == null) ? (that.ips() == null) : this.ips.equals(that.ips()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.id.hashCode();
h *= 1000003;
h ^= this.location.hashCode();
h *= 1000003;
h ^= this.publicIps.hashCode();
h *= 1000003;
h ^= (ips == null) ? 0 : this.ips.hashCode();
return h;
}
@Override
public IpBlock.Builder toBuilder() {
return new Builder(this);
}
static final class Builder extends IpBlock.Builder {
private String id;
private Location location;
private List publicIps;
private List ips;
Builder() {
}
private Builder(IpBlock source) {
this.id = source.id();
this.location = source.location();
this.publicIps = source.publicIps();
this.ips = source.ips();
}
@Override
public IpBlock.Builder id(String id) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
return this;
}
@Override
public IpBlock.Builder location(Location location) {
if (location == null) {
throw new NullPointerException("Null location");
}
this.location = location;
return this;
}
@Override
public IpBlock.Builder publicIps(List publicIps) {
if (publicIps == null) {
throw new NullPointerException("Null publicIps");
}
this.publicIps = publicIps;
return this;
}
@Override
public IpBlock.Builder ips(@Nullable List ips) {
this.ips = ips;
return this;
}
@Override
IpBlock autoBuild() {
String missing = "";
if (this.id == null) {
missing += " id";
}
if (this.location == null) {
missing += " location";
}
if (this.publicIps == null) {
missing += " publicIps";
}
if (!missing.isEmpty()) {
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_IpBlock(
this.id,
this.location,
this.publicIps,
this.ips);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy