All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jclouds.openstack.neutron.v2.domain.AutoValue_CreateFirewallPolicy Maven / Gradle / Ivy

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_CreateFirewallPolicy extends CreateFirewallPolicy {

  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_CreateFirewallPolicy(
      @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 "CreateFirewallPolicy{"
        + "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 CreateFirewallPolicy) {
      CreateFirewallPolicy that = (CreateFirewallPolicy) 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 CreateFirewallPolicy.Builder toBuilder() {
    return new Builder(this);
  }

  static final class Builder extends CreateFirewallPolicy.Builder {
    private String tenantId;
    private String name;
    private String description;
    private Boolean shared;
    private List firewallRules;
    private Boolean audited;
    Builder() {
    }
    private Builder(CreateFirewallPolicy 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 CreateFirewallPolicy.Builder tenantId(@Nullable String tenantId) {
      this.tenantId = tenantId;
      return this;
    }
    @Override
    @Nullable public String getTenantId() {
      return tenantId;
    }
    @Override
    public CreateFirewallPolicy.Builder name(@Nullable String name) {
      this.name = name;
      return this;
    }
    @Override
    @Nullable public String getName() {
      return name;
    }
    @Override
    public CreateFirewallPolicy.Builder description(@Nullable String description) {
      this.description = description;
      return this;
    }
    @Override
    @Nullable public String getDescription() {
      return description;
    }
    @Override
    public CreateFirewallPolicy.Builder shared(@Nullable Boolean shared) {
      this.shared = shared;
      return this;
    }
    @Override
    @Nullable public Boolean getShared() {
      return shared;
    }
    @Override
    public CreateFirewallPolicy.Builder firewallRules(@Nullable List firewallRules) {
      this.firewallRules = firewallRules;
      return this;
    }
    @Override
    @Nullable public List getFirewallRules() {
      return firewallRules;
    }
    @Override
    public CreateFirewallPolicy.Builder audited(@Nullable Boolean audited) {
      this.audited = audited;
      return this;
    }
    @Override
    @Nullable public Boolean getAudited() {
      return audited;
    }
    @Override
    CreateFirewallPolicy autoBuild() {
      return new AutoValue_CreateFirewallPolicy(
          this.tenantId,
          this.name,
          this.description,
          this.shared,
          this.firewallRules,
          this.audited);
    }
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy