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

org.apache.jclouds.oneandone.rest.domain.AutoValue_SshKey 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_SshKey extends SshKey {

  private final String id;
  private final String name;
  private final String description;
  private final Types.GenericState state;
  private final List servers;
  private final String md5;
  private final String publicKey;
  private final String creationDate;

  AutoValue_SshKey(
      String id,
      String name,
      @Nullable String description,
      @Nullable Types.GenericState state,
      @Nullable List servers,
      @Nullable String md5,
      @Nullable String publicKey,
      @Nullable String creationDate) {
    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.servers = servers;
    this.md5 = md5;
    this.publicKey = publicKey;
    this.creationDate = creationDate;
  }

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

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

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

  @Nullable
  @Override
  public Types.GenericState state() {
    return state;
  }

  @Nullable
  @Override
  public List servers() {
    return servers;
  }

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

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

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

  @Override
  public String toString() {
    return "SshKey{"
        + "id=" + id + ", "
        + "name=" + name + ", "
        + "description=" + description + ", "
        + "state=" + state + ", "
        + "servers=" + servers + ", "
        + "md5=" + md5 + ", "
        + "publicKey=" + publicKey + ", "
        + "creationDate=" + creationDate
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof SshKey) {
      SshKey that = (SshKey) 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.servers == null) ? (that.servers() == null) : this.servers.equals(that.servers()))
           && ((this.md5 == null) ? (that.md5() == null) : this.md5.equals(that.md5()))
           && ((this.publicKey == null) ? (that.publicKey() == null) : this.publicKey.equals(that.publicKey()))
           && ((this.creationDate == null) ? (that.creationDate() == null) : this.creationDate.equals(that.creationDate()));
    }
    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 ^= (servers == null) ? 0 : this.servers.hashCode();
    h *= 1000003;
    h ^= (md5 == null) ? 0 : this.md5.hashCode();
    h *= 1000003;
    h ^= (publicKey == null) ? 0 : this.publicKey.hashCode();
    h *= 1000003;
    h ^= (creationDate == null) ? 0 : this.creationDate.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy