Package software.amazon.awscdk.core
Interface SizeConversionOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SizeConversionOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:55.127Z")
@Stability(Stable)
public interface SizeConversionOptions
extends software.amazon.jsii.JsiiSerializable
Options for how to convert time to a different unit.
Example:
Size.mebibytes(2).toKibibytes(); // yields 2048 Size.kibibytes(2050).toMebibytes(SizeConversionOptions.builder().rounding(SizeRoundingBehavior.FLOOR).build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forSizeConversionOptions
static final class
An implementation forSizeConversionOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default SizeRoundingBehavior
How conversions should behave when it encounters a non-integer result.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRounding
How conversions should behave when it encounters a non-integer result.Default: SizeRoundingBehavior.FAIL
-
builder
- Returns:
- a
SizeConversionOptions.Builder
ofSizeConversionOptions
-