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

com.databricks.sdk.service.catalog.Dependency Maven / Gradle / Ivy

There is a newer version: 0.38.0
Show newest version
// 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.JsonProperty;
import java.util.Objects;

/**
 * A dependency of a SQL object. Either the __table__ field or the __function__ field must be
 * defined.
 */
@Generated
public class Dependency {
  /** A function that is dependent on a SQL object. */
  @JsonProperty("function")
  private FunctionDependency function;

  /** A table that is dependent on a SQL object. */
  @JsonProperty("table")
  private TableDependency table;

  public Dependency setFunction(FunctionDependency function) {
    this.function = function;
    return this;
  }

  public FunctionDependency getFunction() {
    return function;
  }

  public Dependency setTable(TableDependency table) {
    this.table = table;
    return this;
  }

  public TableDependency getTable() {
    return table;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    Dependency that = (Dependency) o;
    return Objects.equals(function, that.function) && Objects.equals(table, that.table);
  }

  @Override
  public int hashCode() {
    return Objects.hash(function, table);
  }

  @Override
  public String toString() {
    return new ToStringer(Dependency.class)
        .add("function", function)
        .add("table", table)
        .toString();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy