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

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

There is a newer version: 8.16.0
Show newest version

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

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_CaConfig extends CaConfig {

  private final Long nodeCertExpiry;
  private final ImmutableList externalCas;

  AutoValue_CaConfig(
      Long nodeCertExpiry,
      @Nullable ImmutableList externalCas) {
    if (nodeCertExpiry == null) {
      throw new NullPointerException("Null nodeCertExpiry");
    }
    this.nodeCertExpiry = nodeCertExpiry;
    this.externalCas = externalCas;
  }

  @JsonProperty(value = "NodeCertExpiry")
  @Override
  public Long nodeCertExpiry() {
    return nodeCertExpiry;
  }

  @Nullable
  @JsonProperty(value = "ExternalCAs")
  @Override
  public ImmutableList externalCas() {
    return externalCas;
  }

  @Override
  public String toString() {
    return "CaConfig{"
        + "nodeCertExpiry=" + nodeCertExpiry + ", "
        + "externalCas=" + externalCas
        + "}";
  }

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy