Class Column.Builder

java.lang.Object
software.amazon.awscdk.services.redshift.alpha.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. This will appear on Amazon Redshift.
      Returns:
      this
    • comment

      @Stability(Experimental) public Column.Builder comment(String comment)
      Sets the value of Column.getComment()
      Parameters:
      comment - A comment to attach to the column.
      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
    • encoding

      @Stability(Experimental) public Column.Builder encoding(ColumnEncoding encoding)
      Sets the value of Column.getEncoding()
      Parameters:
      encoding - The encoding to use for the column.
      Returns:
      this
    • id

      @Stability(Experimental) public Column.Builder id(String id)
      Sets the value of Column.getId()
      Parameters:
      id - The unique identifier of the column. This is not the name of the column, and renaming this identifier will cause a new column to be created and the old column to be dropped.

      NOTE - This field will be set, however, only by setting the @aws-cdk/aws-redshift:columnId feature flag will this field be used.

      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