
org.jclouds.googlecomputeengine.domain.AutoValue_Route Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-compute-engine Show documentation
Show all versions of google-compute-engine Show documentation
jclouds components to access GoogleCompute
The newest version!
package org.jclouds.googlecomputeengine.domain;
import java.net.URI;
import java.util.Date;
import java.util.List;
import javax.annotation.processing.Generated;
import org.jclouds.javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Route extends Route {
private final String id;
private final Date creationTimestamp;
private final URI selfLink;
private final String name;
private final String description;
private final URI network;
private final List tags;
private final String destRange;
private final int priority;
private final URI nextHopInstance;
private final String nextHopIp;
private final URI nextHopNetwork;
private final URI nextHopGateway;
private final List warnings;
private final URI nextHopVpnTunnel;
AutoValue_Route(
String id,
Date creationTimestamp,
URI selfLink,
String name,
@Nullable String description,
URI network,
List tags,
String destRange,
int priority,
@Nullable URI nextHopInstance,
@Nullable String nextHopIp,
@Nullable URI nextHopNetwork,
@Nullable URI nextHopGateway,
List warnings,
@Nullable URI nextHopVpnTunnel) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
if (creationTimestamp == null) {
throw new NullPointerException("Null creationTimestamp");
}
this.creationTimestamp = creationTimestamp;
if (selfLink == null) {
throw new NullPointerException("Null selfLink");
}
this.selfLink = selfLink;
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
this.description = description;
if (network == null) {
throw new NullPointerException("Null network");
}
this.network = network;
if (tags == null) {
throw new NullPointerException("Null tags");
}
this.tags = tags;
if (destRange == null) {
throw new NullPointerException("Null destRange");
}
this.destRange = destRange;
this.priority = priority;
this.nextHopInstance = nextHopInstance;
this.nextHopIp = nextHopIp;
this.nextHopNetwork = nextHopNetwork;
this.nextHopGateway = nextHopGateway;
if (warnings == null) {
throw new NullPointerException("Null warnings");
}
this.warnings = warnings;
this.nextHopVpnTunnel = nextHopVpnTunnel;
}
@Override
public String id() {
return id;
}
@Override
public Date creationTimestamp() {
return creationTimestamp;
}
@Override
public URI selfLink() {
return selfLink;
}
@Override
public String name() {
return name;
}
@Nullable
@Override
public String description() {
return description;
}
@Override
public URI network() {
return network;
}
@Override
public List tags() {
return tags;
}
@Override
public String destRange() {
return destRange;
}
@Override
public int priority() {
return priority;
}
@Nullable
@Override
public URI nextHopInstance() {
return nextHopInstance;
}
@Nullable
@Override
public String nextHopIp() {
return nextHopIp;
}
@Nullable
@Override
public URI nextHopNetwork() {
return nextHopNetwork;
}
@Nullable
@Override
public URI nextHopGateway() {
return nextHopGateway;
}
@Override
public List warnings() {
return warnings;
}
@Nullable
@Override
public URI nextHopVpnTunnel() {
return nextHopVpnTunnel;
}
@Override
public String toString() {
return "Route{"
+ "id=" + id + ", "
+ "creationTimestamp=" + creationTimestamp + ", "
+ "selfLink=" + selfLink + ", "
+ "name=" + name + ", "
+ "description=" + description + ", "
+ "network=" + network + ", "
+ "tags=" + tags + ", "
+ "destRange=" + destRange + ", "
+ "priority=" + priority + ", "
+ "nextHopInstance=" + nextHopInstance + ", "
+ "nextHopIp=" + nextHopIp + ", "
+ "nextHopNetwork=" + nextHopNetwork + ", "
+ "nextHopGateway=" + nextHopGateway + ", "
+ "warnings=" + warnings + ", "
+ "nextHopVpnTunnel=" + nextHopVpnTunnel
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Route) {
Route that = (Route) o;
return (this.id.equals(that.id()))
&& (this.creationTimestamp.equals(that.creationTimestamp()))
&& (this.selfLink.equals(that.selfLink()))
&& (this.name.equals(that.name()))
&& ((this.description == null) ? (that.description() == null) : this.description.equals(that.description()))
&& (this.network.equals(that.network()))
&& (this.tags.equals(that.tags()))
&& (this.destRange.equals(that.destRange()))
&& (this.priority == that.priority())
&& ((this.nextHopInstance == null) ? (that.nextHopInstance() == null) : this.nextHopInstance.equals(that.nextHopInstance()))
&& ((this.nextHopIp == null) ? (that.nextHopIp() == null) : this.nextHopIp.equals(that.nextHopIp()))
&& ((this.nextHopNetwork == null) ? (that.nextHopNetwork() == null) : this.nextHopNetwork.equals(that.nextHopNetwork()))
&& ((this.nextHopGateway == null) ? (that.nextHopGateway() == null) : this.nextHopGateway.equals(that.nextHopGateway()))
&& (this.warnings.equals(that.warnings()))
&& ((this.nextHopVpnTunnel == null) ? (that.nextHopVpnTunnel() == null) : this.nextHopVpnTunnel.equals(that.nextHopVpnTunnel()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= id.hashCode();
h$ *= 1000003;
h$ ^= creationTimestamp.hashCode();
h$ *= 1000003;
h$ ^= selfLink.hashCode();
h$ *= 1000003;
h$ ^= name.hashCode();
h$ *= 1000003;
h$ ^= (description == null) ? 0 : description.hashCode();
h$ *= 1000003;
h$ ^= network.hashCode();
h$ *= 1000003;
h$ ^= tags.hashCode();
h$ *= 1000003;
h$ ^= destRange.hashCode();
h$ *= 1000003;
h$ ^= priority;
h$ *= 1000003;
h$ ^= (nextHopInstance == null) ? 0 : nextHopInstance.hashCode();
h$ *= 1000003;
h$ ^= (nextHopIp == null) ? 0 : nextHopIp.hashCode();
h$ *= 1000003;
h$ ^= (nextHopNetwork == null) ? 0 : nextHopNetwork.hashCode();
h$ *= 1000003;
h$ ^= (nextHopGateway == null) ? 0 : nextHopGateway.hashCode();
h$ *= 1000003;
h$ ^= warnings.hashCode();
h$ *= 1000003;
h$ ^= (nextHopVpnTunnel == null) ? 0 : nextHopVpnTunnel.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy