org.openmetadata.schema.services.connections.pipeline.MatillionConnection Maven / Gradle / Ivy
package org.openmetadata.schema.services.connections.pipeline;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.processing.Generated;
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;
/**
* MatillionConnection
*
* Matillion Connection
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"type",
"connection",
"supportsMetadataExtraction"
})
@Generated("jsonschema2pojo")
public class MatillionConnection {
/**
* Service type.
*
*/
@JsonProperty("type")
@JsonPropertyDescription("Service type.")
private MatillionConnection.MatillionType type = MatillionConnection.MatillionType.fromValue("Matillion");
/**
* Matillion Connection
*
* Matillion Auth Configuration
*
*/
@JsonProperty("connection")
@JsonPropertyDescription("Matillion Auth Configuration")
private Object connection;
/**
* Supports Metadata Extraction.
*
*/
@JsonProperty("supportsMetadataExtraction")
@JsonPropertyDescription("Supports Metadata Extraction.")
private Boolean supportsMetadataExtraction = true;
/**
* Service type.
*
*/
@JsonProperty("type")
public MatillionConnection.MatillionType getType() {
return type;
}
/**
* Service type.
*
*/
@JsonProperty("type")
public void setType(MatillionConnection.MatillionType type) {
this.type = type;
}
public MatillionConnection withType(MatillionConnection.MatillionType type) {
this.type = type;
return this;
}
/**
* Matillion Connection
*
* Matillion Auth Configuration
*
*/
@JsonProperty("connection")
public Object getConnection() {
return connection;
}
/**
* Matillion Connection
*
* Matillion Auth Configuration
*
*/
@JsonProperty("connection")
public void setConnection(Object connection) {
this.connection = connection;
}
public MatillionConnection withConnection(Object connection) {
this.connection = connection;
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 MatillionConnection withSupportsMetadataExtraction(Boolean supportsMetadataExtraction) {
this.supportsMetadataExtraction = supportsMetadataExtraction;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(MatillionConnection.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("connection");
sb.append('=');
sb.append(((this.connection == null)?"":this.connection));
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.connection == null)? 0 :this.connection.hashCode()));
result = ((result* 31)+((this.type == null)? 0 :this.type.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof MatillionConnection) == false) {
return false;
}
MatillionConnection rhs = ((MatillionConnection) other);
return ((((this.supportsMetadataExtraction == rhs.supportsMetadataExtraction)||((this.supportsMetadataExtraction!= null)&&this.supportsMetadataExtraction.equals(rhs.supportsMetadataExtraction)))&&((this.connection == rhs.connection)||((this.connection!= null)&&this.connection.equals(rhs.connection))))&&((this.type == rhs.type)||((this.type!= null)&&this.type.equals(rhs.type))));
}
/**
* Service type.
*
*/
@Generated("jsonschema2pojo")
public enum MatillionType {
MATILLION("Matillion");
private final String value;
private final static Map CONSTANTS = new HashMap();
static {
for (MatillionConnection.MatillionType c: values()) {
CONSTANTS.put(c.value, c);
}
}
MatillionType(String value) {
this.value = value;
}
@Override
public String toString() {
return this.value;
}
@JsonValue
public String value() {
return this.value;
}
@JsonCreator
public static MatillionConnection.MatillionType fromValue(String value) {
MatillionConnection.MatillionType constant = CONSTANTS.get(value);
if (constant == null) {
throw new IllegalArgumentException(value);
} else {
return constant;
}
}
}
}