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

org.apache.jclouds.oneandone.rest.domain.AutoValue_FirewallPolicy Maven / Gradle / Ivy

The newest version!

package org.apache.jclouds.oneandone.rest.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_FirewallPolicy extends FirewallPolicy {

  private final String id;
  private final String name;
  private final String description;
  private final String state;
  private final String creationDate;
  private final String defaultState;
  private final List rules;
  private final List serverIps;
  private final String cloudpanelId;

  AutoValue_FirewallPolicy(
      String id,
      String name,
      @Nullable String description,
      @Nullable String state,
      @Nullable String creationDate,
      @Nullable String defaultState,
      List rules,
      List serverIps,
      @Nullable String cloudpanelId) {
    if (id == null) {
      throw new NullPointerException("Null id");
    }
    this.id = id;
    if (name == null) {
      throw new NullPointerException("Null name");
    }
    this.name = name;
    this.description = description;
    this.state = state;
    this.creationDate = creationDate;
    this.defaultState = defaultState;
    if (rules == null) {
      throw new NullPointerException("Null rules");
    }
    this.rules = rules;
    if (serverIps == null) {
      throw new NullPointerException("Null serverIps");
    }
    this.serverIps = serverIps;
    this.cloudpanelId = cloudpanelId;
  }

  @Override
  public String id() {
    return id;
  }

  @Override
  public String name() {
    return name;
  }

  @Nullable
  @Override
  public String description() {
    return description;
  }

  @Nullable
  @Override
  public String state() {
    return state;
  }

  @Nullable
  @Override
  public String creationDate() {
    return creationDate;
  }

  @Nullable
  @Override
  public String defaultState() {
    return defaultState;
  }

  @Override
  public List rules() {
    return rules;
  }

  @Override
  public List serverIps() {
    return serverIps;
  }

  @Nullable
  @Override
  public String cloudpanelId() {
    return cloudpanelId;
  }

  @Override
  public String toString() {
    return "FirewallPolicy{"
        + "id=" + id + ", "
        + "name=" + name + ", "
        + "description=" + description + ", "
        + "state=" + state + ", "
        + "creationDate=" + creationDate + ", "
        + "defaultState=" + defaultState + ", "
        + "rules=" + rules + ", "
        + "serverIps=" + serverIps + ", "
        + "cloudpanelId=" + cloudpanelId
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof FirewallPolicy) {
      FirewallPolicy that = (FirewallPolicy) o;
      return (this.id.equals(that.id()))
           && (this.name.equals(that.name()))
           && ((this.description == null) ? (that.description() == null) : this.description.equals(that.description()))
           && ((this.state == null) ? (that.state() == null) : this.state.equals(that.state()))
           && ((this.creationDate == null) ? (that.creationDate() == null) : this.creationDate.equals(that.creationDate()))
           && ((this.defaultState == null) ? (that.defaultState() == null) : this.defaultState.equals(that.defaultState()))
           && (this.rules.equals(that.rules()))
           && (this.serverIps.equals(that.serverIps()))
           && ((this.cloudpanelId == null) ? (that.cloudpanelId() == null) : this.cloudpanelId.equals(that.cloudpanelId()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.id.hashCode();
    h *= 1000003;
    h ^= this.name.hashCode();
    h *= 1000003;
    h ^= (description == null) ? 0 : this.description.hashCode();
    h *= 1000003;
    h ^= (state == null) ? 0 : this.state.hashCode();
    h *= 1000003;
    h ^= (creationDate == null) ? 0 : this.creationDate.hashCode();
    h *= 1000003;
    h ^= (defaultState == null) ? 0 : this.defaultState.hashCode();
    h *= 1000003;
    h ^= this.rules.hashCode();
    h *= 1000003;
    h ^= this.serverIps.hashCode();
    h *= 1000003;
    h ^= (cloudpanelId == null) ? 0 : this.cloudpanelId.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy