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

org.jclouds.azurecompute.arm.domain.AutoValue_Offer Maven / Gradle / Ivy

The newest version!

package org.jclouds.azurecompute.arm.domain;

import javax.annotation.Generated;
import org.jclouds.javax.annotation.Nullable;

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

  private final String location;
  private final String name;
  private final String id;

  AutoValue_Offer(
      @Nullable String location,
      @Nullable String name,
      @Nullable String id) {
    this.location = location;
    this.name = name;
    this.id = id;
  }

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

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

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

  @Override
  public String toString() {
    return "Offer{"
        + "location=" + location + ", "
        + "name=" + name + ", "
        + "id=" + id
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Offer) {
      Offer that = (Offer) o;
      return ((this.location == null) ? (that.location() == null) : this.location.equals(that.location()))
           && ((this.name == null) ? (that.name() == null) : this.name.equals(that.name()))
           && ((this.id == null) ? (that.id() == null) : this.id.equals(that.id()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= (location == null) ? 0 : this.location.hashCode();
    h *= 1000003;
    h ^= (name == null) ? 0 : this.name.hashCode();
    h *= 1000003;
    h ^= (id == null) ? 0 : this.id.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy