
org.apache.jclouds.profitbricks.rest.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.apache.jclouds.profitbricks.rest.domain;
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 String type;
private final String href;
private final Snapshot.Metadata metadata;
private final Snapshot.Properties properties;
AutoValue_Snapshot(
String id,
String type,
String href,
@Nullable Snapshot.Metadata metadata,
@Nullable Snapshot.Properties properties) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
if (href == null) {
throw new NullPointerException("Null href");
}
this.href = href;
this.metadata = metadata;
this.properties = properties;
}
@Override
public String id() {
return id;
}
@Override
public String type() {
return type;
}
@Override
public String href() {
return href;
}
@Nullable
@Override
public Snapshot.Metadata metadata() {
return metadata;
}
@Nullable
@Override
public Snapshot.Properties properties() {
return properties;
}
@Override
public String toString() {
return "Snapshot{"
+ "id=" + id + ", "
+ "type=" + type + ", "
+ "href=" + href + ", "
+ "metadata=" + metadata + ", "
+ "properties=" + properties
+ "}";
}
@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.type.equals(that.type()))
&& (this.href.equals(that.href()))
&& ((this.metadata == null) ? (that.metadata() == null) : this.metadata.equals(that.metadata()))
&& ((this.properties == null) ? (that.properties() == null) : this.properties.equals(that.properties()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.id.hashCode();
h *= 1000003;
h ^= this.type.hashCode();
h *= 1000003;
h ^= this.href.hashCode();
h *= 1000003;
h ^= (metadata == null) ? 0 : this.metadata.hashCode();
h *= 1000003;
h ^= (properties == null) ? 0 : this.properties.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy