Class CfnTable.IcebergPartitionFieldProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3tables.CfnTable.IcebergPartitionFieldProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTable.IcebergPartitionFieldProperty>
- Enclosing interface:
CfnTable.IcebergPartitionFieldProperty
@Stability(Stable)
public static final class CfnTable.IcebergPartitionFieldProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTable.IcebergPartitionFieldProperty>
A builder for
CfnTable.IcebergPartitionFieldProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTable.IcebergPartitionFieldProperty.getFieldId()Sets the value ofCfnTable.IcebergPartitionFieldProperty.getName()Sets the value ofCfnTable.IcebergPartitionFieldProperty.getSourceId()Sets the value ofCfnTable.IcebergPartitionFieldProperty.getTransform()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnTable.IcebergPartitionFieldProperty.getName()- Parameters:
name- The name of the partition field. This parameter is required.- Returns:
this
-
sourceId
Sets the value ofCfnTable.IcebergPartitionFieldProperty.getSourceId()- Parameters:
sourceId- The source column ID to partition on. This parameter is required.- Returns:
this
-
transform
@Stability(Stable) public CfnTable.IcebergPartitionFieldProperty.Builder transform(String transform) Sets the value ofCfnTable.IcebergPartitionFieldProperty.getTransform()- Parameters:
transform- The partition transform function (identity, bucket[N], truncate[N], year, month, day, hour). This parameter is required.- Returns:
this
-
fieldId
Sets the value ofCfnTable.IcebergPartitionFieldProperty.getFieldId()- Parameters:
fieldId- The partition field ID (auto-assigned starting from 1000 if not specified).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTable.IcebergPartitionFieldProperty>- Returns:
- a new instance of
CfnTable.IcebergPartitionFieldProperty - Throws:
NullPointerException- if any required attribute was not provided
-