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

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

There is a newer version: 2.0.24
Show newest version

package com.spotify.styx.model;

import java.time.Instant;
import java.util.Optional;
import javax.annotation.Generated;

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

  private final WorkflowInstance workflowInstance;
  private final Instant when;
  private final ExecutionStatus executionStatus;
  private final Optional executionId;

  AutoValue_WorkflowExecutionInfo(
      WorkflowInstance workflowInstance,
      Instant when,
      ExecutionStatus executionStatus,
      Optional executionId) {
    if (workflowInstance == null) {
      throw new NullPointerException("Null workflowInstance");
    }
    this.workflowInstance = workflowInstance;
    if (when == null) {
      throw new NullPointerException("Null when");
    }
    this.when = when;
    if (executionStatus == null) {
      throw new NullPointerException("Null executionStatus");
    }
    this.executionStatus = executionStatus;
    if (executionId == null) {
      throw new NullPointerException("Null executionId");
    }
    this.executionId = executionId;
  }

  @com.fasterxml.jackson.annotation.JsonProperty
  @Override
  public WorkflowInstance workflowInstance() {
    return workflowInstance;
  }

  @com.fasterxml.jackson.annotation.JsonProperty
  @Override
  public Instant when() {
    return when;
  }

  @com.fasterxml.jackson.annotation.JsonProperty
  @Override
  public ExecutionStatus executionStatus() {
    return executionStatus;
  }

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

  @Override
  public String toString() {
    return "WorkflowExecutionInfo{"
        + "workflowInstance=" + workflowInstance + ", "
        + "when=" + when + ", "
        + "executionStatus=" + executionStatus + ", "
        + "executionId=" + executionId
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof WorkflowExecutionInfo) {
      WorkflowExecutionInfo that = (WorkflowExecutionInfo) o;
      return (this.workflowInstance.equals(that.workflowInstance()))
           && (this.when.equals(that.when()))
           && (this.executionStatus.equals(that.executionStatus()))
           && (this.executionId.equals(that.executionId()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= workflowInstance.hashCode();
    h *= 1000003;
    h ^= when.hashCode();
    h *= 1000003;
    h ^= executionStatus.hashCode();
    h *= 1000003;
    h ^= executionId.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy