
org.jclouds.googlecomputeengine.domain.AutoValue_Image 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 java.util.List;
import javax.annotation.processing.Generated;
import org.jclouds.javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Image extends Image {
private final String id;
private final URI selfLink;
private final Date creationTimestamp;
private final String name;
private final String description;
private final String sourceType;
private final Image.RawDisk rawDisk;
private final Deprecated deprecated;
private final Image.Status status;
private final Long archiveSizeBytes;
private final Long diskSizeGb;
private final String sourceDisk;
private final String sourceDiskId;
private final List licenses;
AutoValue_Image(
String id,
URI selfLink,
Date creationTimestamp,
String name,
@Nullable String description,
@Nullable String sourceType,
@Nullable Image.RawDisk rawDisk,
@Nullable Deprecated deprecated,
Image.Status status,
@Nullable Long archiveSizeBytes,
Long diskSizeGb,
@Nullable String sourceDisk,
@Nullable String sourceDiskId,
@Nullable List licenses) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
if (selfLink == null) {
throw new NullPointerException("Null selfLink");
}
this.selfLink = selfLink;
if (creationTimestamp == null) {
throw new NullPointerException("Null creationTimestamp");
}
this.creationTimestamp = creationTimestamp;
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
this.description = description;
this.sourceType = sourceType;
this.rawDisk = rawDisk;
this.deprecated = deprecated;
if (status == null) {
throw new NullPointerException("Null status");
}
this.status = status;
this.archiveSizeBytes = archiveSizeBytes;
if (diskSizeGb == null) {
throw new NullPointerException("Null diskSizeGb");
}
this.diskSizeGb = diskSizeGb;
this.sourceDisk = sourceDisk;
this.sourceDiskId = sourceDiskId;
this.licenses = licenses;
}
@Override
public String id() {
return id;
}
@Override
public URI selfLink() {
return selfLink;
}
@Override
public Date creationTimestamp() {
return creationTimestamp;
}
@Override
public String name() {
return name;
}
@Nullable
@Override
public String description() {
return description;
}
@Nullable
@Override
public String sourceType() {
return sourceType;
}
@Nullable
@Override
public Image.RawDisk rawDisk() {
return rawDisk;
}
@Nullable
@Override
public Deprecated deprecated() {
return deprecated;
}
@Override
public Image.Status status() {
return status;
}
@Nullable
@Override
public Long archiveSizeBytes() {
return archiveSizeBytes;
}
@Override
public Long diskSizeGb() {
return diskSizeGb;
}
@Nullable
@Override
public String sourceDisk() {
return sourceDisk;
}
@Nullable
@Override
public String sourceDiskId() {
return sourceDiskId;
}
@Nullable
@Override
public List licenses() {
return licenses;
}
@Override
public String toString() {
return "Image{"
+ "id=" + id + ", "
+ "selfLink=" + selfLink + ", "
+ "creationTimestamp=" + creationTimestamp + ", "
+ "name=" + name + ", "
+ "description=" + description + ", "
+ "sourceType=" + sourceType + ", "
+ "rawDisk=" + rawDisk + ", "
+ "deprecated=" + deprecated + ", "
+ "status=" + status + ", "
+ "archiveSizeBytes=" + archiveSizeBytes + ", "
+ "diskSizeGb=" + diskSizeGb + ", "
+ "sourceDisk=" + sourceDisk + ", "
+ "sourceDiskId=" + sourceDiskId + ", "
+ "licenses=" + licenses
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Image) {
Image that = (Image) o;
return (this.id.equals(that.id()))
&& (this.selfLink.equals(that.selfLink()))
&& (this.creationTimestamp.equals(that.creationTimestamp()))
&& (this.name.equals(that.name()))
&& ((this.description == null) ? (that.description() == null) : this.description.equals(that.description()))
&& ((this.sourceType == null) ? (that.sourceType() == null) : this.sourceType.equals(that.sourceType()))
&& ((this.rawDisk == null) ? (that.rawDisk() == null) : this.rawDisk.equals(that.rawDisk()))
&& ((this.deprecated == null) ? (that.deprecated() == null) : this.deprecated.equals(that.deprecated()))
&& (this.status.equals(that.status()))
&& ((this.archiveSizeBytes == null) ? (that.archiveSizeBytes() == null) : this.archiveSizeBytes.equals(that.archiveSizeBytes()))
&& (this.diskSizeGb.equals(that.diskSizeGb()))
&& ((this.sourceDisk == null) ? (that.sourceDisk() == null) : this.sourceDisk.equals(that.sourceDisk()))
&& ((this.sourceDiskId == null) ? (that.sourceDiskId() == null) : this.sourceDiskId.equals(that.sourceDiskId()))
&& ((this.licenses == null) ? (that.licenses() == null) : this.licenses.equals(that.licenses()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= id.hashCode();
h$ *= 1000003;
h$ ^= selfLink.hashCode();
h$ *= 1000003;
h$ ^= creationTimestamp.hashCode();
h$ *= 1000003;
h$ ^= name.hashCode();
h$ *= 1000003;
h$ ^= (description == null) ? 0 : description.hashCode();
h$ *= 1000003;
h$ ^= (sourceType == null) ? 0 : sourceType.hashCode();
h$ *= 1000003;
h$ ^= (rawDisk == null) ? 0 : rawDisk.hashCode();
h$ *= 1000003;
h$ ^= (deprecated == null) ? 0 : deprecated.hashCode();
h$ *= 1000003;
h$ ^= status.hashCode();
h$ *= 1000003;
h$ ^= (archiveSizeBytes == null) ? 0 : archiveSizeBytes.hashCode();
h$ *= 1000003;
h$ ^= diskSizeGb.hashCode();
h$ *= 1000003;
h$ ^= (sourceDisk == null) ? 0 : sourceDisk.hashCode();
h$ *= 1000003;
h$ ^= (sourceDiskId == null) ? 0 : sourceDiskId.hashCode();
h$ *= 1000003;
h$ ^= (licenses == null) ? 0 : licenses.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy