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

com.spotify.docker.client.messages.swarm.AutoValue_ReplicatedService 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;
import javax.annotation.Nullable;

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

  private final Long replicas;

  private AutoValue_ReplicatedService(
      @Nullable Long replicas) {
    this.replicas = replicas;
  }

  @Nullable
  @JsonProperty(value = "Replicas")
  @Override
  public Long replicas() {
    return replicas;
  }

  @Override
  public String toString() {
    return "ReplicatedService{"
        + "replicas=" + replicas
        + "}";
  }

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

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

  static final class Builder extends ReplicatedService.Builder {
    private Long replicas;
    Builder() {
    }
    Builder(ReplicatedService source) {
      this.replicas = source.replicas();
    }
    @Override
    public ReplicatedService.Builder replicas(@Nullable Long replicas) {
      this.replicas = replicas;
      return this;
    }
    @Override
    public ReplicatedService build() {
      return new AutoValue_ReplicatedService(
          this.replicas);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy