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

org.jclouds.digitalocean2.domain.AutoValue_DropletCreate Maven / Gradle / Ivy

The newest version!

package org.jclouds.digitalocean2.domain;

import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_DropletCreate extends DropletCreate {

  private final Droplet droplet;
  private final DropletCreate.Links links;

  AutoValue_DropletCreate(
      Droplet droplet,
      DropletCreate.Links links) {
    if (droplet == null) {
      throw new NullPointerException("Null droplet");
    }
    this.droplet = droplet;
    if (links == null) {
      throw new NullPointerException("Null links");
    }
    this.links = links;
  }

  @Override
  public Droplet droplet() {
    return droplet;
  }

  @Override
  public DropletCreate.Links links() {
    return links;
  }

  @Override
  public String toString() {
    return "DropletCreate{"
        + "droplet=" + droplet + ", "
        + "links=" + links
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof DropletCreate) {
      DropletCreate that = (DropletCreate) o;
      return (this.droplet.equals(that.droplet()))
           && (this.links.equals(that.links()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.droplet.hashCode();
    h *= 1000003;
    h ^= this.links.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy