com.databricks.sdk.service.catalog.CreateConnection Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.catalog;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
import java.util.Objects;
@Generated
public class CreateConnection {
/** User-provided free-form text description. */
@JsonProperty("comment")
private String comment;
/** The type of connection. */
@JsonProperty("connection_type")
private ConnectionType connectionType;
/** Name of the connection. */
@JsonProperty("name")
private String name;
/** A map of key-value properties attached to the securable. */
@JsonProperty("options")
private Map options;
/** An object containing map of key-value properties attached to the connection. */
@JsonProperty("properties")
private Map properties;
/** If the connection is read only. */
@JsonProperty("read_only")
private Boolean readOnly;
public CreateConnection setComment(String comment) {
this.comment = comment;
return this;
}
public String getComment() {
return comment;
}
public CreateConnection setConnectionType(ConnectionType connectionType) {
this.connectionType = connectionType;
return this;
}
public ConnectionType getConnectionType() {
return connectionType;
}
public CreateConnection setName(String name) {
this.name = name;
return this;
}
public String getName() {
return name;
}
public CreateConnection setOptions(Map options) {
this.options = options;
return this;
}
public Map getOptions() {
return options;
}
public CreateConnection setProperties(Map properties) {
this.properties = properties;
return this;
}
public Map getProperties() {
return properties;
}
public CreateConnection setReadOnly(Boolean readOnly) {
this.readOnly = readOnly;
return this;
}
public Boolean getReadOnly() {
return readOnly;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CreateConnection that = (CreateConnection) o;
return Objects.equals(comment, that.comment)
&& Objects.equals(connectionType, that.connectionType)
&& Objects.equals(name, that.name)
&& Objects.equals(options, that.options)
&& Objects.equals(properties, that.properties)
&& Objects.equals(readOnly, that.readOnly);
}
@Override
public int hashCode() {
return Objects.hash(comment, connectionType, name, options, properties, readOnly);
}
@Override
public String toString() {
return new ToStringer(CreateConnection.class)
.add("comment", comment)
.add("connectionType", connectionType)
.add("name", name)
.add("options", options)
.add("properties", properties)
.add("readOnly", readOnly)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy