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

org.openmetadata.schema.services.connections.dashboard.CustomDashboardConnection Maven / Gradle / Ivy

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

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

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;


/**
 * CustomDashboardConnection
 * 

* Custom Dashboard 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 CustomDashboardConnection { /** * Service Type *

* Custom dashboard service type * (Required) * */ @JsonProperty("type") @JsonPropertyDescription("Custom dashboard service type") @NotNull private CustomDashboardConnection.CustomDashboardType type = CustomDashboardConnection.CustomDashboardType.fromValue("CustomDashboard"); /** * 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 dashboard service type * (Required) * */ @JsonProperty("type") public CustomDashboardConnection.CustomDashboardType getType() { return type; } /** * Service Type *

* Custom dashboard service type * (Required) * */ @JsonProperty("type") public void setType(CustomDashboardConnection.CustomDashboardType type) { this.type = type; } public CustomDashboardConnection withType(CustomDashboardConnection.CustomDashboardType 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 CustomDashboardConnection 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 CustomDashboardConnection withConnectionOptions(ConnectionOptions connectionOptions) { this.connectionOptions = connectionOptions; return this; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(CustomDashboardConnection.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 CustomDashboardConnection) == false) { return false; } CustomDashboardConnection rhs = ((CustomDashboardConnection) 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 dashboard service type * */ @Generated("jsonschema2pojo") public enum CustomDashboardType { CUSTOM_DASHBOARD("CustomDashboard"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (CustomDashboardConnection.CustomDashboardType c: values()) { CONSTANTS.put(c.value, c); } } CustomDashboardType(String value) { this.value = value; } @Override public String toString() { return this.value; } @JsonValue public String value() { return this.value; } @JsonCreator public static CustomDashboardConnection.CustomDashboardType fromValue(String value) { CustomDashboardConnection.CustomDashboardType constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy