Package software.amazon.awscdk
Class TimeConversionOptions.Builder
java.lang.Object
software.amazon.awscdk.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 for
TimeConversionOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofTimeConversionOptions.getIntegral()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
integral
Sets the value ofTimeConversionOptions.getIntegral()
- Parameters:
integral
- Iftrue
, conversions into a larger time unit (e.g.Seconds
toMinutes
) will fail if the result is not an integer.- Returns:
this
-
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
-