com.databricks.sdk.service.pipelines.StartUpdate Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.pipelines;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collection;
import java.util.Objects;
@Generated
public class StartUpdate {
/** */
@JsonProperty("cause")
private StartUpdateCause cause;
/** If true, this update will reset all tables before running. */
@JsonProperty("full_refresh")
private Boolean fullRefresh;
/**
* A list of tables to update with fullRefresh. If both refresh_selection and
* full_refresh_selection are empty, this is a full graph update. Full Refresh on a table means
* that the states of the table will be reset before the refresh.
*/
@JsonProperty("full_refresh_selection")
private Collection fullRefreshSelection;
/** */
@JsonIgnore private String pipelineId;
/**
* A list of tables to update without fullRefresh. If both refresh_selection and
* full_refresh_selection are empty, this is a full graph update. Full Refresh on a table means
* that the states of the table will be reset before the refresh.
*/
@JsonProperty("refresh_selection")
private Collection refreshSelection;
/**
* If true, this update only validates the correctness of pipeline source code but does not
* materialize or publish any datasets.
*/
@JsonProperty("validate_only")
private Boolean validateOnly;
public StartUpdate setCause(StartUpdateCause cause) {
this.cause = cause;
return this;
}
public StartUpdateCause getCause() {
return cause;
}
public StartUpdate setFullRefresh(Boolean fullRefresh) {
this.fullRefresh = fullRefresh;
return this;
}
public Boolean getFullRefresh() {
return fullRefresh;
}
public StartUpdate setFullRefreshSelection(Collection fullRefreshSelection) {
this.fullRefreshSelection = fullRefreshSelection;
return this;
}
public Collection getFullRefreshSelection() {
return fullRefreshSelection;
}
public StartUpdate setPipelineId(String pipelineId) {
this.pipelineId = pipelineId;
return this;
}
public String getPipelineId() {
return pipelineId;
}
public StartUpdate setRefreshSelection(Collection refreshSelection) {
this.refreshSelection = refreshSelection;
return this;
}
public Collection getRefreshSelection() {
return refreshSelection;
}
public StartUpdate setValidateOnly(Boolean validateOnly) {
this.validateOnly = validateOnly;
return this;
}
public Boolean getValidateOnly() {
return validateOnly;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
StartUpdate that = (StartUpdate) o;
return Objects.equals(cause, that.cause)
&& Objects.equals(fullRefresh, that.fullRefresh)
&& Objects.equals(fullRefreshSelection, that.fullRefreshSelection)
&& Objects.equals(pipelineId, that.pipelineId)
&& Objects.equals(refreshSelection, that.refreshSelection)
&& Objects.equals(validateOnly, that.validateOnly);
}
@Override
public int hashCode() {
return Objects.hash(
cause, fullRefresh, fullRefreshSelection, pipelineId, refreshSelection, validateOnly);
}
@Override
public String toString() {
return new ToStringer(StartUpdate.class)
.add("cause", cause)
.add("fullRefresh", fullRefresh)
.add("fullRefreshSelection", fullRefreshSelection)
.add("pipelineId", pipelineId)
.add("refreshSelection", refreshSelection)
.add("validateOnly", validateOnly)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy