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

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

The newest version!

package org.jclouds.digitalocean2.domain;

import java.net.URI;
import javax.annotation.Generated;

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

  private final int id;
  private final String rel;
  private final URI href;

  AutoValue_DropletCreate_Links_ActionLink(
      int id,
      String rel,
      URI href) {
    this.id = id;
    if (rel == null) {
      throw new NullPointerException("Null rel");
    }
    this.rel = rel;
    if (href == null) {
      throw new NullPointerException("Null href");
    }
    this.href = href;
  }

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

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

  @Override
  public URI href() {
    return href;
  }

  @Override
  public String toString() {
    return "ActionLink{"
        + "id=" + id + ", "
        + "rel=" + rel + ", "
        + "href=" + href
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof DropletCreate.Links.ActionLink) {
      DropletCreate.Links.ActionLink that = (DropletCreate.Links.ActionLink) o;
      return (this.id == that.id())
           && (this.rel.equals(that.rel()))
           && (this.href.equals(that.href()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.id;
    h *= 1000003;
    h ^= this.rel.hashCode();
    h *= 1000003;
    h ^= this.href.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy