
org.jclouds.packet.domain.AutoValue_Plan 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.packet.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_Plan extends Plan {
private final String id;
private final String slug;
private final String name;
private final String description;
private final String line;
private final Specs specs;
private final List availableIn;
private final Pricing pricing;
AutoValue_Plan(
String id,
String slug,
String name,
String description,
String line,
@Nullable Specs specs,
List availableIn,
Pricing pricing) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
if (slug == null) {
throw new NullPointerException("Null slug");
}
this.slug = slug;
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
if (description == null) {
throw new NullPointerException("Null description");
}
this.description = description;
if (line == null) {
throw new NullPointerException("Null line");
}
this.line = line;
this.specs = specs;
if (availableIn == null) {
throw new NullPointerException("Null availableIn");
}
this.availableIn = availableIn;
if (pricing == null) {
throw new NullPointerException("Null pricing");
}
this.pricing = pricing;
}
@Override
public String id() {
return id;
}
@Override
public String slug() {
return slug;
}
@Override
public String name() {
return name;
}
@Override
public String description() {
return description;
}
@Override
public String line() {
return line;
}
@Nullable
@Override
public Specs specs() {
return specs;
}
@Override
public List availableIn() {
return availableIn;
}
@Override
public Pricing pricing() {
return pricing;
}
@Override
public String toString() {
return "Plan{"
+ "id=" + id + ", "
+ "slug=" + slug + ", "
+ "name=" + name + ", "
+ "description=" + description + ", "
+ "line=" + line + ", "
+ "specs=" + specs + ", "
+ "availableIn=" + availableIn + ", "
+ "pricing=" + pricing
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Plan) {
Plan that = (Plan) o;
return (this.id.equals(that.id()))
&& (this.slug.equals(that.slug()))
&& (this.name.equals(that.name()))
&& (this.description.equals(that.description()))
&& (this.line.equals(that.line()))
&& ((this.specs == null) ? (that.specs() == null) : this.specs.equals(that.specs()))
&& (this.availableIn.equals(that.availableIn()))
&& (this.pricing.equals(that.pricing()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.id.hashCode();
h *= 1000003;
h ^= this.slug.hashCode();
h *= 1000003;
h ^= this.name.hashCode();
h *= 1000003;
h ^= this.description.hashCode();
h *= 1000003;
h ^= this.line.hashCode();
h *= 1000003;
h ^= (specs == null) ? 0 : this.specs.hashCode();
h *= 1000003;
h ^= this.availableIn.hashCode();
h *= 1000003;
h ^= this.pricing.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy