
org.jclouds.azurecompute.arm.domain.vpn.AutoValue_VPNClientRootCertificate 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.vpn;
import javax.annotation.Generated;
import org.jclouds.javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_VPNClientRootCertificate extends VPNClientRootCertificate {
private final String id;
private final String name;
private final String etag;
private final VPNClientRootCertificate.VPNClientRootCertificateProperties properties;
AutoValue_VPNClientRootCertificate(
@Nullable String id,
String name,
@Nullable String etag,
VPNClientRootCertificate.VPNClientRootCertificateProperties properties) {
this.id = id;
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
this.etag = etag;
if (properties == null) {
throw new NullPointerException("Null properties");
}
this.properties = properties;
}
@Nullable
@Override
public String id() {
return id;
}
@Override
public String name() {
return name;
}
@Nullable
@Override
public String etag() {
return etag;
}
@Override
public VPNClientRootCertificate.VPNClientRootCertificateProperties properties() {
return properties;
}
@Override
public String toString() {
return "VPNClientRootCertificate{"
+ "id=" + id + ", "
+ "name=" + name + ", "
+ "etag=" + etag + ", "
+ "properties=" + properties
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof VPNClientRootCertificate) {
VPNClientRootCertificate that = (VPNClientRootCertificate) o;
return ((this.id == null) ? (that.id() == null) : this.id.equals(that.id()))
&& (this.name.equals(that.name()))
&& ((this.etag == null) ? (that.etag() == null) : this.etag.equals(that.etag()))
&& (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 ^= this.name.hashCode();
h *= 1000003;
h ^= (etag == null) ? 0 : this.etag.hashCode();
h *= 1000003;
h ^= this.properties.hashCode();
return h;
}
}