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

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

package com.spotify.styx.model.data;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.spotify.styx.model.WorkflowInstance;
import java.util.List;
import javax.annotation.processing.Generated;

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

  private final WorkflowInstance workflowInstance;

  private final List triggers;

  AutoValue_WorkflowInstanceExecutionData(
      WorkflowInstance workflowInstance,
      List triggers) {
    if (workflowInstance == null) {
      throw new NullPointerException("Null workflowInstance");
    }
    this.workflowInstance = workflowInstance;
    if (triggers == null) {
      throw new NullPointerException("Null triggers");
    }
    this.triggers = triggers;
  }

  @JsonProperty
  @Override
  public WorkflowInstance workflowInstance() {
    return workflowInstance;
  }

  @JsonProperty
  @Override
  public List triggers() {
    return triggers;
  }

  @Override
  public String toString() {
    return "WorkflowInstanceExecutionData{"
        + "workflowInstance=" + workflowInstance + ", "
        + "triggers=" + triggers
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof WorkflowInstanceExecutionData) {
      WorkflowInstanceExecutionData that = (WorkflowInstanceExecutionData) o;
      return this.workflowInstance.equals(that.workflowInstance())
          && this.triggers.equals(that.triggers());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= workflowInstance.hashCode();
    h$ *= 1000003;
    h$ ^= triggers.hashCode();
    return h$;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy