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

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


package com.spotify.styx.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;

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

  private final String componentId;
  private final String workflowId;
  private final WorkflowConfiguration configuration;

  AutoValue_Workflow(
      String componentId,
      String workflowId,
      WorkflowConfiguration configuration) {
    if (componentId == null) {
      throw new NullPointerException("Null componentId");
    }
    this.componentId = componentId;
    if (workflowId == null) {
      throw new NullPointerException("Null workflowId");
    }
    this.workflowId = workflowId;
    if (configuration == null) {
      throw new NullPointerException("Null configuration");
    }
    this.configuration = configuration;
  }

  @JsonProperty
  @Override
  public String componentId() {
    return componentId;
  }

  @JsonProperty
  @Override
  public String workflowId() {
    return workflowId;
  }

  @JsonProperty
  @Override
  public WorkflowConfiguration configuration() {
    return configuration;
  }

  @Override
  public String toString() {
    return "Workflow{"
        + "componentId=" + componentId + ", "
        + "workflowId=" + workflowId + ", "
        + "configuration=" + configuration
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Workflow) {
      Workflow that = (Workflow) o;
      return (this.componentId.equals(that.componentId()))
           && (this.workflowId.equals(that.workflowId()))
           && (this.configuration.equals(that.configuration()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.componentId.hashCode();
    h *= 1000003;
    h ^= this.workflowId.hashCode();
    h *= 1000003;
    h ^= this.configuration.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy