com.databricks.sdk.service.jobs.ForEachStats 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.Collection;
import java.util.Objects;
@Generated
public class ForEachStats {
/** Sample of 3 most common error messages occurred during the iteration. */
@JsonProperty("error_message_stats")
private Collection errorMessageStats;
/** Describes stats of the iteration. Only latest retries are considered. */
@JsonProperty("task_run_stats")
private ForEachTaskTaskRunStats taskRunStats;
public ForEachStats setErrorMessageStats(
Collection errorMessageStats) {
this.errorMessageStats = errorMessageStats;
return this;
}
public Collection getErrorMessageStats() {
return errorMessageStats;
}
public ForEachStats setTaskRunStats(ForEachTaskTaskRunStats taskRunStats) {
this.taskRunStats = taskRunStats;
return this;
}
public ForEachTaskTaskRunStats getTaskRunStats() {
return taskRunStats;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ForEachStats that = (ForEachStats) o;
return Objects.equals(errorMessageStats, that.errorMessageStats)
&& Objects.equals(taskRunStats, that.taskRunStats);
}
@Override
public int hashCode() {
return Objects.hash(errorMessageStats, taskRunStats);
}
@Override
public String toString() {
return new ToStringer(ForEachStats.class)
.add("errorMessageStats", errorMessageStats)
.add("taskRunStats", taskRunStats)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy