com.databricks.sdk.service.sql.UpdateQueryRequestQuery Maven / Gradle / Ivy
The newest version!
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.sql;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collection;
import java.util.Objects;
@Generated
public class UpdateQueryRequestQuery {
/** Whether to apply a 1000 row limit to the query result. */
@JsonProperty("apply_auto_limit")
private Boolean applyAutoLimit;
/** Name of the catalog where this query will be executed. */
@JsonProperty("catalog")
private String catalog;
/**
* General description that conveys additional information about this query such as usage notes.
*/
@JsonProperty("description")
private String description;
/**
* Display name of the query that appears in list views, widget headings, and on the query page.
*/
@JsonProperty("display_name")
private String displayName;
/** Username of the user that owns the query. */
@JsonProperty("owner_user_name")
private String ownerUserName;
/** List of query parameter definitions. */
@JsonProperty("parameters")
private Collection parameters;
/** Text of the query to be run. */
@JsonProperty("query_text")
private String queryText;
/** Sets the "Run as" role for the object. */
@JsonProperty("run_as_mode")
private RunAsMode runAsMode;
/** Name of the schema where this query will be executed. */
@JsonProperty("schema")
private String schema;
/** */
@JsonProperty("tags")
private Collection tags;
/** ID of the SQL warehouse attached to the query. */
@JsonProperty("warehouse_id")
private String warehouseId;
public UpdateQueryRequestQuery setApplyAutoLimit(Boolean applyAutoLimit) {
this.applyAutoLimit = applyAutoLimit;
return this;
}
public Boolean getApplyAutoLimit() {
return applyAutoLimit;
}
public UpdateQueryRequestQuery setCatalog(String catalog) {
this.catalog = catalog;
return this;
}
public String getCatalog() {
return catalog;
}
public UpdateQueryRequestQuery setDescription(String description) {
this.description = description;
return this;
}
public String getDescription() {
return description;
}
public UpdateQueryRequestQuery setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
public String getDisplayName() {
return displayName;
}
public UpdateQueryRequestQuery setOwnerUserName(String ownerUserName) {
this.ownerUserName = ownerUserName;
return this;
}
public String getOwnerUserName() {
return ownerUserName;
}
public UpdateQueryRequestQuery setParameters(Collection parameters) {
this.parameters = parameters;
return this;
}
public Collection getParameters() {
return parameters;
}
public UpdateQueryRequestQuery setQueryText(String queryText) {
this.queryText = queryText;
return this;
}
public String getQueryText() {
return queryText;
}
public UpdateQueryRequestQuery setRunAsMode(RunAsMode runAsMode) {
this.runAsMode = runAsMode;
return this;
}
public RunAsMode getRunAsMode() {
return runAsMode;
}
public UpdateQueryRequestQuery setSchema(String schema) {
this.schema = schema;
return this;
}
public String getSchema() {
return schema;
}
public UpdateQueryRequestQuery setTags(Collection tags) {
this.tags = tags;
return this;
}
public Collection getTags() {
return tags;
}
public UpdateQueryRequestQuery setWarehouseId(String warehouseId) {
this.warehouseId = warehouseId;
return this;
}
public String getWarehouseId() {
return warehouseId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
UpdateQueryRequestQuery that = (UpdateQueryRequestQuery) o;
return Objects.equals(applyAutoLimit, that.applyAutoLimit)
&& Objects.equals(catalog, that.catalog)
&& Objects.equals(description, that.description)
&& Objects.equals(displayName, that.displayName)
&& Objects.equals(ownerUserName, that.ownerUserName)
&& Objects.equals(parameters, that.parameters)
&& Objects.equals(queryText, that.queryText)
&& Objects.equals(runAsMode, that.runAsMode)
&& Objects.equals(schema, that.schema)
&& Objects.equals(tags, that.tags)
&& Objects.equals(warehouseId, that.warehouseId);
}
@Override
public int hashCode() {
return Objects.hash(
applyAutoLimit,
catalog,
description,
displayName,
ownerUserName,
parameters,
queryText,
runAsMode,
schema,
tags,
warehouseId);
}
@Override
public String toString() {
return new ToStringer(UpdateQueryRequestQuery.class)
.add("applyAutoLimit", applyAutoLimit)
.add("catalog", catalog)
.add("description", description)
.add("displayName", displayName)
.add("ownerUserName", ownerUserName)
.add("parameters", parameters)
.add("queryText", queryText)
.add("runAsMode", runAsMode)
.add("schema", schema)
.add("tags", tags)
.add("warehouseId", warehouseId)
.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy