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

com.spotify.styx.model.data.AutoValue_ExecStatus Maven / Gradle / Ivy


package com.spotify.styx.model.data;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.Instant;
import java.util.Optional;
import javax.annotation.Generated;

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

  private final Instant timestamp;
  private final String status;
  private final Optional message;

  AutoValue_ExecStatus(
      Instant timestamp,
      String status,
      Optional message) {
    if (timestamp == null) {
      throw new NullPointerException("Null timestamp");
    }
    this.timestamp = timestamp;
    if (status == null) {
      throw new NullPointerException("Null status");
    }
    this.status = status;
    if (message == null) {
      throw new NullPointerException("Null message");
    }
    this.message = message;
  }

  @JsonProperty(value = "timestamp")
  @Override
  public Instant timestamp() {
    return timestamp;
  }

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

  @JsonProperty(value = "message")
  @Override
  public Optional message() {
    return message;
  }

  @Override
  public String toString() {
    return "ExecStatus{"
        + "timestamp=" + timestamp + ", "
        + "status=" + status + ", "
        + "message=" + message
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ExecStatus) {
      ExecStatus that = (ExecStatus) o;
      return (this.timestamp.equals(that.timestamp()))
           && (this.status.equals(that.status()))
           && (this.message.equals(that.message()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.timestamp.hashCode();
    h *= 1000003;
    h ^= this.status.hashCode();
    h *= 1000003;
    h ^= this.message.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy