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

com.spotify.docker.client.messages.AutoValue_VolumeList Maven / Gradle / Ivy

There is a newer version: 8.16.0
Show newest version

package com.spotify.docker.client.messages;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableList;
import javax.annotation.Generated;
import javax.annotation.Nullable;

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

  private final ImmutableList volumes;
  private final ImmutableList warnings;

  AutoValue_VolumeList(
      @Nullable ImmutableList volumes,
      @Nullable ImmutableList warnings) {
    this.volumes = volumes;
    this.warnings = warnings;
  }

  @Nullable
  @JsonProperty(value = "Volumes")
  @Override
  public ImmutableList volumes() {
    return volumes;
  }

  @Nullable
  @JsonProperty(value = "Warnings")
  @Override
  public ImmutableList warnings() {
    return warnings;
  }

  @Override
  public String toString() {
    return "VolumeList{"
        + "volumes=" + volumes + ", "
        + "warnings=" + warnings
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof VolumeList) {
      VolumeList that = (VolumeList) o;
      return ((this.volumes == null) ? (that.volumes() == null) : this.volumes.equals(that.volumes()))
           && ((this.warnings == null) ? (that.warnings() == null) : this.warnings.equals(that.warnings()));
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy