All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.databricks.sdk.service.sql.QueryBackedValue Maven / Gradle / Ivy

There is a newer version: 0.35.0
Show 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 QueryBackedValue {
  /** If specified, allows multiple values to be selected for this parameter. */
  @JsonProperty("multi_values_options")
  private MultiValuesOptions multiValuesOptions;

  /** UUID of the query that provides the parameter values. */
  @JsonProperty("query_id")
  private String queryId;

  /** List of selected query parameter values. */
  @JsonProperty("values")
  private Collection values;

  public QueryBackedValue setMultiValuesOptions(MultiValuesOptions multiValuesOptions) {
    this.multiValuesOptions = multiValuesOptions;
    return this;
  }

  public MultiValuesOptions getMultiValuesOptions() {
    return multiValuesOptions;
  }

  public QueryBackedValue setQueryId(String queryId) {
    this.queryId = queryId;
    return this;
  }

  public String getQueryId() {
    return queryId;
  }

  public QueryBackedValue setValues(Collection values) {
    this.values = values;
    return this;
  }

  public Collection getValues() {
    return values;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    QueryBackedValue that = (QueryBackedValue) o;
    return Objects.equals(multiValuesOptions, that.multiValuesOptions)
        && Objects.equals(queryId, that.queryId)
        && Objects.equals(values, that.values);
  }

  @Override
  public int hashCode() {
    return Objects.hash(multiValuesOptions, queryId, values);
  }

  @Override
  public String toString() {
    return new ToStringer(QueryBackedValue.class)
        .add("multiValuesOptions", multiValuesOptions)
        .add("queryId", queryId)
        .add("values", values)
        .toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy