com.databricks.sdk.service.catalog.CreateCatalog 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 CreateCatalog {
/** User-provided free-form text description. */
@JsonProperty("comment")
private String comment;
/** The name of the connection to an external data source. */
@JsonProperty("connection_name")
private String connectionName;
/** Name of catalog. */
@JsonProperty("name")
private String name;
/** A map of key-value properties attached to the securable. */
@JsonProperty("options")
private Map options;
/** A map of key-value properties attached to the securable. */
@JsonProperty("properties")
private Map properties;
/**
* The name of delta sharing provider.
*
* A Delta Sharing catalog is a catalog that is based on a Delta share on a remote sharing
* server.
*/
@JsonProperty("provider_name")
private String providerName;
/** The name of the share under the share provider. */
@JsonProperty("share_name")
private String shareName;
/** Storage root URL for managed tables within catalog. */
@JsonProperty("storage_root")
private String storageRoot;
public CreateCatalog setComment(String comment) {
this.comment = comment;
return this;
}
public String getComment() {
return comment;
}
public CreateCatalog setConnectionName(String connectionName) {
this.connectionName = connectionName;
return this;
}
public String getConnectionName() {
return connectionName;
}
public CreateCatalog setName(String name) {
this.name = name;
return this;
}
public String getName() {
return name;
}
public CreateCatalog setOptions(Map options) {
this.options = options;
return this;
}
public Map getOptions() {
return options;
}
public CreateCatalog setProperties(Map properties) {
this.properties = properties;
return this;
}
public Map getProperties() {
return properties;
}
public CreateCatalog setProviderName(String providerName) {
this.providerName = providerName;
return this;
}
public String getProviderName() {
return providerName;
}
public CreateCatalog setShareName(String shareName) {
this.shareName = shareName;
return this;
}
public String getShareName() {
return shareName;
}
public CreateCatalog setStorageRoot(String storageRoot) {
this.storageRoot = storageRoot;
return this;
}
public String getStorageRoot() {
return storageRoot;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CreateCatalog that = (CreateCatalog) o;
return Objects.equals(comment, that.comment)
&& Objects.equals(connectionName, that.connectionName)
&& Objects.equals(name, that.name)
&& Objects.equals(options, that.options)
&& Objects.equals(properties, that.properties)
&& Objects.equals(providerName, that.providerName)
&& Objects.equals(shareName, that.shareName)
&& Objects.equals(storageRoot, that.storageRoot);
}
@Override
public int hashCode() {
return Objects.hash(
comment, connectionName, name, options, properties, providerName, shareName, storageRoot);
}
@Override
public String toString() {
return new ToStringer(CreateCatalog.class)
.add("comment", comment)
.add("connectionName", connectionName)
.add("name", name)
.add("options", options)
.add("properties", properties)
.add("providerName", providerName)
.add("shareName", shareName)
.add("storageRoot", storageRoot)
.toString();
}
}