com.databricks.sdk.service.serving.DatabricksModelServingConfig Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.serving;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
@Generated
public class DatabricksModelServingConfig {
/**
* The Databricks secret key reference for a Databricks API token that corresponds to a user or
* service principal with Can Query access to the model serving endpoint pointed to by this
* external model.
*/
@JsonProperty("databricks_api_token")
private String databricksApiToken;
/**
* The URL of the Databricks workspace containing the model serving endpoint pointed to by this
* external model.
*/
@JsonProperty("databricks_workspace_url")
private String databricksWorkspaceUrl;
public DatabricksModelServingConfig setDatabricksApiToken(String databricksApiToken) {
this.databricksApiToken = databricksApiToken;
return this;
}
public String getDatabricksApiToken() {
return databricksApiToken;
}
public DatabricksModelServingConfig setDatabricksWorkspaceUrl(String databricksWorkspaceUrl) {
this.databricksWorkspaceUrl = databricksWorkspaceUrl;
return this;
}
public String getDatabricksWorkspaceUrl() {
return databricksWorkspaceUrl;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DatabricksModelServingConfig that = (DatabricksModelServingConfig) o;
return Objects.equals(databricksApiToken, that.databricksApiToken)
&& Objects.equals(databricksWorkspaceUrl, that.databricksWorkspaceUrl);
}
@Override
public int hashCode() {
return Objects.hash(databricksApiToken, databricksWorkspaceUrl);
}
@Override
public String toString() {
return new ToStringer(DatabricksModelServingConfig.class)
.add("databricksApiToken", databricksApiToken)
.add("databricksWorkspaceUrl", databricksWorkspaceUrl)
.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy