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

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

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

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

import java.net.URI;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.processing.Generated;
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.ExposedField;
import org.openmetadata.annotations.PasswordField;


/**
 * AirbyteConnection
 * 

* Airbyte Metadata Database Connection Config * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "type", "hostPort", "username", "password", "supportsMetadataExtraction" }) @Generated("jsonschema2pojo") public class AirbyteConnection { /** * Service type. * */ @JsonProperty("type") @JsonPropertyDescription("Service type.") private AirbyteConnection.AirbyteType type = AirbyteConnection.AirbyteType.fromValue("Airbyte"); /** * Pipeline Service Management/UI URL. * (Required) * */ @JsonProperty("hostPort") @JsonPropertyDescription("Pipeline Service Management/UI URL.") @ExposedField @NotNull private URI hostPort; /** * Username *

* Username to connect to Airbyte. * */ @JsonProperty("username") @JsonPropertyDescription("Username to connect to Airbyte.") private String username; /** * Password *

* Password to connect to Airbyte. * */ @JsonProperty("password") @JsonPropertyDescription("Password to connect to Airbyte.") @PasswordField private String password; /** * Supports Metadata Extraction. * */ @JsonProperty("supportsMetadataExtraction") @JsonPropertyDescription("Supports Metadata Extraction.") private Boolean supportsMetadataExtraction = true; /** * Service type. * */ @JsonProperty("type") public AirbyteConnection.AirbyteType getType() { return type; } /** * Service type. * */ @JsonProperty("type") public void setType(AirbyteConnection.AirbyteType type) { this.type = type; } public AirbyteConnection withType(AirbyteConnection.AirbyteType type) { this.type = type; return this; } /** * Pipeline Service Management/UI URL. * (Required) * */ @JsonProperty("hostPort") @ExposedField public URI getHostPort() { return hostPort; } /** * Pipeline Service Management/UI URL. * (Required) * */ @JsonProperty("hostPort") @ExposedField public void setHostPort(URI hostPort) { this.hostPort = hostPort; } public AirbyteConnection withHostPort(URI hostPort) { this.hostPort = hostPort; return this; } /** * Username *

* Username to connect to Airbyte. * */ @JsonProperty("username") public String getUsername() { return username; } /** * Username *

* Username to connect to Airbyte. * */ @JsonProperty("username") public void setUsername(String username) { this.username = username; } public AirbyteConnection withUsername(String username) { this.username = username; return this; } /** * Password *

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

* Password to connect to Airbyte. * */ @JsonProperty("password") @PasswordField public void setPassword(String password) { this.password = password; } public AirbyteConnection withPassword(String password) { this.password = password; 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 AirbyteConnection withSupportsMetadataExtraction(Boolean supportsMetadataExtraction) { this.supportsMetadataExtraction = supportsMetadataExtraction; return this; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(AirbyteConnection.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("hostPort"); sb.append('='); sb.append(((this.hostPort == null)?"":this.hostPort)); 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("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.hostPort == null)? 0 :this.hostPort.hashCode())); result = ((result* 31)+((this.password == null)? 0 :this.password.hashCode())); result = ((result* 31)+((this.type == null)? 0 :this.type.hashCode())); result = ((result* 31)+((this.username == null)? 0 :this.username.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof AirbyteConnection) == false) { return false; } AirbyteConnection rhs = ((AirbyteConnection) other); return ((((((this.supportsMetadataExtraction == rhs.supportsMetadataExtraction)||((this.supportsMetadataExtraction!= null)&&this.supportsMetadataExtraction.equals(rhs.supportsMetadataExtraction)))&&((this.hostPort == rhs.hostPort)||((this.hostPort!= null)&&this.hostPort.equals(rhs.hostPort))))&&((this.password == rhs.password)||((this.password!= null)&&this.password.equals(rhs.password))))&&((this.type == rhs.type)||((this.type!= null)&&this.type.equals(rhs.type))))&&((this.username == rhs.username)||((this.username!= null)&&this.username.equals(rhs.username)))); } /** * Service type. * */ @Generated("jsonschema2pojo") public enum AirbyteType { AIRBYTE("Airbyte"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (AirbyteConnection.AirbyteType c: values()) { CONSTANTS.put(c.value, c); } } AirbyteType(String value) { this.value = value; } @Override public String toString() { return this.value; } @JsonValue public String value() { return this.value; } @JsonCreator public static AirbyteConnection.AirbyteType fromValue(String value) { AirbyteConnection.AirbyteType constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy