
org.jclouds.azurecompute.arm.domain.AutoValue_NetworkSecurityGroup 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_NetworkSecurityGroup extends NetworkSecurityGroup {
private final String id;
private final String name;
private final String location;
private final Map tags;
private final NetworkSecurityGroupProperties properties;
private final String etag;
AutoValue_NetworkSecurityGroup(
String id,
String name,
@Nullable String location,
@Nullable Map tags,
@Nullable NetworkSecurityGroupProperties properties,
@Nullable String etag) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
this.location = location;
this.tags = tags;
this.properties = properties;
this.etag = etag;
}
@Override
public String id() {
return id;
}
@Override
public String name() {
return name;
}
@Nullable
@Override
public String location() {
return location;
}
@Nullable
@Override
public Map tags() {
return tags;
}
@Nullable
@Override
public NetworkSecurityGroupProperties properties() {
return properties;
}
@Nullable
@Override
public String etag() {
return etag;
}
@Override
public String toString() {
return "NetworkSecurityGroup{"
+ "id=" + id + ", "
+ "name=" + name + ", "
+ "location=" + location + ", "
+ "tags=" + tags + ", "
+ "properties=" + properties + ", "
+ "etag=" + etag
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof NetworkSecurityGroup) {
NetworkSecurityGroup that = (NetworkSecurityGroup) o;
return (this.id.equals(that.id()))
&& (this.name.equals(that.name()))
&& ((this.location == null) ? (that.location() == null) : this.location.equals(that.location()))
&& ((this.tags == null) ? (that.tags() == null) : this.tags.equals(that.tags()))
&& ((this.properties == null) ? (that.properties() == null) : this.properties.equals(that.properties()))
&& ((this.etag == null) ? (that.etag() == null) : this.etag.equals(that.etag()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.id.hashCode();
h *= 1000003;
h ^= this.name.hashCode();
h *= 1000003;
h ^= (location == null) ? 0 : this.location.hashCode();
h *= 1000003;
h ^= (tags == null) ? 0 : this.tags.hashCode();
h *= 1000003;
h ^= (properties == null) ? 0 : this.properties.hashCode();
h *= 1000003;
h ^= (etag == null) ? 0 : this.etag.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy