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

org.jclouds.googlecomputeengine.domain.AutoValue_NewTargetInstance Maven / Gradle / Ivy

The newest version!

package org.jclouds.googlecomputeengine.domain;

import java.net.URI;
import javax.annotation.Generated;
import org.jclouds.javax.annotation.Nullable;

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

  private final String name;
  private final String description;
  private final String natPolicy;
  private final URI instance;

  AutoValue_NewTargetInstance(
      String name,
      @Nullable String description,
      @Nullable String natPolicy,
      @Nullable URI instance) {
    if (name == null) {
      throw new NullPointerException("Null name");
    }
    this.name = name;
    this.description = description;
    this.natPolicy = natPolicy;
    this.instance = instance;
  }

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

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

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

  @Nullable
  @Override
  public URI instance() {
    return instance;
  }

  @Override
  public String toString() {
    return "NewTargetInstance{"
        + "name=" + name + ", "
        + "description=" + description + ", "
        + "natPolicy=" + natPolicy + ", "
        + "instance=" + instance
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof NewTargetInstance) {
      NewTargetInstance that = (NewTargetInstance) o;
      return (this.name.equals(that.name()))
           && ((this.description == null) ? (that.description() == null) : this.description.equals(that.description()))
           && ((this.natPolicy == null) ? (that.natPolicy() == null) : this.natPolicy.equals(that.natPolicy()))
           && ((this.instance == null) ? (that.instance() == null) : this.instance.equals(that.instance()));
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy