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

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

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

  private final String id;
  private final String warnings;

  AutoValue_NetworkCreation(
      String id,
      @Nullable String 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 String warnings() {
    return warnings;
  }

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

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof NetworkCreation) {
      NetworkCreation that = (NetworkCreation) 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