
org.jclouds.googlecomputeengine.options.AutoValue_SubnetworkCreationOptions 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.googlecomputeengine.options;
import java.net.URI;
import javax.annotation.Generated;
import org.jclouds.javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_SubnetworkCreationOptions extends SubnetworkCreationOptions {
private final String name;
private final String description;
private final URI network;
private final String ipCidrRange;
private final URI region;
private final boolean privateIpGoogleAccess;
AutoValue_SubnetworkCreationOptions(
String name,
@Nullable String description,
URI network,
String ipCidrRange,
URI region,
boolean privateIpGoogleAccess) {
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 (ipCidrRange == null) {
throw new NullPointerException("Null ipCidrRange");
}
this.ipCidrRange = ipCidrRange;
if (region == null) {
throw new NullPointerException("Null region");
}
this.region = region;
this.privateIpGoogleAccess = privateIpGoogleAccess;
}
@Override
public String name() {
return name;
}
@Nullable
@Override
public String description() {
return description;
}
@Override
public URI network() {
return network;
}
@Override
public String ipCidrRange() {
return ipCidrRange;
}
@Override
public URI region() {
return region;
}
@Override
public boolean privateIpGoogleAccess() {
return privateIpGoogleAccess;
}
@Override
public String toString() {
return "SubnetworkCreationOptions{"
+ "name=" + name + ", "
+ "description=" + description + ", "
+ "network=" + network + ", "
+ "ipCidrRange=" + ipCidrRange + ", "
+ "region=" + region + ", "
+ "privateIpGoogleAccess=" + privateIpGoogleAccess
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof SubnetworkCreationOptions) {
SubnetworkCreationOptions that = (SubnetworkCreationOptions) o;
return (this.name.equals(that.name()))
&& ((this.description == null) ? (that.description() == null) : this.description.equals(that.description()))
&& (this.network.equals(that.network()))
&& (this.ipCidrRange.equals(that.ipCidrRange()))
&& (this.region.equals(that.region()))
&& (this.privateIpGoogleAccess == that.privateIpGoogleAccess());
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.name.hashCode();
h *= 1000003;
h ^= (description == null) ? 0 : this.description.hashCode();
h *= 1000003;
h ^= this.network.hashCode();
h *= 1000003;
h ^= this.ipCidrRange.hashCode();
h *= 1000003;
h ^= this.region.hashCode();
h *= 1000003;
h ^= this.privateIpGoogleAccess ? 1231 : 1237;
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy