
org.jclouds.azurecompute.arm.domain.AutoValue_Vault 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_Vault extends Vault {
private final String id;
private final String type;
private final String location;
private final Map tags;
private final String name;
private final VaultProperties properties;
private AutoValue_Vault(
@Nullable String id,
@Nullable String type,
String location,
@Nullable Map tags,
@Nullable String name,
VaultProperties properties) {
this.id = id;
this.type = type;
this.location = location;
this.tags = tags;
this.name = name;
this.properties = properties;
}
@Nullable
@Override
public String id() {
return id;
}
@Nullable
@Override
public String type() {
return type;
}
@Override
public String location() {
return location;
}
@Nullable
@Override
public Map tags() {
return tags;
}
@Nullable
@Override
public String name() {
return name;
}
@Override
public VaultProperties properties() {
return properties;
}
@Override
public String toString() {
return "Vault{"
+ "id=" + id + ", "
+ "type=" + type + ", "
+ "location=" + location + ", "
+ "tags=" + tags + ", "
+ "name=" + name + ", "
+ "properties=" + properties
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Vault) {
Vault that = (Vault) o;
return ((this.id == null) ? (that.id() == null) : this.id.equals(that.id()))
&& ((this.type == null) ? (that.type() == null) : this.type.equals(that.type()))
&& (this.location.equals(that.location()))
&& ((this.tags == null) ? (that.tags() == null) : this.tags.equals(that.tags()))
&& ((this.name == null) ? (that.name() == null) : this.name.equals(that.name()))
&& (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 ^= (type == null) ? 0 : this.type.hashCode();
h *= 1000003;
h ^= this.location.hashCode();
h *= 1000003;
h ^= (tags == null) ? 0 : this.tags.hashCode();
h *= 1000003;
h ^= (name == null) ? 0 : this.name.hashCode();
h *= 1000003;
h ^= this.properties.hashCode();
return h;
}
@Override
public Vault.Builder toBuilder() {
return new Builder(this);
}
static final class Builder extends Vault.Builder {
private String id;
private String type;
private String location;
private Map tags;
private String name;
private VaultProperties properties;
Builder() {
}
private Builder(Vault source) {
this.id = source.id();
this.type = source.type();
this.location = source.location();
this.tags = source.tags();
this.name = source.name();
this.properties = source.properties();
}
@Override
public Vault.Builder id(@Nullable String id) {
this.id = id;
return this;
}
@Override
public Vault.Builder type(@Nullable String type) {
this.type = type;
return this;
}
@Override
public Vault.Builder location(String location) {
if (location == null) {
throw new NullPointerException("Null location");
}
this.location = location;
return this;
}
@Override
public Vault.Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@Override
@Nullable Map tags() {
return tags;
}
@Override
public Vault.Builder name(@Nullable String name) {
this.name = name;
return this;
}
@Override
public Vault.Builder properties(VaultProperties properties) {
if (properties == null) {
throw new NullPointerException("Null properties");
}
this.properties = properties;
return this;
}
@Override
Vault autoBuild() {
String missing = "";
if (this.location == null) {
missing += " location";
}
if (this.properties == null) {
missing += " properties";
}
if (!missing.isEmpty()) {
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_Vault(
this.id,
this.type,
this.location,
this.tags,
this.name,
this.properties);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy