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

org.openmetadata.schema.api.services.ingestionPipelines.CreateIngestionPipeline Maven / Gradle / Ivy

There is a newer version: 1.6.0-rc1
Show newest version

package org.openmetadata.schema.api.services.ingestionPipelines;

import java.util.List;
import javax.annotation.processing.Generated;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.openmetadata.schema.CreateEntity;
import org.openmetadata.schema.entity.services.ingestionPipelines.AirflowConfig;
import org.openmetadata.schema.entity.services.ingestionPipelines.PipelineType;
import org.openmetadata.schema.metadataIngestion.LogLevels;
import org.openmetadata.schema.metadataIngestion.SourceConfig;
import org.openmetadata.schema.type.EntityReference;


/**
 * CreateIngestionPipelineRequest
 * 

* Ingestion Pipeline Config is used to set up an Airflow DAG. * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "name", "displayName", "description", "pipelineType", "sourceConfig", "airflowConfig", "loggerLevel", "service", "owners", "domain" }) @Generated("jsonschema2pojo") public class CreateIngestionPipeline implements CreateEntity { /** * Name that identifies an entity. * (Required) * */ @JsonProperty("name") @JsonPropertyDescription("Name that identifies an entity.") @Pattern(regexp = "^((?!::).)*$") @Size(min = 1, max = 256) @NotNull private String name; /** * Display Name that identifies this ingestion pipeline. * */ @JsonProperty("displayName") @JsonPropertyDescription("Display Name that identifies this ingestion pipeline.") private String displayName; /** * Text in Markdown format.@om-field-type * */ @JsonProperty("description") @JsonPropertyDescription("Text in Markdown format.") private String description; /** * Type of Pipeline - metadata, usage * (Required) * */ @JsonProperty("pipelineType") @JsonPropertyDescription("Type of Pipeline - metadata, usage") @NotNull private PipelineType pipelineType; /** * Additional connection configuration. * (Required) * */ @JsonProperty("sourceConfig") @JsonPropertyDescription("Additional connection configuration.") @Valid @NotNull private SourceConfig sourceConfig; /** * Properties to configure the Airflow pipeline that will run the workflow. * (Required) * */ @JsonProperty("airflowConfig") @JsonPropertyDescription("Properties to configure the Airflow pipeline that will run the workflow.") @Valid @NotNull private AirflowConfig airflowConfig; /** * Supported logging levels * */ @JsonProperty("loggerLevel") @JsonPropertyDescription("Supported logging levels") private LogLevels loggerLevel = LogLevels.fromValue("INFO"); /** * Entity Reference *

* This schema defines the EntityReference type used for referencing an entity. EntityReference is used for capturing relationships from one entity to another. For example, a table has an attribute called database of type EntityReference that captures the relationship of a table `belongs to a` database. * (Required) * */ @JsonProperty("service") @JsonPropertyDescription("This schema defines the EntityReference type used for referencing an entity. EntityReference is used for capturing relationships from one entity to another. For example, a table has an attribute called database of type EntityReference that captures the relationship of a table `belongs to a` database.") @Valid @NotNull private EntityReference service; /** * Entity Reference List *

* This schema defines the EntityReferenceList type used for referencing an entity. EntityReference is used for capturing relationships from one entity to another. For example, a table has an attribute called database of type EntityReference that captures the relationship of a table `belongs to a` database. * */ @JsonProperty("owners") @JsonPropertyDescription("This schema defines the EntityReferenceList type used for referencing an entity. EntityReference is used for capturing relationships from one entity to another. For example, a table has an attribute called database of type EntityReference that captures the relationship of a table `belongs to a` database.") @Valid private List owners = null; /** * Fully qualified name of the domain the Table belongs to. * */ @JsonProperty("domain") @JsonPropertyDescription("Fully qualified name of the domain the Table belongs to.") private String domain; /** * Name that identifies an entity. * (Required) * */ @JsonProperty("name") public String getName() { return name; } /** * Name that identifies an entity. * (Required) * */ @JsonProperty("name") public void setName(String name) { this.name = name; } public CreateIngestionPipeline withName(String name) { this.name = name; return this; } /** * Display Name that identifies this ingestion pipeline. * */ @JsonProperty("displayName") public String getDisplayName() { return displayName; } /** * Display Name that identifies this ingestion pipeline. * */ @JsonProperty("displayName") public void setDisplayName(String displayName) { this.displayName = displayName; } public CreateIngestionPipeline withDisplayName(String displayName) { this.displayName = displayName; return this; } /** * Text in Markdown format.@om-field-type * */ @JsonProperty("description") public String getDescription() { return description; } /** * Text in Markdown format.@om-field-type * */ @JsonProperty("description") public void setDescription(String description) { this.description = description; } public CreateIngestionPipeline withDescription(String description) { this.description = description; return this; } /** * Type of Pipeline - metadata, usage * (Required) * */ @JsonProperty("pipelineType") public PipelineType getPipelineType() { return pipelineType; } /** * Type of Pipeline - metadata, usage * (Required) * */ @JsonProperty("pipelineType") public void setPipelineType(PipelineType pipelineType) { this.pipelineType = pipelineType; } public CreateIngestionPipeline withPipelineType(PipelineType pipelineType) { this.pipelineType = pipelineType; return this; } /** * Additional connection configuration. * (Required) * */ @JsonProperty("sourceConfig") public SourceConfig getSourceConfig() { return sourceConfig; } /** * Additional connection configuration. * (Required) * */ @JsonProperty("sourceConfig") public void setSourceConfig(SourceConfig sourceConfig) { this.sourceConfig = sourceConfig; } public CreateIngestionPipeline withSourceConfig(SourceConfig sourceConfig) { this.sourceConfig = sourceConfig; return this; } /** * Properties to configure the Airflow pipeline that will run the workflow. * (Required) * */ @JsonProperty("airflowConfig") public AirflowConfig getAirflowConfig() { return airflowConfig; } /** * Properties to configure the Airflow pipeline that will run the workflow. * (Required) * */ @JsonProperty("airflowConfig") public void setAirflowConfig(AirflowConfig airflowConfig) { this.airflowConfig = airflowConfig; } public CreateIngestionPipeline withAirflowConfig(AirflowConfig airflowConfig) { this.airflowConfig = airflowConfig; return this; } /** * Supported logging levels * */ @JsonProperty("loggerLevel") public LogLevels getLoggerLevel() { return loggerLevel; } /** * Supported logging levels * */ @JsonProperty("loggerLevel") public void setLoggerLevel(LogLevels loggerLevel) { this.loggerLevel = loggerLevel; } public CreateIngestionPipeline withLoggerLevel(LogLevels loggerLevel) { this.loggerLevel = loggerLevel; return this; } /** * Entity Reference *

* This schema defines the EntityReference type used for referencing an entity. EntityReference is used for capturing relationships from one entity to another. For example, a table has an attribute called database of type EntityReference that captures the relationship of a table `belongs to a` database. * (Required) * */ @JsonProperty("service") public EntityReference getService() { return service; } /** * Entity Reference *

* This schema defines the EntityReference type used for referencing an entity. EntityReference is used for capturing relationships from one entity to another. For example, a table has an attribute called database of type EntityReference that captures the relationship of a table `belongs to a` database. * (Required) * */ @JsonProperty("service") public void setService(EntityReference service) { this.service = service; } public CreateIngestionPipeline withService(EntityReference service) { this.service = service; return this; } /** * Entity Reference List *

* This schema defines the EntityReferenceList type used for referencing an entity. EntityReference is used for capturing relationships from one entity to another. For example, a table has an attribute called database of type EntityReference that captures the relationship of a table `belongs to a` database. * */ @JsonProperty("owners") public List getOwners() { return owners; } /** * Entity Reference List *

* This schema defines the EntityReferenceList type used for referencing an entity. EntityReference is used for capturing relationships from one entity to another. For example, a table has an attribute called database of type EntityReference that captures the relationship of a table `belongs to a` database. * */ @JsonProperty("owners") public void setOwners(List owners) { this.owners = owners; } public CreateIngestionPipeline withOwners(List owners) { this.owners = owners; return this; } /** * Fully qualified name of the domain the Table belongs to. * */ @JsonProperty("domain") public String getDomain() { return domain; } /** * Fully qualified name of the domain the Table belongs to. * */ @JsonProperty("domain") public void setDomain(String domain) { this.domain = domain; } public CreateIngestionPipeline withDomain(String domain) { this.domain = domain; return this; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(CreateIngestionPipeline.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("name"); sb.append('='); sb.append(((this.name == null)?"":this.name)); sb.append(','); sb.append("displayName"); sb.append('='); sb.append(((this.displayName == null)?"":this.displayName)); sb.append(','); sb.append("description"); sb.append('='); sb.append(((this.description == null)?"":this.description)); sb.append(','); sb.append("pipelineType"); sb.append('='); sb.append(((this.pipelineType == null)?"":this.pipelineType)); sb.append(','); sb.append("sourceConfig"); sb.append('='); sb.append(((this.sourceConfig == null)?"":this.sourceConfig)); sb.append(','); sb.append("airflowConfig"); sb.append('='); sb.append(((this.airflowConfig == null)?"":this.airflowConfig)); sb.append(','); sb.append("loggerLevel"); sb.append('='); sb.append(((this.loggerLevel == null)?"":this.loggerLevel)); sb.append(','); sb.append("service"); sb.append('='); sb.append(((this.service == null)?"":this.service)); sb.append(','); sb.append("owners"); sb.append('='); sb.append(((this.owners == null)?"":this.owners)); sb.append(','); sb.append("domain"); sb.append('='); sb.append(((this.domain == null)?"":this.domain)); sb.append(','); if (sb.charAt((sb.length()- 1)) == ',') { sb.setCharAt((sb.length()- 1), ']'); } else { sb.append(']'); } return sb.toString(); } @Override public int hashCode() { int result = 1; result = ((result* 31)+((this.sourceConfig == null)? 0 :this.sourceConfig.hashCode())); result = ((result* 31)+((this.airflowConfig == null)? 0 :this.airflowConfig.hashCode())); result = ((result* 31)+((this.loggerLevel == null)? 0 :this.loggerLevel.hashCode())); result = ((result* 31)+((this.displayName == null)? 0 :this.displayName.hashCode())); result = ((result* 31)+((this.service == null)? 0 :this.service.hashCode())); result = ((result* 31)+((this.domain == null)? 0 :this.domain.hashCode())); result = ((result* 31)+((this.name == null)? 0 :this.name.hashCode())); result = ((result* 31)+((this.description == null)? 0 :this.description.hashCode())); result = ((result* 31)+((this.owners == null)? 0 :this.owners.hashCode())); result = ((result* 31)+((this.pipelineType == null)? 0 :this.pipelineType.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof CreateIngestionPipeline) == false) { return false; } CreateIngestionPipeline rhs = ((CreateIngestionPipeline) other); return (((((((((((this.sourceConfig == rhs.sourceConfig)||((this.sourceConfig!= null)&&this.sourceConfig.equals(rhs.sourceConfig)))&&((this.airflowConfig == rhs.airflowConfig)||((this.airflowConfig!= null)&&this.airflowConfig.equals(rhs.airflowConfig))))&&((this.loggerLevel == rhs.loggerLevel)||((this.loggerLevel!= null)&&this.loggerLevel.equals(rhs.loggerLevel))))&&((this.displayName == rhs.displayName)||((this.displayName!= null)&&this.displayName.equals(rhs.displayName))))&&((this.service == rhs.service)||((this.service!= null)&&this.service.equals(rhs.service))))&&((this.domain == rhs.domain)||((this.domain!= null)&&this.domain.equals(rhs.domain))))&&((this.name == rhs.name)||((this.name!= null)&&this.name.equals(rhs.name))))&&((this.description == rhs.description)||((this.description!= null)&&this.description.equals(rhs.description))))&&((this.owners == rhs.owners)||((this.owners!= null)&&this.owners.equals(rhs.owners))))&&((this.pipelineType == rhs.pipelineType)||((this.pipelineType!= null)&&this.pipelineType.equals(rhs.pipelineType)))); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy