
org.jclouds.googlecomputeengine.domain.AutoValue_NewInstance 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.List;
import javax.annotation.processing.Generated;
import org.jclouds.javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_NewInstance extends NewInstance {
private final String name;
private final URI machineType;
private final Boolean canIpForward;
private final List networkInterfaces;
private final List disks;
private final String description;
private final Tags tags;
private final Metadata metadata;
private final List serviceAccounts;
private final Instance.Scheduling scheduling;
AutoValue_NewInstance(
String name,
URI machineType,
@Nullable Boolean canIpForward,
List networkInterfaces,
List disks,
@Nullable String description,
Tags tags,
Metadata metadata,
@Nullable List serviceAccounts,
@Nullable Instance.Scheduling scheduling) {
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
if (machineType == null) {
throw new NullPointerException("Null machineType");
}
this.machineType = machineType;
this.canIpForward = canIpForward;
if (networkInterfaces == null) {
throw new NullPointerException("Null networkInterfaces");
}
this.networkInterfaces = networkInterfaces;
if (disks == null) {
throw new NullPointerException("Null disks");
}
this.disks = disks;
this.description = description;
if (tags == null) {
throw new NullPointerException("Null tags");
}
this.tags = tags;
if (metadata == null) {
throw new NullPointerException("Null metadata");
}
this.metadata = metadata;
this.serviceAccounts = serviceAccounts;
this.scheduling = scheduling;
}
@Override
public String name() {
return name;
}
@Override
public URI machineType() {
return machineType;
}
@Nullable
@Override
public Boolean canIpForward() {
return canIpForward;
}
@Override
public List networkInterfaces() {
return networkInterfaces;
}
@Override
public List disks() {
return disks;
}
@Nullable
@Override
public String description() {
return description;
}
@Override
public Tags tags() {
return tags;
}
@Override
public Metadata metadata() {
return metadata;
}
@Nullable
@Override
public List serviceAccounts() {
return serviceAccounts;
}
@Nullable
@Override
public Instance.Scheduling scheduling() {
return scheduling;
}
@Override
public String toString() {
return "NewInstance{"
+ "name=" + name + ", "
+ "machineType=" + machineType + ", "
+ "canIpForward=" + canIpForward + ", "
+ "networkInterfaces=" + networkInterfaces + ", "
+ "disks=" + disks + ", "
+ "description=" + description + ", "
+ "tags=" + tags + ", "
+ "metadata=" + metadata + ", "
+ "serviceAccounts=" + serviceAccounts + ", "
+ "scheduling=" + scheduling
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof NewInstance) {
NewInstance that = (NewInstance) o;
return (this.name.equals(that.name()))
&& (this.machineType.equals(that.machineType()))
&& ((this.canIpForward == null) ? (that.canIpForward() == null) : this.canIpForward.equals(that.canIpForward()))
&& (this.networkInterfaces.equals(that.networkInterfaces()))
&& (this.disks.equals(that.disks()))
&& ((this.description == null) ? (that.description() == null) : this.description.equals(that.description()))
&& (this.tags.equals(that.tags()))
&& (this.metadata.equals(that.metadata()))
&& ((this.serviceAccounts == null) ? (that.serviceAccounts() == null) : this.serviceAccounts.equals(that.serviceAccounts()))
&& ((this.scheduling == null) ? (that.scheduling() == null) : this.scheduling.equals(that.scheduling()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= name.hashCode();
h$ *= 1000003;
h$ ^= machineType.hashCode();
h$ *= 1000003;
h$ ^= (canIpForward == null) ? 0 : canIpForward.hashCode();
h$ *= 1000003;
h$ ^= networkInterfaces.hashCode();
h$ *= 1000003;
h$ ^= disks.hashCode();
h$ *= 1000003;
h$ ^= (description == null) ? 0 : description.hashCode();
h$ *= 1000003;
h$ ^= tags.hashCode();
h$ *= 1000003;
h$ ^= metadata.hashCode();
h$ *= 1000003;
h$ ^= (serviceAccounts == null) ? 0 : serviceAccounts.hashCode();
h$ *= 1000003;
h$ ^= (scheduling == null) ? 0 : scheduling.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy