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

com.spotify.docker.client.messages.AutoValue_ContainerMount 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 javax.annotation.Generated;

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

  private final String source;
  private final String destination;
  private final String mode;
  private final Boolean rw;

  AutoValue_ContainerMount(
      String source,
      String destination,
      String mode,
      Boolean rw) {
    if (source == null) {
      throw new NullPointerException("Null source");
    }
    this.source = source;
    if (destination == null) {
      throw new NullPointerException("Null destination");
    }
    this.destination = destination;
    if (mode == null) {
      throw new NullPointerException("Null mode");
    }
    this.mode = mode;
    if (rw == null) {
      throw new NullPointerException("Null rw");
    }
    this.rw = rw;
  }

  @JsonProperty(value = "Source")
  @Override
  public String source() {
    return source;
  }

  @JsonProperty(value = "Destination")
  @Override
  public String destination() {
    return destination;
  }

  @JsonProperty(value = "Mode")
  @Override
  public String mode() {
    return mode;
  }

  @JsonProperty(value = "RW")
  @Override
  public Boolean rw() {
    return rw;
  }

  @Override
  public String toString() {
    return "ContainerMount{"
        + "source=" + source + ", "
        + "destination=" + destination + ", "
        + "mode=" + mode + ", "
        + "rw=" + rw
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ContainerMount) {
      ContainerMount that = (ContainerMount) o;
      return (this.source.equals(that.source()))
           && (this.destination.equals(that.destination()))
           && (this.mode.equals(that.mode()))
           && (this.rw.equals(that.rw()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.source.hashCode();
    h *= 1000003;
    h ^= this.destination.hashCode();
    h *= 1000003;
    h ^= this.mode.hashCode();
    h *= 1000003;
    h ^= this.rw.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy