
org.apache.jclouds.oneandone.rest.domain.AutoValue_Image 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.oneandone.rest.domain;
import java.util.List;
import javax.annotation.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 String name;
private final DataCenter datacenter;
private final Types.OSFamliyType osFamily;
private final Types.OSType os;
private final String osVersion;
private final List availableSites;
private final int architecture;
private final String osImageType;
private final Types.ImageType type;
private final int minHddSize;
private final List licenses;
private final String state;
private final String description;
private final List hdds;
private final String serverId;
private final Types.ImageFrequency frequency;
private final int numImages;
private final String creationDate;
AutoValue_Image(
String id,
String name,
@Nullable DataCenter datacenter,
@Nullable Types.OSFamliyType osFamily,
@Nullable Types.OSType os,
@Nullable String osVersion,
List availableSites,
int architecture,
@Nullable String osImageType,
@Nullable Types.ImageType type,
int minHddSize,
List licenses,
@Nullable String state,
@Nullable String description,
@Nullable List hdds,
@Nullable String serverId,
@Nullable Types.ImageFrequency frequency,
int numImages,
@Nullable String creationDate) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
this.datacenter = datacenter;
this.osFamily = osFamily;
this.os = os;
this.osVersion = osVersion;
if (availableSites == null) {
throw new NullPointerException("Null availableSites");
}
this.availableSites = availableSites;
this.architecture = architecture;
this.osImageType = osImageType;
this.type = type;
this.minHddSize = minHddSize;
if (licenses == null) {
throw new NullPointerException("Null licenses");
}
this.licenses = licenses;
this.state = state;
this.description = description;
this.hdds = hdds;
this.serverId = serverId;
this.frequency = frequency;
this.numImages = numImages;
this.creationDate = creationDate;
}
@Override
public String id() {
return id;
}
@Override
public String name() {
return name;
}
@Nullable
@Override
public DataCenter datacenter() {
return datacenter;
}
@Nullable
@Override
public Types.OSFamliyType osFamily() {
return osFamily;
}
@Nullable
@Override
public Types.OSType os() {
return os;
}
@Nullable
@Override
public String osVersion() {
return osVersion;
}
@Override
public List availableSites() {
return availableSites;
}
@Override
public int architecture() {
return architecture;
}
@Nullable
@Override
public String osImageType() {
return osImageType;
}
@Nullable
@Override
public Types.ImageType type() {
return type;
}
@Override
public int minHddSize() {
return minHddSize;
}
@Override
public List licenses() {
return licenses;
}
@Nullable
@Override
public String state() {
return state;
}
@Nullable
@Override
public String description() {
return description;
}
@Nullable
@Override
public List hdds() {
return hdds;
}
@Nullable
@Override
public String serverId() {
return serverId;
}
@Nullable
@Override
public Types.ImageFrequency frequency() {
return frequency;
}
@Override
public int numImages() {
return numImages;
}
@Nullable
@Override
public String creationDate() {
return creationDate;
}
@Override
public String toString() {
return "Image{"
+ "id=" + id + ", "
+ "name=" + name + ", "
+ "datacenter=" + datacenter + ", "
+ "osFamily=" + osFamily + ", "
+ "os=" + os + ", "
+ "osVersion=" + osVersion + ", "
+ "availableSites=" + availableSites + ", "
+ "architecture=" + architecture + ", "
+ "osImageType=" + osImageType + ", "
+ "type=" + type + ", "
+ "minHddSize=" + minHddSize + ", "
+ "licenses=" + licenses + ", "
+ "state=" + state + ", "
+ "description=" + description + ", "
+ "hdds=" + hdds + ", "
+ "serverId=" + serverId + ", "
+ "frequency=" + frequency + ", "
+ "numImages=" + numImages + ", "
+ "creationDate=" + creationDate
+ "}";
}
@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.name.equals(that.name()))
&& ((this.datacenter == null) ? (that.datacenter() == null) : this.datacenter.equals(that.datacenter()))
&& ((this.osFamily == null) ? (that.osFamily() == null) : this.osFamily.equals(that.osFamily()))
&& ((this.os == null) ? (that.os() == null) : this.os.equals(that.os()))
&& ((this.osVersion == null) ? (that.osVersion() == null) : this.osVersion.equals(that.osVersion()))
&& (this.availableSites.equals(that.availableSites()))
&& (this.architecture == that.architecture())
&& ((this.osImageType == null) ? (that.osImageType() == null) : this.osImageType.equals(that.osImageType()))
&& ((this.type == null) ? (that.type() == null) : this.type.equals(that.type()))
&& (this.minHddSize == that.minHddSize())
&& (this.licenses.equals(that.licenses()))
&& ((this.state == null) ? (that.state() == null) : this.state.equals(that.state()))
&& ((this.description == null) ? (that.description() == null) : this.description.equals(that.description()))
&& ((this.hdds == null) ? (that.hdds() == null) : this.hdds.equals(that.hdds()))
&& ((this.serverId == null) ? (that.serverId() == null) : this.serverId.equals(that.serverId()))
&& ((this.frequency == null) ? (that.frequency() == null) : this.frequency.equals(that.frequency()))
&& (this.numImages == that.numImages())
&& ((this.creationDate == null) ? (that.creationDate() == null) : this.creationDate.equals(that.creationDate()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.id.hashCode();
h *= 1000003;
h ^= this.name.hashCode();
h *= 1000003;
h ^= (datacenter == null) ? 0 : this.datacenter.hashCode();
h *= 1000003;
h ^= (osFamily == null) ? 0 : this.osFamily.hashCode();
h *= 1000003;
h ^= (os == null) ? 0 : this.os.hashCode();
h *= 1000003;
h ^= (osVersion == null) ? 0 : this.osVersion.hashCode();
h *= 1000003;
h ^= this.availableSites.hashCode();
h *= 1000003;
h ^= this.architecture;
h *= 1000003;
h ^= (osImageType == null) ? 0 : this.osImageType.hashCode();
h *= 1000003;
h ^= (type == null) ? 0 : this.type.hashCode();
h *= 1000003;
h ^= this.minHddSize;
h *= 1000003;
h ^= this.licenses.hashCode();
h *= 1000003;
h ^= (state == null) ? 0 : this.state.hashCode();
h *= 1000003;
h ^= (description == null) ? 0 : this.description.hashCode();
h *= 1000003;
h ^= (hdds == null) ? 0 : this.hdds.hashCode();
h *= 1000003;
h ^= (serverId == null) ? 0 : this.serverId.hashCode();
h *= 1000003;
h ^= (frequency == null) ? 0 : this.frequency.hashCode();
h *= 1000003;
h ^= this.numImages;
h *= 1000003;
h ^= (creationDate == null) ? 0 : this.creationDate.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy