
org.jclouds.azurecompute.arm.domain.AutoValue_VirtualMachineScaleSet 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.azurecompute.arm.domain;
import java.util.Map;
import javax.annotation.Generated;
import org.jclouds.javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_VirtualMachineScaleSet extends VirtualMachineScaleSet {
private final String id;
private final String name;
private final String location;
private final VirtualMachineScaleSetSKU sku;
private final Map tags;
private final VirtualMachineScaleSetPlan plan;
private final VirtualMachineScaleSetProperties properties;
private AutoValue_VirtualMachineScaleSet(
@Nullable String id,
@Nullable String name,
@Nullable String location,
VirtualMachineScaleSetSKU sku,
@Nullable Map tags,
@Nullable VirtualMachineScaleSetPlan plan,
@Nullable VirtualMachineScaleSetProperties properties) {
this.id = id;
this.name = name;
this.location = location;
this.sku = sku;
this.tags = tags;
this.plan = plan;
this.properties = properties;
}
@Nullable
@Override
public String id() {
return id;
}
@Nullable
@Override
public String name() {
return name;
}
@Nullable
@Override
public String location() {
return location;
}
@Override
public VirtualMachineScaleSetSKU sku() {
return sku;
}
@Nullable
@Override
public Map tags() {
return tags;
}
@Nullable
@Override
public VirtualMachineScaleSetPlan plan() {
return plan;
}
@Nullable
@Override
public VirtualMachineScaleSetProperties properties() {
return properties;
}
@Override
public String toString() {
return "VirtualMachineScaleSet{"
+ "id=" + id + ", "
+ "name=" + name + ", "
+ "location=" + location + ", "
+ "sku=" + sku + ", "
+ "tags=" + tags + ", "
+ "plan=" + plan + ", "
+ "properties=" + properties
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof VirtualMachineScaleSet) {
VirtualMachineScaleSet that = (VirtualMachineScaleSet) o;
return ((this.id == null) ? (that.id() == null) : this.id.equals(that.id()))
&& ((this.name == null) ? (that.name() == null) : this.name.equals(that.name()))
&& ((this.location == null) ? (that.location() == null) : this.location.equals(that.location()))
&& (this.sku.equals(that.sku()))
&& ((this.tags == null) ? (that.tags() == null) : this.tags.equals(that.tags()))
&& ((this.plan == null) ? (that.plan() == null) : this.plan.equals(that.plan()))
&& ((this.properties == null) ? (that.properties() == null) : this.properties.equals(that.properties()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= (id == null) ? 0 : this.id.hashCode();
h *= 1000003;
h ^= (name == null) ? 0 : this.name.hashCode();
h *= 1000003;
h ^= (location == null) ? 0 : this.location.hashCode();
h *= 1000003;
h ^= this.sku.hashCode();
h *= 1000003;
h ^= (tags == null) ? 0 : this.tags.hashCode();
h *= 1000003;
h ^= (plan == null) ? 0 : this.plan.hashCode();
h *= 1000003;
h ^= (properties == null) ? 0 : this.properties.hashCode();
return h;
}
@Override
public VirtualMachineScaleSet.Builder toBuilder() {
return new Builder(this);
}
static final class Builder extends VirtualMachineScaleSet.Builder {
private String id;
private String name;
private String location;
private VirtualMachineScaleSetSKU sku;
private Map tags;
private VirtualMachineScaleSetPlan plan;
private VirtualMachineScaleSetProperties properties;
Builder() {
}
private Builder(VirtualMachineScaleSet source) {
this.id = source.id();
this.name = source.name();
this.location = source.location();
this.sku = source.sku();
this.tags = source.tags();
this.plan = source.plan();
this.properties = source.properties();
}
@Override
public VirtualMachineScaleSet.Builder id(@Nullable String id) {
this.id = id;
return this;
}
@Override
public VirtualMachineScaleSet.Builder name(@Nullable String name) {
this.name = name;
return this;
}
@Override
public VirtualMachineScaleSet.Builder location(@Nullable String location) {
this.location = location;
return this;
}
@Override
public VirtualMachineScaleSet.Builder sku(VirtualMachineScaleSetSKU sku) {
if (sku == null) {
throw new NullPointerException("Null sku");
}
this.sku = sku;
return this;
}
@Override
public VirtualMachineScaleSet.Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@Override
@Nullable Map tags() {
return tags;
}
@Override
public VirtualMachineScaleSet.Builder plan(@Nullable VirtualMachineScaleSetPlan plan) {
this.plan = plan;
return this;
}
@Override
public VirtualMachineScaleSet.Builder properties(@Nullable VirtualMachineScaleSetProperties properties) {
this.properties = properties;
return this;
}
@Override
VirtualMachineScaleSet autoBuild() {
String missing = "";
if (this.sku == null) {
missing += " sku";
}
if (!missing.isEmpty()) {
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_VirtualMachineScaleSet(
this.id,
this.name,
this.location,
this.sku,
this.tags,
this.plan,
this.properties);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy