com.databricks.sdk.service.catalog.CreateMetastoreAssignment 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.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
@Generated
public class CreateMetastoreAssignment {
/**
* The name of the default catalog in the metastore. This field is depracted. Please use "Default
* Namespace API" to configure the default catalog for a Databricks workspace.
*/
@JsonProperty("default_catalog_name")
private String defaultCatalogName;
/** The unique ID of the metastore. */
@JsonProperty("metastore_id")
private String metastoreId;
/** A workspace ID. */
@JsonIgnore private Long workspaceId;
public CreateMetastoreAssignment setDefaultCatalogName(String defaultCatalogName) {
this.defaultCatalogName = defaultCatalogName;
return this;
}
public String getDefaultCatalogName() {
return defaultCatalogName;
}
public CreateMetastoreAssignment setMetastoreId(String metastoreId) {
this.metastoreId = metastoreId;
return this;
}
public String getMetastoreId() {
return metastoreId;
}
public CreateMetastoreAssignment setWorkspaceId(Long workspaceId) {
this.workspaceId = workspaceId;
return this;
}
public Long getWorkspaceId() {
return workspaceId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CreateMetastoreAssignment that = (CreateMetastoreAssignment) o;
return Objects.equals(defaultCatalogName, that.defaultCatalogName)
&& Objects.equals(metastoreId, that.metastoreId)
&& Objects.equals(workspaceId, that.workspaceId);
}
@Override
public int hashCode() {
return Objects.hash(defaultCatalogName, metastoreId, workspaceId);
}
@Override
public String toString() {
return new ToStringer(CreateMetastoreAssignment.class)
.add("defaultCatalogName", defaultCatalogName)
.add("metastoreId", metastoreId)
.add("workspaceId", workspaceId)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy