Class DatePartitionProjectionConfigurationProps.Builder
java.lang.Object
software.amazon.awscdk.services.glue.DatePartitionProjectionConfigurationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatePartitionProjectionConfigurationProps>
- Enclosing interface:
DatePartitionProjectionConfigurationProps
@Stability(Stable)
public static final class DatePartitionProjectionConfigurationProps.Builder
extends Object
implements software.amazon.jsii.Builder<DatePartitionProjectionConfigurationProps>
A builder for
DatePartitionProjectionConfigurationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofDatePartitionProjectionConfigurationProps.getFormat()Sets the value ofDatePartitionProjectionConfigurationProps.getMax()Sets the value ofDatePartitionProjectionConfigurationProps.getMin()step(DateProjectionStep step) Sets the value ofDatePartitionProjectionConfigurationProps.getStep()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
format
Sets the value ofDatePartitionProjectionConfigurationProps.getFormat()- Parameters:
format- Date format for partition values. This parameter is required. Uses Java SimpleDateFormat patterns.- Returns:
this
-
max
Sets the value ofDatePartitionProjectionConfigurationProps.getMax()- Parameters:
max- End date for the partition range (inclusive). This parameter is required. Can be either:- Fixed date in the format specified by
formatproperty - Relative date using NOW syntax
Same format constraints as
min.- Fixed date in the format specified by
- Returns:
this
-
min
Sets the value ofDatePartitionProjectionConfigurationProps.getMin()- Parameters:
min- Start date for the partition range (inclusive). This parameter is required. Can be either:- Fixed date in the format specified by
formatproperty (e.g., '2020-01-01' for format 'yyyy-MM-dd') - Relative date using NOW syntax (e.g., 'NOW', 'NOW-3YEARS', 'NOW+1MONTH')
- Fixed date in the format specified by
- Returns:
this
-
step
@Stability(Stable) public DatePartitionProjectionConfigurationProps.Builder step(DateProjectionStep step) Sets the value ofDatePartitionProjectionConfigurationProps.getStep()- Parameters:
step- Interval step (interval+intervalUnit) between partition values. The two are supplied together, so a partial step cannot be expressed. Required whenformatcarries sub-day precision — a field finer than a day, such as hours or AM/PM; at day or coarser precision Athena defaults the step, so it may be omitted.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DatePartitionProjectionConfigurationProps>- Returns:
- a new instance of
DatePartitionProjectionConfigurationProps - Throws:
NullPointerException- if any required attribute was not provided
-