Class ForeignKeyConstraint
- java.lang.Object
-
- io.datahubproject.openapi.generated.ForeignKeyConstraint
-
@Validated @Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen", date="2022-10-18T12:49:45.903581Z[Etc/UTC]") public class ForeignKeyConstraint extends java.lang.ObjectDescription of a foreign key constraint in a schema.
-
-
Constructor Summary
Constructors Constructor Description ForeignKeyConstraint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ForeignKeyConstraintaddForeignFieldsItem(java.lang.String foreignFieldsItem)ForeignKeyConstraintaddSourceFieldsItem(java.lang.String sourceFieldsItem)booleanequals(java.lang.Object o)ForeignKeyConstraintforeignDataset(java.lang.String foreignDataset)ForeignKeyConstraintforeignFields(java.util.List<java.lang.String> foreignFields)@NotNull java.lang.StringgetForeignDataset()Reference to the foreign dataset for ease of lookup@NotNull java.util.List<java.lang.String>getForeignFields()Fields the constraint maps to on the foreign dataset@NotNull java.lang.StringgetName()Name of the constraint, likely provided from the source@NotNull java.util.List<java.lang.String>getSourceFields()Fields the constraint maps to on the source datasetinthashCode()ForeignKeyConstraintname(java.lang.String name)voidsetForeignDataset(java.lang.String foreignDataset)voidsetForeignFields(java.util.List<java.lang.String> foreignFields)voidsetName(java.lang.String name)voidsetSourceFields(java.util.List<java.lang.String> sourceFields)ForeignKeyConstraintsourceFields(java.util.List<java.lang.String> sourceFields)java.lang.StringtoString()
-
-
-
Method Detail
-
name
public ForeignKeyConstraint name(java.lang.String name)
-
getName
@NotNull public @NotNull java.lang.String getName()
Name of the constraint, likely provided from the source- Returns:
- name
-
setName
public void setName(java.lang.String name)
-
foreignFields
public ForeignKeyConstraint foreignFields(java.util.List<java.lang.String> foreignFields)
-
addForeignFieldsItem
public ForeignKeyConstraint addForeignFieldsItem(java.lang.String foreignFieldsItem)
-
getForeignFields
@NotNull public @NotNull java.util.List<java.lang.String> getForeignFields()
Fields the constraint maps to on the foreign dataset- Returns:
- foreignFields
-
setForeignFields
public void setForeignFields(java.util.List<java.lang.String> foreignFields)
-
sourceFields
public ForeignKeyConstraint sourceFields(java.util.List<java.lang.String> sourceFields)
-
addSourceFieldsItem
public ForeignKeyConstraint addSourceFieldsItem(java.lang.String sourceFieldsItem)
-
getSourceFields
@NotNull public @NotNull java.util.List<java.lang.String> getSourceFields()
Fields the constraint maps to on the source dataset- Returns:
- sourceFields
-
setSourceFields
public void setSourceFields(java.util.List<java.lang.String> sourceFields)
-
foreignDataset
public ForeignKeyConstraint foreignDataset(java.lang.String foreignDataset)
-
getForeignDataset
@NotNull public @NotNull java.lang.String getForeignDataset()
Reference to the foreign dataset for ease of lookup- Returns:
- foreignDataset
-
setForeignDataset
public void setForeignDataset(java.lang.String foreignDataset)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-