Package org.cdk8s
Class TimeConversionOptions.Builder
- java.lang.Object
-
- org.cdk8s.TimeConversionOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<TimeConversionOptions>
- Enclosing interface:
- TimeConversionOptions
@Stability(Stable) public static final class TimeConversionOptions.Builder extends Object implements software.amazon.jsii.Builder<TimeConversionOptions>
A builder forTimeConversionOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeConversionOptions
build()
Builds the configured instance.TimeConversionOptions.Builder
integral(Boolean integral)
Sets the value ofTimeConversionOptions.getIntegral()
-
-
-
Method Detail
-
integral
@Stability(Stable) public TimeConversionOptions.Builder integral(Boolean integral)
Sets the value ofTimeConversionOptions.getIntegral()
- Parameters:
integral
- If `true`, conversions into a larger time unit (e.g. `Seconds` to `Minutes`) will fail if the result is not an integer.- Returns:
this
-
build
@Stability(Stable) public TimeConversionOptions build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<TimeConversionOptions>
- Returns:
- a new instance of
TimeConversionOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-
-