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

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

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

  private final Long heartbeatPeriod;

  AutoValue_DispatcherConfig(
      Long heartbeatPeriod) {
    if (heartbeatPeriod == null) {
      throw new NullPointerException("Null heartbeatPeriod");
    }
    this.heartbeatPeriod = heartbeatPeriod;
  }

  @JsonProperty(value = "HeartbeatPeriod")
  @Override
  public Long heartbeatPeriod() {
    return heartbeatPeriod;
  }

  @Override
  public String toString() {
    return "DispatcherConfig{"
        + "heartbeatPeriod=" + heartbeatPeriod
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof DispatcherConfig) {
      DispatcherConfig that = (DispatcherConfig) o;
      return (this.heartbeatPeriod.equals(that.heartbeatPeriod()));
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy