com.databricks.sdk.service.jobs.RunForEachTask Maven / Gradle / Ivy
// 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 RunForEachTask {
/**
* 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;
/**
* Read only field. Populated for GetRun and ListRuns RPC calls and stores the execution stats of
* an For each task
*/
@JsonProperty("stats")
private ForEachStats stats;
/** Configuration for the task that will be run for each element in the array */
@JsonProperty("task")
private Task task;
public RunForEachTask setConcurrency(Long concurrency) {
this.concurrency = concurrency;
return this;
}
public Long getConcurrency() {
return concurrency;
}
public RunForEachTask setInputs(String inputs) {
this.inputs = inputs;
return this;
}
public String getInputs() {
return inputs;
}
public RunForEachTask setStats(ForEachStats stats) {
this.stats = stats;
return this;
}
public ForEachStats getStats() {
return stats;
}
public RunForEachTask 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;
RunForEachTask that = (RunForEachTask) o;
return Objects.equals(concurrency, that.concurrency)
&& Objects.equals(inputs, that.inputs)
&& Objects.equals(stats, that.stats)
&& Objects.equals(task, that.task);
}
@Override
public int hashCode() {
return Objects.hash(concurrency, inputs, stats, task);
}
@Override
public String toString() {
return new ToStringer(RunForEachTask.class)
.add("concurrency", concurrency)
.add("inputs", inputs)
.add("stats", stats)
.add("task", task)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy