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