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

org.jclouds.googlecomputeengine.options.AutoValue_ImageCreationOptions Maven / Gradle / Ivy

The newest version!

package org.jclouds.googlecomputeengine.options;

import javax.annotation.Generated;
import org.jclouds.googlecomputeengine.domain.Deprecated;
import org.jclouds.googlecomputeengine.domain.Image;
import org.jclouds.javax.annotation.Nullable;

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

  private final String name;
  private final String description;
  private final String sourceType;
  private final Image.RawDisk rawDisk;
  private final Deprecated deprecated;
  private final String sourceDisk;

  AutoValue_ImageCreationOptions(
      String name,
      @Nullable String description,
      @Nullable String sourceType,
      @Nullable Image.RawDisk rawDisk,
      @Nullable Deprecated deprecated,
      @Nullable String sourceDisk) {
    if (name == null) {
      throw new NullPointerException("Null name");
    }
    this.name = name;
    this.description = description;
    this.sourceType = sourceType;
    this.rawDisk = rawDisk;
    this.deprecated = deprecated;
    this.sourceDisk = sourceDisk;
  }

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

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

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

  @Nullable
  @Override
  public Image.RawDisk rawDisk() {
    return rawDisk;
  }

  @Nullable
  @Override
  public Deprecated deprecated() {
    return deprecated;
  }

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

  @Override
  public String toString() {
    return "ImageCreationOptions{"
        + "name=" + name + ", "
        + "description=" + description + ", "
        + "sourceType=" + sourceType + ", "
        + "rawDisk=" + rawDisk + ", "
        + "deprecated=" + deprecated + ", "
        + "sourceDisk=" + sourceDisk
        + "}";
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy