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

org.openmetadata.schema.services.connections.pipeline.CustomPipelineConnection Maven / Gradle / Ivy

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

package org.openmetadata.schema.services.connections.pipeline;

import java.util.HashMap;
import java.util.Map;
import javax.annotation.processing.Generated;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonCreator;
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 com.fasterxml.jackson.annotation.JsonValue;
import org.openmetadata.schema.services.connections.database.ConnectionOptions;


/**
 * CustomPipelineConnection
 * 

* Custom Pipeline Service connection to build a source that is not supported by OpenMetadata yet. * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "type", "sourcePythonClass", "connectionOptions" }) @Generated("jsonschema2pojo") public class CustomPipelineConnection { /** * Service Type *

* Custom pipeline service type * (Required) * */ @JsonProperty("type") @JsonPropertyDescription("Custom pipeline service type") @NotNull private CustomPipelineConnection.CustomPipelineType type = CustomPipelineConnection.CustomPipelineType.fromValue("CustomPipeline"); /** * Source Python Class Name *

* Source Python Class Name to instantiated by the ingestion workflow * */ @JsonProperty("sourcePythonClass") @JsonPropertyDescription("Source Python Class Name to instantiated by the ingestion workflow") private String sourcePythonClass; /** * Additional connection options to build the URL that can be sent to service during the connection. * */ @JsonProperty("connectionOptions") @JsonPropertyDescription("Additional connection options to build the URL that can be sent to service during the connection.") @Valid private ConnectionOptions connectionOptions; /** * Service Type *

* Custom pipeline service type * (Required) * */ @JsonProperty("type") public CustomPipelineConnection.CustomPipelineType getType() { return type; } /** * Service Type *

* Custom pipeline service type * (Required) * */ @JsonProperty("type") public void setType(CustomPipelineConnection.CustomPipelineType type) { this.type = type; } public CustomPipelineConnection withType(CustomPipelineConnection.CustomPipelineType type) { this.type = type; return this; } /** * Source Python Class Name *

* Source Python Class Name to instantiated by the ingestion workflow * */ @JsonProperty("sourcePythonClass") public String getSourcePythonClass() { return sourcePythonClass; } /** * Source Python Class Name *

* Source Python Class Name to instantiated by the ingestion workflow * */ @JsonProperty("sourcePythonClass") public void setSourcePythonClass(String sourcePythonClass) { this.sourcePythonClass = sourcePythonClass; } public CustomPipelineConnection withSourcePythonClass(String sourcePythonClass) { this.sourcePythonClass = sourcePythonClass; return this; } /** * Additional connection options to build the URL that can be sent to service during the connection. * */ @JsonProperty("connectionOptions") public ConnectionOptions getConnectionOptions() { return connectionOptions; } /** * Additional connection options to build the URL that can be sent to service during the connection. * */ @JsonProperty("connectionOptions") public void setConnectionOptions(ConnectionOptions connectionOptions) { this.connectionOptions = connectionOptions; } public CustomPipelineConnection withConnectionOptions(ConnectionOptions connectionOptions) { this.connectionOptions = connectionOptions; return this; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(CustomPipelineConnection.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("type"); sb.append('='); sb.append(((this.type == null)?"":this.type)); sb.append(','); sb.append("sourcePythonClass"); sb.append('='); sb.append(((this.sourcePythonClass == null)?"":this.sourcePythonClass)); sb.append(','); sb.append("connectionOptions"); sb.append('='); sb.append(((this.connectionOptions == null)?"":this.connectionOptions)); 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.sourcePythonClass == null)? 0 :this.sourcePythonClass.hashCode())); result = ((result* 31)+((this.type == null)? 0 :this.type.hashCode())); result = ((result* 31)+((this.connectionOptions == null)? 0 :this.connectionOptions.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof CustomPipelineConnection) == false) { return false; } CustomPipelineConnection rhs = ((CustomPipelineConnection) other); return ((((this.sourcePythonClass == rhs.sourcePythonClass)||((this.sourcePythonClass!= null)&&this.sourcePythonClass.equals(rhs.sourcePythonClass)))&&((this.type == rhs.type)||((this.type!= null)&&this.type.equals(rhs.type))))&&((this.connectionOptions == rhs.connectionOptions)||((this.connectionOptions!= null)&&this.connectionOptions.equals(rhs.connectionOptions)))); } /** * Service Type *

* Custom pipeline service type * */ @Generated("jsonschema2pojo") public enum CustomPipelineType { CUSTOM_PIPELINE("CustomPipeline"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (CustomPipelineConnection.CustomPipelineType c: values()) { CONSTANTS.put(c.value, c); } } CustomPipelineType(String value) { this.value = value; } @Override public String toString() { return this.value; } @JsonValue public String value() { return this.value; } @JsonCreator public static CustomPipelineConnection.CustomPipelineType fromValue(String value) { CustomPipelineConnection.CustomPipelineType constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy