
org.jclouds.googlecomputeengine.domain.AutoValue_AttachDisk 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.domain;
import java.net.URI;
import java.util.List;
import javax.annotation.Generated;
import org.jclouds.javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AttachDisk extends AttachDisk {
private final AttachDisk.Type type;
private final AttachDisk.Mode mode;
private final URI source;
private final String deviceName;
private final boolean boot;
private final AttachDisk.InitializeParams initializeParams;
private final boolean autoDelete;
private final List licenses;
private final AttachDisk.DiskInterface diskInterface;
AutoValue_AttachDisk(
AttachDisk.Type type,
@Nullable AttachDisk.Mode mode,
@Nullable URI source,
@Nullable String deviceName,
boolean boot,
@Nullable AttachDisk.InitializeParams initializeParams,
boolean autoDelete,
@Nullable List licenses,
@Nullable AttachDisk.DiskInterface diskInterface) {
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
this.mode = mode;
this.source = source;
this.deviceName = deviceName;
this.boot = boot;
this.initializeParams = initializeParams;
this.autoDelete = autoDelete;
this.licenses = licenses;
this.diskInterface = diskInterface;
}
@Override
public AttachDisk.Type type() {
return type;
}
@Nullable
@Override
public AttachDisk.Mode mode() {
return mode;
}
@Nullable
@Override
public URI source() {
return source;
}
@Nullable
@Override
public String deviceName() {
return deviceName;
}
@Override
public boolean boot() {
return boot;
}
@Nullable
@Override
public AttachDisk.InitializeParams initializeParams() {
return initializeParams;
}
@Override
public boolean autoDelete() {
return autoDelete;
}
@Nullable
@Override
public List licenses() {
return licenses;
}
@Nullable
@Override
public AttachDisk.DiskInterface diskInterface() {
return diskInterface;
}
@Override
public String toString() {
return "AttachDisk{"
+ "type=" + type + ", "
+ "mode=" + mode + ", "
+ "source=" + source + ", "
+ "deviceName=" + deviceName + ", "
+ "boot=" + boot + ", "
+ "initializeParams=" + initializeParams + ", "
+ "autoDelete=" + autoDelete + ", "
+ "licenses=" + licenses + ", "
+ "diskInterface=" + diskInterface
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AttachDisk) {
AttachDisk that = (AttachDisk) o;
return (this.type.equals(that.type()))
&& ((this.mode == null) ? (that.mode() == null) : this.mode.equals(that.mode()))
&& ((this.source == null) ? (that.source() == null) : this.source.equals(that.source()))
&& ((this.deviceName == null) ? (that.deviceName() == null) : this.deviceName.equals(that.deviceName()))
&& (this.boot == that.boot())
&& ((this.initializeParams == null) ? (that.initializeParams() == null) : this.initializeParams.equals(that.initializeParams()))
&& (this.autoDelete == that.autoDelete())
&& ((this.licenses == null) ? (that.licenses() == null) : this.licenses.equals(that.licenses()))
&& ((this.diskInterface == null) ? (that.diskInterface() == null) : this.diskInterface.equals(that.diskInterface()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.type.hashCode();
h *= 1000003;
h ^= (mode == null) ? 0 : this.mode.hashCode();
h *= 1000003;
h ^= (source == null) ? 0 : this.source.hashCode();
h *= 1000003;
h ^= (deviceName == null) ? 0 : this.deviceName.hashCode();
h *= 1000003;
h ^= this.boot ? 1231 : 1237;
h *= 1000003;
h ^= (initializeParams == null) ? 0 : this.initializeParams.hashCode();
h *= 1000003;
h ^= this.autoDelete ? 1231 : 1237;
h *= 1000003;
h ^= (licenses == null) ? 0 : this.licenses.hashCode();
h *= 1000003;
h ^= (diskInterface == null) ? 0 : this.diskInterface.hashCode();
return h;
}
}