Class DataContractSpec.DCColumn.DCColumnBuilder<C extends DataContractSpec.DCColumn,B extends DataContractSpec.DCColumn.DCColumnBuilder<C,B>>

java.lang.Object
com.atlan.model.contracts.DataContractSpec.DCColumn.DCColumnBuilder<C,B>
Enclosing class:
DataContractSpec.DCColumn

public abstract static class DataContractSpec.DCColumn.DCColumnBuilder<C extends DataContractSpec.DCColumn,B extends DataContractSpec.DCColumn.DCColumnBuilder<C,B>> extends Object
  • Constructor Details

    • DCColumnBuilder

      public DCColumnBuilder()
  • Method Details

    • $fillValuesFrom

      protected B $fillValuesFrom(C instance)
    • name

      public B name(String name)
      Name of the column as it is defined in the source system (often technical).
      Returns:
      this.
    • displayName

      public B displayName(String displayName)
      Alias for the column, to make its name more readable.
      Returns:
      this.
    • description

      public B description(String description)
      Description of this column, for documentation purposes.
      Returns:
      this.
    • isPrimary

      public B isPrimary(Boolean isPrimary)
      When true, this column is the primary key for the table.
      Returns:
      this.
    • dataType

      public B dataType(String dataType)
      Physical data type of values in this column (e.g. varchar(20)).
      Returns:
      this.
    • logicalType

      public B logicalType(String logicalType)
      Logical data type of values in this column (e.g. string).
      Returns:
      this.
    • invalidFormat

      public B invalidFormat(String invalidFormat)
      Format of data to consider invalid.
      Returns:
      this.
    • validFormat

      public B validFormat(String validFormat)
      Format of data to consider valid.
      Returns:
      this.
    • invalidRegex

      public B invalidRegex(String invalidRegex)
      Regular expression to match invalid values.
      Returns:
      this.
    • validRegex

      public B validRegex(String validRegex)
      Regular expression to match valid values.
      Returns:
      this.
    • missingRegex

      public B missingRegex(String missingRegex)
      Regular expression to match missing values.
      Returns:
      this.
    • invalidValue

      public B invalidValue(String invalidValue)
    • invalidValues

      public B invalidValues(Collection<? extends String> invalidValues)
    • clearInvalidValues

      public B clearInvalidValues()
    • validValue

      public B validValue(String validValue)
    • validValues

      public B validValues(Collection<? extends String> validValues)
    • clearValidValues

      public B clearValidValues()
    • missingValue

      public B missingValue(String missingValue)
    • missingValues

      public B missingValues(Collection<? extends String> missingValues)
    • clearMissingValues

      public B clearMissingValues()
    • notNull

      public B notNull(Boolean notNull)
      When true, this column cannot be empty (without values).
      Returns:
      this.
    • validLength

      public B validLength(Long validLength)
      Fixed length for a string to be considered valid.
      Returns:
      this.
    • validMaxLength

      public B validMaxLength(Long validMaxLength)
      Maximum length for a string to be considered valid.
      Returns:
      this.
    • validMin

      public B validMin(Double validMin)
      Minimum numeric value considered valid.
      Returns:
      this.
    • validMax

      public B validMax(Double validMax)
      Maximum numeric value considered valid.
      Returns:
      this.
    • validMinLength

      public B validMinLength(Long validMinLength)
      Minimum length for a string to be considered valid.
      Returns:
      this.
    • unique

      public B unique(Boolean unique)
      When true, this column must have unique values.
      Returns:
      this.
    • self

      protected abstract B self()
    • build

      public abstract C build()
    • toString

      public String toString()
      Overrides:
      toString in class Object