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