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

com.spotify.docker.client.messages.AutoValue_ServiceCreateResponse Maven / Gradle / Ivy

There is a newer version: 8.18.4
Show newest version

package com.spotify.docker.client.messages;

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_ServiceCreateResponse extends ServiceCreateResponse {

  private final String id;
  private final ImmutableList warnings;

  AutoValue_ServiceCreateResponse(
      String id,
      @Nullable ImmutableList warnings) {
    if (id == null) {
      throw new NullPointerException("Null id");
    }
    this.id = id;
    this.warnings = warnings;
  }

  @JsonProperty(value = "ID")
  @Override
  public String id() {
    return id;
  }

  @Nullable
  @JsonProperty(value = "Warnings")
  @Override
  public ImmutableList warnings() {
    return warnings;
  }

  @Override
  public String toString() {
    return "ServiceCreateResponse{"
        + "id=" + id + ", "
        + "warnings=" + warnings
        + "}";
  }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy