
org.jclouds.googlecomputeengine.domain.AutoValue_Subnetwork 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 javax.annotation.processing.Generated;
import org.jclouds.javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Subnetwork extends Subnetwork {
private final String id;
private final Date creationTimestamp;
private final URI selfLink;
private final String name;
private final String description;
private final String gatewayAddress;
private final URI network;
private final String ipCidrRange;
private final URI region;
AutoValue_Subnetwork(
String id,
Date creationTimestamp,
URI selfLink,
String name,
@Nullable String description,
String gatewayAddress,
URI network,
String ipCidrRange,
URI region) {
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 (gatewayAddress == null) {
throw new NullPointerException("Null gatewayAddress");
}
this.gatewayAddress = gatewayAddress;
if (network == null) {
throw new NullPointerException("Null network");
}
this.network = network;
if (ipCidrRange == null) {
throw new NullPointerException("Null ipCidrRange");
}
this.ipCidrRange = ipCidrRange;
if (region == null) {
throw new NullPointerException("Null region");
}
this.region = region;
}
@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 String gatewayAddress() {
return gatewayAddress;
}
@Override
public URI network() {
return network;
}
@Override
public String ipCidrRange() {
return ipCidrRange;
}
@Override
public URI region() {
return region;
}
@Override
public String toString() {
return "Subnetwork{"
+ "id=" + id + ", "
+ "creationTimestamp=" + creationTimestamp + ", "
+ "selfLink=" + selfLink + ", "
+ "name=" + name + ", "
+ "description=" + description + ", "
+ "gatewayAddress=" + gatewayAddress + ", "
+ "network=" + network + ", "
+ "ipCidrRange=" + ipCidrRange + ", "
+ "region=" + region
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Subnetwork) {
Subnetwork that = (Subnetwork) 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.gatewayAddress.equals(that.gatewayAddress()))
&& (this.network.equals(that.network()))
&& (this.ipCidrRange.equals(that.ipCidrRange()))
&& (this.region.equals(that.region()));
}
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$ ^= gatewayAddress.hashCode();
h$ *= 1000003;
h$ ^= network.hashCode();
h$ *= 1000003;
h$ ^= ipCidrRange.hashCode();
h$ *= 1000003;
h$ ^= region.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy