Class DatePartitionProjectionConfigurationProps.Builder
java.lang.Object
software.amazon.awscdk.services.glue.alpha.DatePartitionProjectionConfigurationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatePartitionProjectionConfigurationProps>
- Enclosing interface:
DatePartitionProjectionConfigurationProps
@Stability(Experimental)
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.getInterval()intervalUnit(DateIntervalUnit intervalUnit) Sets the value ofDatePartitionProjectionConfigurationProps.getIntervalUnit()Sets the value ofDatePartitionProjectionConfigurationProps.getMax()Sets the value ofDatePartitionProjectionConfigurationProps.getMin()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
format
@Stability(Experimental) public DatePartitionProjectionConfigurationProps.Builder format(String 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
-
interval
@Stability(Experimental) public DatePartitionProjectionConfigurationProps.Builder interval(Number interval) Sets the value ofDatePartitionProjectionConfigurationProps.getInterval()- Parameters:
interval- Interval between partition values. When the provided dates are at single-day or single-month precision, the interval is optional and defaults to 1 day or 1 month, respectively. Otherwise, interval is required.- Returns:
this
-
intervalUnit
@Stability(Experimental) public DatePartitionProjectionConfigurationProps.Builder intervalUnit(DateIntervalUnit intervalUnit) Sets the value ofDatePartitionProjectionConfigurationProps.getIntervalUnit()- Parameters:
intervalUnit- Unit for the interval. When the provided dates are at single-day or single-month precision, the intervalUnit is optional and defaults to 1 day or 1 month, respectively. Otherwise, the intervalUnit is required.- 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
-