Class Column.Builder

java.lang.Object
software.amazon.awscdk.services.redshift.Column.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<Column>
Enclosing interface:
Column

@Stability(Experimental) public static final class Column.Builder extends Object implements software.amazon.jsii.Builder<Column>
A builder for Column
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • dataType

      @Stability(Experimental) public Column.Builder dataType(String dataType)
      Sets the value of Column.getDataType()
      Parameters:
      dataType - The data type of the column. This parameter is required.
      Returns:
      this
    • name

      @Stability(Experimental) public Column.Builder name(String name)
      Sets the value of Column.getName()
      Parameters:
      name - The name of the column. This parameter is required.
      Returns:
      this
    • distKey

      @Stability(Experimental) public Column.Builder distKey(Boolean distKey)
      Sets the value of Column.getDistKey()
      Parameters:
      distKey - Boolean value that indicates whether the column is to be configured as DISTKEY.
      Returns:
      this
    • sortKey

      @Stability(Experimental) public Column.Builder sortKey(Boolean sortKey)
      Sets the value of Column.getSortKey()
      Parameters:
      sortKey - Boolean value that indicates whether the column is to be configured as SORTKEY.
      Returns:
      this
    • build

      @Stability(Experimental) public Column build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<Column>
      Returns:
      a new instance of Column
      Throws:
      NullPointerException - if any required attribute was not provided