All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.databricks.sdk.service.sql.Query Maven / Gradle / Ivy
// 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 Query {
/** 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;
/** Timestamp when this query was created. */
@JsonProperty("create_time")
private String createTime;
/**
* 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;
/** UUID identifying the query. */
@JsonProperty("id")
private String id;
/** Username of the user who last saved changes to this query. */
@JsonProperty("last_modifier_user_name")
private String lastModifierUserName;
/** Indicates whether the query is trashed. */
@JsonProperty("lifecycle_state")
private LifecycleState lifecycleState;
/** 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;
/** Workspace path of the workspace folder containing the object. */
@JsonProperty("parent_path")
private String parentPath;
/** 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;
/** Timestamp when this query was last updated. */
@JsonProperty("update_time")
private String updateTime;
/** ID of the SQL warehouse attached to the query. */
@JsonProperty("warehouse_id")
private String warehouseId;
public Query setApplyAutoLimit(Boolean applyAutoLimit) {
this.applyAutoLimit = applyAutoLimit;
return this;
}
public Boolean getApplyAutoLimit() {
return applyAutoLimit;
}
public Query setCatalog(String catalog) {
this.catalog = catalog;
return this;
}
public String getCatalog() {
return catalog;
}
public Query setCreateTime(String createTime) {
this.createTime = createTime;
return this;
}
public String getCreateTime() {
return createTime;
}
public Query setDescription(String description) {
this.description = description;
return this;
}
public String getDescription() {
return description;
}
public Query setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
public String getDisplayName() {
return displayName;
}
public Query setId(String id) {
this.id = id;
return this;
}
public String getId() {
return id;
}
public Query setLastModifierUserName(String lastModifierUserName) {
this.lastModifierUserName = lastModifierUserName;
return this;
}
public String getLastModifierUserName() {
return lastModifierUserName;
}
public Query setLifecycleState(LifecycleState lifecycleState) {
this.lifecycleState = lifecycleState;
return this;
}
public LifecycleState getLifecycleState() {
return lifecycleState;
}
public Query setOwnerUserName(String ownerUserName) {
this.ownerUserName = ownerUserName;
return this;
}
public String getOwnerUserName() {
return ownerUserName;
}
public Query setParameters(Collection parameters) {
this.parameters = parameters;
return this;
}
public Collection getParameters() {
return parameters;
}
public Query setParentPath(String parentPath) {
this.parentPath = parentPath;
return this;
}
public String getParentPath() {
return parentPath;
}
public Query setQueryText(String queryText) {
this.queryText = queryText;
return this;
}
public String getQueryText() {
return queryText;
}
public Query setRunAsMode(RunAsMode runAsMode) {
this.runAsMode = runAsMode;
return this;
}
public RunAsMode getRunAsMode() {
return runAsMode;
}
public Query setSchema(String schema) {
this.schema = schema;
return this;
}
public String getSchema() {
return schema;
}
public Query setTags(Collection tags) {
this.tags = tags;
return this;
}
public Collection getTags() {
return tags;
}
public Query setUpdateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
public String getUpdateTime() {
return updateTime;
}
public Query 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;
Query that = (Query) o;
return Objects.equals(applyAutoLimit, that.applyAutoLimit)
&& Objects.equals(catalog, that.catalog)
&& Objects.equals(createTime, that.createTime)
&& Objects.equals(description, that.description)
&& Objects.equals(displayName, that.displayName)
&& Objects.equals(id, that.id)
&& Objects.equals(lastModifierUserName, that.lastModifierUserName)
&& Objects.equals(lifecycleState, that.lifecycleState)
&& Objects.equals(ownerUserName, that.ownerUserName)
&& Objects.equals(parameters, that.parameters)
&& Objects.equals(parentPath, that.parentPath)
&& Objects.equals(queryText, that.queryText)
&& Objects.equals(runAsMode, that.runAsMode)
&& Objects.equals(schema, that.schema)
&& Objects.equals(tags, that.tags)
&& Objects.equals(updateTime, that.updateTime)
&& Objects.equals(warehouseId, that.warehouseId);
}
@Override
public int hashCode() {
return Objects.hash(
applyAutoLimit,
catalog,
createTime,
description,
displayName,
id,
lastModifierUserName,
lifecycleState,
ownerUserName,
parameters,
parentPath,
queryText,
runAsMode,
schema,
tags,
updateTime,
warehouseId);
}
@Override
public String toString() {
return new ToStringer(Query.class)
.add("applyAutoLimit", applyAutoLimit)
.add("catalog", catalog)
.add("createTime", createTime)
.add("description", description)
.add("displayName", displayName)
.add("id", id)
.add("lastModifierUserName", lastModifierUserName)
.add("lifecycleState", lifecycleState)
.add("ownerUserName", ownerUserName)
.add("parameters", parameters)
.add("parentPath", parentPath)
.add("queryText", queryText)
.add("runAsMode", runAsMode)
.add("schema", schema)
.add("tags", tags)
.add("updateTime", updateTime)
.add("warehouseId", warehouseId)
.toString();
}
}