
org.jclouds.googlecomputeengine.domain.AutoValue_AttachDisk_InitializeParams 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 javax.annotation.processing.Generated;
import org.jclouds.javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AttachDisk_InitializeParams extends AttachDisk.InitializeParams {
private final String diskName;
private final Long diskSizeGb;
private final URI sourceImage;
private final URI diskType;
AutoValue_AttachDisk_InitializeParams(
@Nullable String diskName,
@Nullable Long diskSizeGb,
@Nullable URI sourceImage,
@Nullable URI diskType) {
this.diskName = diskName;
this.diskSizeGb = diskSizeGb;
this.sourceImage = sourceImage;
this.diskType = diskType;
}
@Nullable
@Override
public String diskName() {
return diskName;
}
@Nullable
@Override
public Long diskSizeGb() {
return diskSizeGb;
}
@Nullable
@Override
public URI sourceImage() {
return sourceImage;
}
@Nullable
@Override
public URI diskType() {
return diskType;
}
@Override
public String toString() {
return "InitializeParams{"
+ "diskName=" + diskName + ", "
+ "diskSizeGb=" + diskSizeGb + ", "
+ "sourceImage=" + sourceImage + ", "
+ "diskType=" + diskType
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AttachDisk.InitializeParams) {
AttachDisk.InitializeParams that = (AttachDisk.InitializeParams) o;
return ((this.diskName == null) ? (that.diskName() == null) : this.diskName.equals(that.diskName()))
&& ((this.diskSizeGb == null) ? (that.diskSizeGb() == null) : this.diskSizeGb.equals(that.diskSizeGb()))
&& ((this.sourceImage == null) ? (that.sourceImage() == null) : this.sourceImage.equals(that.sourceImage()))
&& ((this.diskType == null) ? (that.diskType() == null) : this.diskType.equals(that.diskType()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (diskName == null) ? 0 : diskName.hashCode();
h$ *= 1000003;
h$ ^= (diskSizeGb == null) ? 0 : diskSizeGb.hashCode();
h$ *= 1000003;
h$ ^= (sourceImage == null) ? 0 : sourceImage.hashCode();
h$ *= 1000003;
h$ ^= (diskType == null) ? 0 : diskType.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy