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

org.jclouds.azurecompute.arm.domain.AutoValue_SKU 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_SKU extends SKU {

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

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

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

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

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

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy