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

com.spotify.docker.client.messages.swarm.AutoValue_ExternalCa Maven / Gradle / Ivy

There is a newer version: 8.18.4
Show newest version

package com.spotify.docker.client.messages.swarm;

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

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

  private final String protocol;
  private final String url;
  private final ImmutableMap options;

  AutoValue_ExternalCa(
      String protocol,
      String url,
      ImmutableMap options) {
    if (protocol == null) {
      throw new NullPointerException("Null protocol");
    }
    this.protocol = protocol;
    if (url == null) {
      throw new NullPointerException("Null url");
    }
    this.url = url;
    if (options == null) {
      throw new NullPointerException("Null options");
    }
    this.options = options;
  }

  @JsonProperty(value = "Protocol")
  @Override
  public String protocol() {
    return protocol;
  }

  @JsonProperty(value = "URL")
  @Override
  public String url() {
    return url;
  }

  @JsonProperty(value = "Options")
  @Override
  public ImmutableMap options() {
    return options;
  }

  @Override
  public String toString() {
    return "ExternalCa{"
        + "protocol=" + protocol + ", "
        + "url=" + url + ", "
        + "options=" + options
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ExternalCa) {
      ExternalCa that = (ExternalCa) o;
      return (this.protocol.equals(that.protocol()))
           && (this.url.equals(that.url()))
           && (this.options.equals(that.options()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.protocol.hashCode();
    h *= 1000003;
    h ^= this.url.hashCode();
    h *= 1000003;
    h ^= this.options.hashCode();
    return h;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy