Class IcebergPartitionField.Builder
java.lang.Object
software.amazon.awscdk.services.s3tables.alpha.IcebergPartitionField.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<IcebergPartitionField>
- Enclosing interface:
IcebergPartitionField
@Stability(Experimental)
public static final class IcebergPartitionField.Builder
extends Object
implements software.amazon.jsii.Builder<IcebergPartitionField>
A builder for
IcebergPartitionField-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofIcebergPartitionField.getFieldId()Sets the value ofIcebergPartitionField.getName()Sets the value ofIcebergPartitionField.getSourceId()transform(IcebergTransform transform) Sets the value ofIcebergPartitionField.getTransform()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofIcebergPartitionField.getName()- Parameters:
name- The name of the partition field. This parameter is required.- Returns:
this
-
sourceId
Sets the value ofIcebergPartitionField.getSourceId()- Parameters:
sourceId- The source field ID from the schema. This parameter is required.- Returns:
this
-
transform
Sets the value ofIcebergPartitionField.getTransform()- Parameters:
transform- The partition transform function. This parameter is required. UseIcebergTransformstatic properties for common transforms (e.g.,IcebergTransform.IDENTITY) or methods for parameterized transforms (e.g.,IcebergTransform.bucket(16)).- Returns:
this
-
fieldId
Sets the value ofIcebergPartitionField.getFieldId()- Parameters:
fieldId- The unique identifier for the partition field.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<IcebergPartitionField>- Returns:
- a new instance of
IcebergPartitionField - Throws:
NullPointerException- if any required attribute was not provided
-