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

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

There is a newer version: 8.16.0
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_RegistryConfigs_RegistryConfig extends RegistryConfigs.RegistryConfig {

  private final String serverAddress;
  private final String username;
  private final String password;
  private final String email;
  private final String auth;

  AutoValue_RegistryConfigs_RegistryConfig(
      String serverAddress,
      @Nullable String username,
      @Nullable String password,
      @Nullable String email,
      String auth) {
    if (serverAddress == null) {
      throw new NullPointerException("Null serverAddress");
    }
    this.serverAddress = serverAddress;
    this.username = username;
    this.password = password;
    this.email = email;
    if (auth == null) {
      throw new NullPointerException("Null auth");
    }
    this.auth = auth;
  }

  @JsonProperty(value = "serveraddress")
  @Override
  public String serverAddress() {
    return serverAddress;
  }

  @Nullable
  @JsonProperty(value = "username")
  @Override
  public String username() {
    return username;
  }

  @Nullable
  @JsonProperty(value = "password")
  @Override
  public String password() {
    return password;
  }

  @Nullable
  @JsonProperty(value = "email")
  @Override
  public String email() {
    return email;
  }

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

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof RegistryConfigs.RegistryConfig) {
      RegistryConfigs.RegistryConfig that = (RegistryConfigs.RegistryConfig) o;
      return (this.serverAddress.equals(that.serverAddress()))
           && ((this.username == null) ? (that.username() == null) : this.username.equals(that.username()))
           && ((this.password == null) ? (that.password() == null) : this.password.equals(that.password()))
           && ((this.email == null) ? (that.email() == null) : this.email.equals(that.email()))
           && (this.auth.equals(that.auth()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.serverAddress.hashCode();
    h *= 1000003;
    h ^= (username == null) ? 0 : this.username.hashCode();
    h *= 1000003;
    h ^= (password == null) ? 0 : this.password.hashCode();
    h *= 1000003;
    h ^= (email == null) ? 0 : this.email.hashCode();
    h *= 1000003;
    h ^= this.auth.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy