com.databricks.sdk.service.pipelines.PipelineSpec 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.JsonProperty;
import java.util.Collection;
import java.util.Map;
import java.util.Objects;
@Generated
public class PipelineSpec {
/**
* A catalog in Unity Catalog to publish data from this pipeline to. If `target` is specified,
* tables in this pipeline are published to a `target` schema inside `catalog` (for example,
* `catalog`.`target`.`table`). If `target` is not specified, no data is published to Unity
* Catalog.
*/
@JsonProperty("catalog")
private String catalog;
/** DLT Release Channel that specifies which version to use. */
@JsonProperty("channel")
private String channel;
/** Cluster settings for this pipeline deployment. */
@JsonProperty("clusters")
private Collection clusters;
/** String-String configuration for this pipeline execution. */
@JsonProperty("configuration")
private Map configuration;
/** Whether the pipeline is continuous or triggered. This replaces `trigger`. */
@JsonProperty("continuous")
private Boolean continuous;
/** Deployment type of this pipeline. */
@JsonProperty("deployment")
private PipelineDeployment deployment;
/** Whether the pipeline is in Development mode. Defaults to false. */
@JsonProperty("development")
private Boolean development;
/** Pipeline product edition. */
@JsonProperty("edition")
private String edition;
/** Filters on which Pipeline packages to include in the deployed graph. */
@JsonProperty("filters")
private Filters filters;
/** The definition of a gateway pipeline to support CDC. */
@JsonProperty("gateway_definition")
private IngestionGatewayPipelineDefinition gatewayDefinition;
/** Unique identifier for this pipeline. */
@JsonProperty("id")
private String id;
/**
* The configuration for a managed ingestion pipeline. These settings cannot be used with the
* 'libraries', 'target' or 'catalog' settings.
*/
@JsonProperty("ingestion_definition")
private ManagedIngestionPipelineDefinition ingestionDefinition;
/** Libraries or code needed by this deployment. */
@JsonProperty("libraries")
private Collection libraries;
/** Friendly identifier for this pipeline. */
@JsonProperty("name")
private String name;
/** List of notification settings for this pipeline. */
@JsonProperty("notifications")
private Collection notifications;
/** Whether Photon is enabled for this pipeline. */
@JsonProperty("photon")
private Boolean photon;
/** Whether serverless compute is enabled for this pipeline. */
@JsonProperty("serverless")
private Boolean serverless;
/** DBFS root directory for storing checkpoints and tables. */
@JsonProperty("storage")
private String storage;
/**
* Target schema (database) to add tables in this pipeline to. If not specified, no data is
* published to the Hive metastore or Unity Catalog. To publish to Unity Catalog, also specify
* `catalog`.
*/
@JsonProperty("target")
private String target;
/** Which pipeline trigger to use. Deprecated: Use `continuous` instead. */
@JsonProperty("trigger")
private PipelineTrigger trigger;
public PipelineSpec setCatalog(String catalog) {
this.catalog = catalog;
return this;
}
public String getCatalog() {
return catalog;
}
public PipelineSpec setChannel(String channel) {
this.channel = channel;
return this;
}
public String getChannel() {
return channel;
}
public PipelineSpec setClusters(Collection clusters) {
this.clusters = clusters;
return this;
}
public Collection getClusters() {
return clusters;
}
public PipelineSpec setConfiguration(Map configuration) {
this.configuration = configuration;
return this;
}
public Map getConfiguration() {
return configuration;
}
public PipelineSpec setContinuous(Boolean continuous) {
this.continuous = continuous;
return this;
}
public Boolean getContinuous() {
return continuous;
}
public PipelineSpec setDeployment(PipelineDeployment deployment) {
this.deployment = deployment;
return this;
}
public PipelineDeployment getDeployment() {
return deployment;
}
public PipelineSpec setDevelopment(Boolean development) {
this.development = development;
return this;
}
public Boolean getDevelopment() {
return development;
}
public PipelineSpec setEdition(String edition) {
this.edition = edition;
return this;
}
public String getEdition() {
return edition;
}
public PipelineSpec setFilters(Filters filters) {
this.filters = filters;
return this;
}
public Filters getFilters() {
return filters;
}
public PipelineSpec setGatewayDefinition(IngestionGatewayPipelineDefinition gatewayDefinition) {
this.gatewayDefinition = gatewayDefinition;
return this;
}
public IngestionGatewayPipelineDefinition getGatewayDefinition() {
return gatewayDefinition;
}
public PipelineSpec setId(String id) {
this.id = id;
return this;
}
public String getId() {
return id;
}
public PipelineSpec setIngestionDefinition(
ManagedIngestionPipelineDefinition ingestionDefinition) {
this.ingestionDefinition = ingestionDefinition;
return this;
}
public ManagedIngestionPipelineDefinition getIngestionDefinition() {
return ingestionDefinition;
}
public PipelineSpec setLibraries(Collection libraries) {
this.libraries = libraries;
return this;
}
public Collection getLibraries() {
return libraries;
}
public PipelineSpec setName(String name) {
this.name = name;
return this;
}
public String getName() {
return name;
}
public PipelineSpec setNotifications(Collection notifications) {
this.notifications = notifications;
return this;
}
public Collection getNotifications() {
return notifications;
}
public PipelineSpec setPhoton(Boolean photon) {
this.photon = photon;
return this;
}
public Boolean getPhoton() {
return photon;
}
public PipelineSpec setServerless(Boolean serverless) {
this.serverless = serverless;
return this;
}
public Boolean getServerless() {
return serverless;
}
public PipelineSpec setStorage(String storage) {
this.storage = storage;
return this;
}
public String getStorage() {
return storage;
}
public PipelineSpec setTarget(String target) {
this.target = target;
return this;
}
public String getTarget() {
return target;
}
public PipelineSpec setTrigger(PipelineTrigger trigger) {
this.trigger = trigger;
return this;
}
public PipelineTrigger getTrigger() {
return trigger;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PipelineSpec that = (PipelineSpec) o;
return Objects.equals(catalog, that.catalog)
&& Objects.equals(channel, that.channel)
&& Objects.equals(clusters, that.clusters)
&& Objects.equals(configuration, that.configuration)
&& Objects.equals(continuous, that.continuous)
&& Objects.equals(deployment, that.deployment)
&& Objects.equals(development, that.development)
&& Objects.equals(edition, that.edition)
&& Objects.equals(filters, that.filters)
&& Objects.equals(gatewayDefinition, that.gatewayDefinition)
&& Objects.equals(id, that.id)
&& Objects.equals(ingestionDefinition, that.ingestionDefinition)
&& Objects.equals(libraries, that.libraries)
&& Objects.equals(name, that.name)
&& Objects.equals(notifications, that.notifications)
&& Objects.equals(photon, that.photon)
&& Objects.equals(serverless, that.serverless)
&& Objects.equals(storage, that.storage)
&& Objects.equals(target, that.target)
&& Objects.equals(trigger, that.trigger);
}
@Override
public int hashCode() {
return Objects.hash(
catalog,
channel,
clusters,
configuration,
continuous,
deployment,
development,
edition,
filters,
gatewayDefinition,
id,
ingestionDefinition,
libraries,
name,
notifications,
photon,
serverless,
storage,
target,
trigger);
}
@Override
public String toString() {
return new ToStringer(PipelineSpec.class)
.add("catalog", catalog)
.add("channel", channel)
.add("clusters", clusters)
.add("configuration", configuration)
.add("continuous", continuous)
.add("deployment", deployment)
.add("development", development)
.add("edition", edition)
.add("filters", filters)
.add("gatewayDefinition", gatewayDefinition)
.add("id", id)
.add("ingestionDefinition", ingestionDefinition)
.add("libraries", libraries)
.add("name", name)
.add("notifications", notifications)
.add("photon", photon)
.add("serverless", serverless)
.add("storage", storage)
.add("target", target)
.add("trigger", trigger)
.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy