Class TableProps.Builder
java.lang.Object
software.amazon.awscdk.services.s3tables.alpha.TableProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TableProps>
- Enclosing interface:
TableProps
@Stability(Experimental)
public static final class TableProps.Builder
extends Object
implements software.amazon.jsii.Builder<TableProps>
A builder for
TableProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.compaction
(CompactionProperty compaction) Sets the value ofTableProps.getCompaction()
icebergMetadata
(IcebergMetadataProperty icebergMetadata) Sets the value ofTableProps.getIcebergMetadata()
namespace
(INamespace namespace) Sets the value ofTableProps.getNamespace()
openTableFormat
(OpenTableFormat openTableFormat) Sets the value ofTableProps.getOpenTableFormat()
removalPolicy
(RemovalPolicy removalPolicy) Sets the value ofTableProps.getRemovalPolicy()
snapshotManagement
(SnapshotManagementProperty snapshotManagement) Sets the value ofTableProps.getSnapshotManagement()
Sets the value ofTableProps.getTableName()
withoutMetadata
(Boolean withoutMetadata) Sets the value ofTableProps.getWithoutMetadata()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
namespace
Sets the value ofTableProps.getNamespace()
- Parameters:
namespace
- The namespace under which this table is created. This parameter is required.- Returns:
this
-
openTableFormat
Sets the value ofTableProps.getOpenTableFormat()
- Parameters:
openTableFormat
- Format of this table. This parameter is required. Currently, the only supported value is OpenTableFormat.ICEBERG.- Returns:
this
-
tableName
Sets the value ofTableProps.getTableName()
- Parameters:
tableName
- Name of this table, unique within the namespace. This parameter is required.- Returns:
this
-
compaction
Sets the value ofTableProps.getCompaction()
- Parameters:
compaction
- Settings governing the Compaction maintenance action.- Returns:
this
-
icebergMetadata
@Stability(Experimental) public TableProps.Builder icebergMetadata(IcebergMetadataProperty icebergMetadata) Sets the value ofTableProps.getIcebergMetadata()
- Parameters:
icebergMetadata
- Contains details about the metadata for an Iceberg table.- Returns:
this
-
removalPolicy
Sets the value ofTableProps.getRemovalPolicy()
- Parameters:
removalPolicy
- Controls what happens to this table it it stoped being managed by cloudformation.- Returns:
this
-
snapshotManagement
@Stability(Experimental) public TableProps.Builder snapshotManagement(SnapshotManagementProperty snapshotManagement) Sets the value ofTableProps.getSnapshotManagement()
- Parameters:
snapshotManagement
- Contains details about the snapshot management settings for an Iceberg table.- Returns:
this
-
withoutMetadata
Sets the value ofTableProps.getWithoutMetadata()
- Parameters:
withoutMetadata
- If true, indicates that you don't want to specify a schema for the table. This property is mutually exclusive to 'IcebergMetadata'.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<TableProps>
- Returns:
- a new instance of
TableProps
- Throws:
NullPointerException
- if any required attribute was not provided
-