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

org.openmetadata.schema.services.connections.database.ExasolConnection Maven / Gradle / Ivy

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

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

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.annotations.PasswordField;


/**
 * ExasolConnection
 * 

* Exasol Database Connection Config * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "type", "scheme", "username", "password", "hostPort", "tls", "connectionOptions", "connectionArguments", "supportsMetadataExtraction" }) @Generated("jsonschema2pojo") public class ExasolConnection { /** * Service type. * */ @JsonProperty("type") @JsonPropertyDescription("Service type.") private ExasolConnection.ExasolType type = ExasolConnection.ExasolType.fromValue("Exasol"); /** * SQLAlchemy driver scheme options. * */ @JsonProperty("scheme") @JsonPropertyDescription("SQLAlchemy driver scheme options.") private ExasolConnection.ExasolScheme scheme = ExasolConnection.ExasolScheme.fromValue("exa+websocket"); /** * Username *

* Username to connect to Exasol. This user should have privileges to read all the metadata in Exasol. * (Required) * */ @JsonProperty("username") @JsonPropertyDescription("Username to connect to Exasol. This user should have privileges to read all the metadata in Exasol.") @NotNull private String username; /** * Password *

* Password to connect to Exasol. * (Required) * */ @JsonProperty("password") @JsonPropertyDescription("Password to connect to Exasol.") @PasswordField @NotNull private String password; /** * Host and Port *

* Host and port of the source service. * (Required) * */ @JsonProperty("hostPort") @JsonPropertyDescription("Host and port of the source service.") @NotNull private String hostPort = "127.0.0.1:8563"; /** * SSL/TLS Settings *

* Client SSL/TLS settings. * */ @JsonProperty("tls") @JsonPropertyDescription("Client SSL/TLS settings.") private ExasolConnection.Tls tls = ExasolConnection.Tls.fromValue("validate-certificate"); /** * 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; /** * Additional connection arguments such as security or protocol configs that can be sent to service during connection. * */ @JsonProperty("connectionArguments") @JsonPropertyDescription("Additional connection arguments such as security or protocol configs that can be sent to service during connection.") @Valid private ConnectionArguments connectionArguments; /** * Supports Metadata Extraction. * */ @JsonProperty("supportsMetadataExtraction") @JsonPropertyDescription("Supports Metadata Extraction.") private Boolean supportsMetadataExtraction = true; /** * Service type. * */ @JsonProperty("type") public ExasolConnection.ExasolType getType() { return type; } /** * Service type. * */ @JsonProperty("type") public void setType(ExasolConnection.ExasolType type) { this.type = type; } public ExasolConnection withType(ExasolConnection.ExasolType type) { this.type = type; return this; } /** * SQLAlchemy driver scheme options. * */ @JsonProperty("scheme") public ExasolConnection.ExasolScheme getScheme() { return scheme; } /** * SQLAlchemy driver scheme options. * */ @JsonProperty("scheme") public void setScheme(ExasolConnection.ExasolScheme scheme) { this.scheme = scheme; } public ExasolConnection withScheme(ExasolConnection.ExasolScheme scheme) { this.scheme = scheme; return this; } /** * Username *

* Username to connect to Exasol. This user should have privileges to read all the metadata in Exasol. * (Required) * */ @JsonProperty("username") public String getUsername() { return username; } /** * Username *

* Username to connect to Exasol. This user should have privileges to read all the metadata in Exasol. * (Required) * */ @JsonProperty("username") public void setUsername(String username) { this.username = username; } public ExasolConnection withUsername(String username) { this.username = username; return this; } /** * Password *

* Password to connect to Exasol. * (Required) * */ @JsonProperty("password") @PasswordField public String getPassword() { return password; } /** * Password *

* Password to connect to Exasol. * (Required) * */ @JsonProperty("password") @PasswordField public void setPassword(String password) { this.password = password; } public ExasolConnection withPassword(String password) { this.password = password; return this; } /** * Host and Port *

* Host and port of the source service. * (Required) * */ @JsonProperty("hostPort") public String getHostPort() { return hostPort; } /** * Host and Port *

* Host and port of the source service. * (Required) * */ @JsonProperty("hostPort") public void setHostPort(String hostPort) { this.hostPort = hostPort; } public ExasolConnection withHostPort(String hostPort) { this.hostPort = hostPort; return this; } /** * SSL/TLS Settings *

* Client SSL/TLS settings. * */ @JsonProperty("tls") public ExasolConnection.Tls getTls() { return tls; } /** * SSL/TLS Settings *

* Client SSL/TLS settings. * */ @JsonProperty("tls") public void setTls(ExasolConnection.Tls tls) { this.tls = tls; } public ExasolConnection withTls(ExasolConnection.Tls tls) { this.tls = tls; 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 ExasolConnection withConnectionOptions(ConnectionOptions connectionOptions) { this.connectionOptions = connectionOptions; return this; } /** * Additional connection arguments such as security or protocol configs that can be sent to service during connection. * */ @JsonProperty("connectionArguments") public ConnectionArguments getConnectionArguments() { return connectionArguments; } /** * Additional connection arguments such as security or protocol configs that can be sent to service during connection. * */ @JsonProperty("connectionArguments") public void setConnectionArguments(ConnectionArguments connectionArguments) { this.connectionArguments = connectionArguments; } public ExasolConnection withConnectionArguments(ConnectionArguments connectionArguments) { this.connectionArguments = connectionArguments; return this; } /** * Supports Metadata Extraction. * */ @JsonProperty("supportsMetadataExtraction") public Boolean getSupportsMetadataExtraction() { return supportsMetadataExtraction; } /** * Supports Metadata Extraction. * */ @JsonProperty("supportsMetadataExtraction") public void setSupportsMetadataExtraction(Boolean supportsMetadataExtraction) { this.supportsMetadataExtraction = supportsMetadataExtraction; } public ExasolConnection withSupportsMetadataExtraction(Boolean supportsMetadataExtraction) { this.supportsMetadataExtraction = supportsMetadataExtraction; return this; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(ExasolConnection.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("scheme"); sb.append('='); sb.append(((this.scheme == null)?"":this.scheme)); sb.append(','); sb.append("username"); sb.append('='); sb.append(((this.username == null)?"":this.username)); sb.append(','); sb.append("password"); sb.append('='); sb.append(((this.password == null)?"":this.password)); sb.append(','); sb.append("hostPort"); sb.append('='); sb.append(((this.hostPort == null)?"":this.hostPort)); sb.append(','); sb.append("tls"); sb.append('='); sb.append(((this.tls == null)?"":this.tls)); sb.append(','); sb.append("connectionOptions"); sb.append('='); sb.append(((this.connectionOptions == null)?"":this.connectionOptions)); sb.append(','); sb.append("connectionArguments"); sb.append('='); sb.append(((this.connectionArguments == null)?"":this.connectionArguments)); sb.append(','); sb.append("supportsMetadataExtraction"); sb.append('='); sb.append(((this.supportsMetadataExtraction == null)?"":this.supportsMetadataExtraction)); 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.supportsMetadataExtraction == null)? 0 :this.supportsMetadataExtraction.hashCode())); result = ((result* 31)+((this.password == null)? 0 :this.password.hashCode())); result = ((result* 31)+((this.scheme == null)? 0 :this.scheme.hashCode())); result = ((result* 31)+((this.connectionOptions == null)? 0 :this.connectionOptions.hashCode())); result = ((result* 31)+((this.hostPort == null)? 0 :this.hostPort.hashCode())); result = ((result* 31)+((this.tls == null)? 0 :this.tls.hashCode())); result = ((result* 31)+((this.type == null)? 0 :this.type.hashCode())); result = ((result* 31)+((this.username == null)? 0 :this.username.hashCode())); result = ((result* 31)+((this.connectionArguments == null)? 0 :this.connectionArguments.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof ExasolConnection) == false) { return false; } ExasolConnection rhs = ((ExasolConnection) other); return ((((((((((this.supportsMetadataExtraction == rhs.supportsMetadataExtraction)||((this.supportsMetadataExtraction!= null)&&this.supportsMetadataExtraction.equals(rhs.supportsMetadataExtraction)))&&((this.password == rhs.password)||((this.password!= null)&&this.password.equals(rhs.password))))&&((this.scheme == rhs.scheme)||((this.scheme!= null)&&this.scheme.equals(rhs.scheme))))&&((this.connectionOptions == rhs.connectionOptions)||((this.connectionOptions!= null)&&this.connectionOptions.equals(rhs.connectionOptions))))&&((this.hostPort == rhs.hostPort)||((this.hostPort!= null)&&this.hostPort.equals(rhs.hostPort))))&&((this.tls == rhs.tls)||((this.tls!= null)&&this.tls.equals(rhs.tls))))&&((this.type == rhs.type)||((this.type!= null)&&this.type.equals(rhs.type))))&&((this.username == rhs.username)||((this.username!= null)&&this.username.equals(rhs.username))))&&((this.connectionArguments == rhs.connectionArguments)||((this.connectionArguments!= null)&&this.connectionArguments.equals(rhs.connectionArguments)))); } /** * SQLAlchemy driver scheme options. * */ @Generated("jsonschema2pojo") public enum ExasolScheme { EXA_WEBSOCKET("exa+websocket"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (ExasolConnection.ExasolScheme c: values()) { CONSTANTS.put(c.value, c); } } ExasolScheme(String value) { this.value = value; } @Override public String toString() { return this.value; } @JsonValue public String value() { return this.value; } @JsonCreator public static ExasolConnection.ExasolScheme fromValue(String value) { ExasolConnection.ExasolScheme constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } /** * Service type. * */ @Generated("jsonschema2pojo") public enum ExasolType { EXASOL("Exasol"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (ExasolConnection.ExasolType c: values()) { CONSTANTS.put(c.value, c); } } ExasolType(String value) { this.value = value; } @Override public String toString() { return this.value; } @JsonValue public String value() { return this.value; } @JsonCreator public static ExasolConnection.ExasolType fromValue(String value) { ExasolConnection.ExasolType constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } /** * SSL/TLS Settings *

* Client SSL/TLS settings. * */ @Generated("jsonschema2pojo") public enum Tls { DISABLE_TLS("disable-tls"), IGNORE_CERTIFICATE("ignore-certificate"), VALIDATE_CERTIFICATE("validate-certificate"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (ExasolConnection.Tls c: values()) { CONSTANTS.put(c.value, c); } } Tls(String value) { this.value = value; } @Override public String toString() { return this.value; } @JsonValue public String value() { return this.value; } @JsonCreator public static ExasolConnection.Tls fromValue(String value) { ExasolConnection.Tls constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy