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

com.databricks.sdk.service.jobs.ForEachTask Maven / Gradle / Ivy

There is a newer version: 0.38.0
Show newest version
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.

package com.databricks.sdk.service.jobs;

import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;

@Generated
public class ForEachTask {
  /**
   * An optional maximum allowed number of concurrent runs of the task. Set this value if you want
   * to be able to execute multiple runs of the task concurrently.
   */
  @JsonProperty("concurrency")
  private Long concurrency;

  /**
   * Array for task to iterate on. This can be a JSON string or a reference to an array parameter.
   */
  @JsonProperty("inputs")
  private String inputs;

  /** Configuration for the task that will be run for each element in the array */
  @JsonProperty("task")
  private Task task;

  public ForEachTask setConcurrency(Long concurrency) {
    this.concurrency = concurrency;
    return this;
  }

  public Long getConcurrency() {
    return concurrency;
  }

  public ForEachTask setInputs(String inputs) {
    this.inputs = inputs;
    return this;
  }

  public String getInputs() {
    return inputs;
  }

  public ForEachTask setTask(Task task) {
    this.task = task;
    return this;
  }

  public Task getTask() {
    return task;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    ForEachTask that = (ForEachTask) o;
    return Objects.equals(concurrency, that.concurrency)
        && Objects.equals(inputs, that.inputs)
        && Objects.equals(task, that.task);
  }

  @Override
  public int hashCode() {
    return Objects.hash(concurrency, inputs, task);
  }

  @Override
  public String toString() {
    return new ToStringer(ForEachTask.class)
        .add("concurrency", concurrency)
        .add("inputs", inputs)
        .add("task", task)
        .toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy