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

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

There is a newer version: 2.0.24
Show newest version

package com.spotify.styx.model;

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

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

  private final String executionId;
  private final String dockerImage;
  private final List statuses;

  AutoValue_Execution(
      String executionId,
      String dockerImage,
      List statuses) {
    if (executionId == null) {
      throw new NullPointerException("Null executionId");
    }
    this.executionId = executionId;
    if (dockerImage == null) {
      throw new NullPointerException("Null dockerImage");
    }
    this.dockerImage = dockerImage;
    if (statuses == null) {
      throw new NullPointerException("Null statuses");
    }
    this.statuses = statuses;
  }

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

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

  @com.fasterxml.jackson.annotation.JsonProperty
  @Override
  public List statuses() {
    return statuses;
  }

  @Override
  public String toString() {
    return "Execution{"
        + "executionId=" + executionId + ", "
        + "dockerImage=" + dockerImage + ", "
        + "statuses=" + statuses
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Execution) {
      Execution that = (Execution) o;
      return (this.executionId.equals(that.executionId()))
           && (this.dockerImage.equals(that.dockerImage()))
           && (this.statuses.equals(that.statuses()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= executionId.hashCode();
    h *= 1000003;
    h ^= dockerImage.hashCode();
    h *= 1000003;
    h ^= statuses.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy