com.databricks.sdk.service.catalog.CreateSchema 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 CreateSchema {
/** Name of parent catalog. */
@JsonProperty("catalog_name")
private String catalogName;
/** User-provided free-form text description. */
@JsonProperty("comment")
private String comment;
/** Name of schema, relative to parent catalog. */
@JsonProperty("name")
private String name;
/** A map of key-value properties attached to the securable. */
@JsonProperty("properties")
private Map properties;
/** Storage root URL for managed tables within schema. */
@JsonProperty("storage_root")
private String storageRoot;
public CreateSchema setCatalogName(String catalogName) {
this.catalogName = catalogName;
return this;
}
public String getCatalogName() {
return catalogName;
}
public CreateSchema setComment(String comment) {
this.comment = comment;
return this;
}
public String getComment() {
return comment;
}
public CreateSchema setName(String name) {
this.name = name;
return this;
}
public String getName() {
return name;
}
public CreateSchema setProperties(Map properties) {
this.properties = properties;
return this;
}
public Map getProperties() {
return properties;
}
public CreateSchema 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;
CreateSchema that = (CreateSchema) o;
return Objects.equals(catalogName, that.catalogName)
&& Objects.equals(comment, that.comment)
&& Objects.equals(name, that.name)
&& Objects.equals(properties, that.properties)
&& Objects.equals(storageRoot, that.storageRoot);
}
@Override
public int hashCode() {
return Objects.hash(catalogName, comment, name, properties, storageRoot);
}
@Override
public String toString() {
return new ToStringer(CreateSchema.class)
.add("catalogName", catalogName)
.add("comment", comment)
.add("name", name)
.add("properties", properties)
.add("storageRoot", storageRoot)
.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy