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

com.spotify.styx.model.AutoValue_DataEndpoint Maven / Gradle / Ivy

There is a newer version: 2.0.24
Show newest version

package com.spotify.styx.model;

import java.util.List;
import java.util.Optional;
import javax.annotation.Generated;

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

  private final String id;
  private final Partitioning partitioning;
  private final Optional dockerImage;
  private final Optional> dockerArgs;
  private final Optional secret;

  AutoValue_DataEndpoint(
      String id,
      Partitioning partitioning,
      Optional dockerImage,
      Optional> dockerArgs,
      Optional secret) {
    if (id == null) {
      throw new NullPointerException("Null id");
    }
    this.id = id;
    if (partitioning == null) {
      throw new NullPointerException("Null partitioning");
    }
    this.partitioning = partitioning;
    if (dockerImage == null) {
      throw new NullPointerException("Null dockerImage");
    }
    this.dockerImage = dockerImage;
    if (dockerArgs == null) {
      throw new NullPointerException("Null dockerArgs");
    }
    this.dockerArgs = dockerArgs;
    if (secret == null) {
      throw new NullPointerException("Null secret");
    }
    this.secret = secret;
  }

  @com.fasterxml.jackson.annotation.JsonProperty
  @Override
  public String id() {
    return id;
  }

  @com.fasterxml.jackson.annotation.JsonProperty
  @Override
  public Partitioning partitioning() {
    return partitioning;
  }

  @com.fasterxml.jackson.annotation.JsonProperty
  @Override
  public Optional dockerImage() {
    return dockerImage;
  }

  @com.fasterxml.jackson.annotation.JsonProperty
  @Override
  public Optional> dockerArgs() {
    return dockerArgs;
  }

  @com.fasterxml.jackson.annotation.JsonProperty
  @Override
  public Optional secret() {
    return secret;
  }

  @Override
  public String toString() {
    return "DataEndpoint{"
        + "id=" + id + ", "
        + "partitioning=" + partitioning + ", "
        + "dockerImage=" + dockerImage + ", "
        + "dockerArgs=" + dockerArgs + ", "
        + "secret=" + secret
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof DataEndpoint) {
      DataEndpoint that = (DataEndpoint) o;
      return (this.id.equals(that.id()))
           && (this.partitioning.equals(that.partitioning()))
           && (this.dockerImage.equals(that.dockerImage()))
           && (this.dockerArgs.equals(that.dockerArgs()))
           && (this.secret.equals(that.secret()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= id.hashCode();
    h *= 1000003;
    h ^= partitioning.hashCode();
    h *= 1000003;
    h ^= dockerImage.hashCode();
    h *= 1000003;
    h ^= dockerArgs.hashCode();
    h *= 1000003;
    h ^= secret.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy