
org.jclouds.openstack.neutron.v2.domain.AutoValue_UpdateFirewallPolicy 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.openstack.neutron.v2.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_UpdateFirewallPolicy extends UpdateFirewallPolicy {
private final String tenantId;
private final String name;
private final String description;
private final Boolean shared;
private final List firewallRules;
private final Boolean audited;
private AutoValue_UpdateFirewallPolicy(
@Nullable String tenantId,
@Nullable String name,
@Nullable String description,
@Nullable Boolean shared,
@Nullable List firewallRules,
@Nullable Boolean audited) {
this.tenantId = tenantId;
this.name = name;
this.description = description;
this.shared = shared;
this.firewallRules = firewallRules;
this.audited = audited;
}
@Nullable
@Override
public String getTenantId() {
return tenantId;
}
@Nullable
@Override
public String getName() {
return name;
}
@Nullable
@Override
public String getDescription() {
return description;
}
@Nullable
@Override
public Boolean getShared() {
return shared;
}
@Nullable
@Override
public List getFirewallRules() {
return firewallRules;
}
@Nullable
@Override
public Boolean getAudited() {
return audited;
}
@Override
public String toString() {
return "UpdateFirewallPolicy{"
+ "tenantId=" + tenantId + ", "
+ "name=" + name + ", "
+ "description=" + description + ", "
+ "shared=" + shared + ", "
+ "firewallRules=" + firewallRules + ", "
+ "audited=" + audited
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof UpdateFirewallPolicy) {
UpdateFirewallPolicy that = (UpdateFirewallPolicy) o;
return ((this.tenantId == null) ? (that.getTenantId() == null) : this.tenantId.equals(that.getTenantId()))
&& ((this.name == null) ? (that.getName() == null) : this.name.equals(that.getName()))
&& ((this.description == null) ? (that.getDescription() == null) : this.description.equals(that.getDescription()))
&& ((this.shared == null) ? (that.getShared() == null) : this.shared.equals(that.getShared()))
&& ((this.firewallRules == null) ? (that.getFirewallRules() == null) : this.firewallRules.equals(that.getFirewallRules()))
&& ((this.audited == null) ? (that.getAudited() == null) : this.audited.equals(that.getAudited()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= (tenantId == null) ? 0 : this.tenantId.hashCode();
h *= 1000003;
h ^= (name == null) ? 0 : this.name.hashCode();
h *= 1000003;
h ^= (description == null) ? 0 : this.description.hashCode();
h *= 1000003;
h ^= (shared == null) ? 0 : this.shared.hashCode();
h *= 1000003;
h ^= (firewallRules == null) ? 0 : this.firewallRules.hashCode();
h *= 1000003;
h ^= (audited == null) ? 0 : this.audited.hashCode();
return h;
}
@Override
public UpdateFirewallPolicy.Builder toBuilder() {
return new Builder(this);
}
static final class Builder extends UpdateFirewallPolicy.Builder {
private String tenantId;
private String name;
private String description;
private Boolean shared;
private List firewallRules;
private Boolean audited;
Builder() {
}
private Builder(UpdateFirewallPolicy source) {
this.tenantId = source.getTenantId();
this.name = source.getName();
this.description = source.getDescription();
this.shared = source.getShared();
this.firewallRules = source.getFirewallRules();
this.audited = source.getAudited();
}
@Override
public UpdateFirewallPolicy.Builder tenantId(@Nullable String tenantId) {
this.tenantId = tenantId;
return this;
}
@Override
@Nullable public String getTenantId() {
return tenantId;
}
@Override
public UpdateFirewallPolicy.Builder name(@Nullable String name) {
this.name = name;
return this;
}
@Override
@Nullable public String getName() {
return name;
}
@Override
public UpdateFirewallPolicy.Builder description(@Nullable String description) {
this.description = description;
return this;
}
@Override
@Nullable public String getDescription() {
return description;
}
@Override
public UpdateFirewallPolicy.Builder shared(@Nullable Boolean shared) {
this.shared = shared;
return this;
}
@Override
@Nullable public Boolean getShared() {
return shared;
}
@Override
public UpdateFirewallPolicy.Builder firewallRules(@Nullable List firewallRules) {
this.firewallRules = firewallRules;
return this;
}
@Override
@Nullable public List getFirewallRules() {
return firewallRules;
}
@Override
public UpdateFirewallPolicy.Builder audited(@Nullable Boolean audited) {
this.audited = audited;
return this;
}
@Override
@Nullable public Boolean getAudited() {
return audited;
}
@Override
UpdateFirewallPolicy autoBuild() {
return new AutoValue_UpdateFirewallPolicy(
this.tenantId,
this.name,
this.description,
this.shared,
this.firewallRules,
this.audited);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy