
org.jclouds.googlecomputeengine.options.AutoValue_DiskCreationOptions 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.options;
import java.net.URI;
import javax.annotation.Generated;
import org.jclouds.javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_DiskCreationOptions extends DiskCreationOptions {
private final URI type;
private final Integer sizeGb;
private final URI sourceSnapshot;
private final String description;
AutoValue_DiskCreationOptions(
@Nullable URI type,
@Nullable Integer sizeGb,
@Nullable URI sourceSnapshot,
@Nullable String description) {
this.type = type;
this.sizeGb = sizeGb;
this.sourceSnapshot = sourceSnapshot;
this.description = description;
}
@Nullable
@Override
public URI type() {
return type;
}
@Nullable
@Override
public Integer sizeGb() {
return sizeGb;
}
@Nullable
@Override
public URI sourceSnapshot() {
return sourceSnapshot;
}
@Nullable
@Override
public String description() {
return description;
}
@Override
public String toString() {
return "DiskCreationOptions{"
+ "type=" + type + ", "
+ "sizeGb=" + sizeGb + ", "
+ "sourceSnapshot=" + sourceSnapshot + ", "
+ "description=" + description
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof DiskCreationOptions) {
DiskCreationOptions that = (DiskCreationOptions) o;
return ((this.type == null) ? (that.type() == null) : this.type.equals(that.type()))
&& ((this.sizeGb == null) ? (that.sizeGb() == null) : this.sizeGb.equals(that.sizeGb()))
&& ((this.sourceSnapshot == null) ? (that.sourceSnapshot() == null) : this.sourceSnapshot.equals(that.sourceSnapshot()))
&& ((this.description == null) ? (that.description() == null) : this.description.equals(that.description()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= (type == null) ? 0 : this.type.hashCode();
h *= 1000003;
h ^= (sizeGb == null) ? 0 : this.sizeGb.hashCode();
h *= 1000003;
h ^= (sourceSnapshot == null) ? 0 : this.sourceSnapshot.hashCode();
h *= 1000003;
h ^= (description == null) ? 0 : this.description.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy