com.databricks.sdk.service.catalog.ForeignKeyConstraint Maven / Gradle / Ivy
// 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.Collection;
import java.util.Objects;
@Generated
public class ForeignKeyConstraint {
/** Column names for this constraint. */
@JsonProperty("child_columns")
private Collection childColumns;
/** The name of the constraint. */
@JsonProperty("name")
private String name;
/** Column names for this constraint. */
@JsonProperty("parent_columns")
private Collection parentColumns;
/** The full name of the parent constraint. */
@JsonProperty("parent_table")
private String parentTable;
public ForeignKeyConstraint setChildColumns(Collection childColumns) {
this.childColumns = childColumns;
return this;
}
public Collection getChildColumns() {
return childColumns;
}
public ForeignKeyConstraint setName(String name) {
this.name = name;
return this;
}
public String getName() {
return name;
}
public ForeignKeyConstraint setParentColumns(Collection parentColumns) {
this.parentColumns = parentColumns;
return this;
}
public Collection getParentColumns() {
return parentColumns;
}
public ForeignKeyConstraint setParentTable(String parentTable) {
this.parentTable = parentTable;
return this;
}
public String getParentTable() {
return parentTable;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ForeignKeyConstraint that = (ForeignKeyConstraint) o;
return Objects.equals(childColumns, that.childColumns)
&& Objects.equals(name, that.name)
&& Objects.equals(parentColumns, that.parentColumns)
&& Objects.equals(parentTable, that.parentTable);
}
@Override
public int hashCode() {
return Objects.hash(childColumns, name, parentColumns, parentTable);
}
@Override
public String toString() {
return new ToStringer(ForeignKeyConstraint.class)
.add("childColumns", childColumns)
.add("name", name)
.add("parentColumns", parentColumns)
.add("parentTable", parentTable)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy