
org.apache.jclouds.profitbricks.rest.domain.AutoValue_DataCenter 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_DataCenter extends DataCenter {
private final String id;
private final String type;
private final String href;
private final Metadata metadata;
private final DataCenter.Properties properties;
private final DataCenter.Entities entities;
AutoValue_DataCenter(
String id,
String type,
String href,
@Nullable Metadata metadata,
@Nullable DataCenter.Properties properties,
@Nullable DataCenter.Entities entities) {
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;
this.entities = entities;
}
@Override
public String id() {
return id;
}
@Override
public String type() {
return type;
}
@Override
public String href() {
return href;
}
@Nullable
@Override
public Metadata metadata() {
return metadata;
}
@Nullable
@Override
public DataCenter.Properties properties() {
return properties;
}
@Nullable
@Override
public DataCenter.Entities entities() {
return entities;
}
@Override
public String toString() {
return "DataCenter{"
+ "id=" + id + ", "
+ "type=" + type + ", "
+ "href=" + href + ", "
+ "metadata=" + metadata + ", "
+ "properties=" + properties + ", "
+ "entities=" + entities
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof DataCenter) {
DataCenter that = (DataCenter) 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()))
&& ((this.entities == null) ? (that.entities() == null) : this.entities.equals(that.entities()));
}
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();
h *= 1000003;
h ^= (entities == null) ? 0 : this.entities.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy