@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:44.847Z") @Stability(value=Experimental) public class Size extends software.amazon.jsii.JsiiObject
The amount can be specified either as a literal value (e.g: 10) which
cannot be negative, or as an unresolved number token.
When the amount is passed as a token, unit conversion is not possible.
| Modifier | Constructor and Description |
|---|---|
protected |
Size(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Size(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static Size |
gibibytes(Number amount)
(experimental) Create a Storage representing an amount gibibytes.
|
static Size |
kibibytes(Number amount)
(experimental) Create a Storage representing an amount kibibytes.
|
static Size |
mebibytes(Number amount)
(experimental) Create a Storage representing an amount mebibytes.
|
static Size |
pebibytes(Number amount)
(experimental) Create a Storage representing an amount pebibytes.
|
static Size |
tebibytes(Number amount)
(experimental) Create a Storage representing an amount tebibytes.
|
Number |
toGibibytes()
(experimental) Return this storage as a total number of gibibytes.
|
Number |
toGibibytes(SizeConversionOptions opts)
(experimental) Return this storage as a total number of gibibytes.
|
Number |
toKibibytes()
(experimental) Return this storage as a total number of kibibytes.
|
Number |
toKibibytes(SizeConversionOptions opts)
(experimental) Return this storage as a total number of kibibytes.
|
Number |
toMebibytes()
(experimental) Return this storage as a total number of mebibytes.
|
Number |
toMebibytes(SizeConversionOptions opts)
(experimental) Return this storage as a total number of mebibytes.
|
Number |
toPebibytes()
(experimental) Return this storage as a total number of pebibytes.
|
Number |
toPebibytes(SizeConversionOptions opts)
(experimental) Return this storage as a total number of pebibytes.
|
Number |
toTebibytes()
(experimental) Return this storage as a total number of tebibytes.
|
Number |
toTebibytes(SizeConversionOptions opts)
(experimental) Return this storage as a total number of tebibytes.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Size(software.amazon.jsii.JsiiObjectRef objRef)
protected Size(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) @NotNull public static Size gibibytes(@NotNull Number amount)
1 GiB = 1024 MiB
amount - the amount of gibibytes to be represented. This parameter is required.@Stability(value=Experimental) @NotNull public static Size kibibytes(@NotNull Number amount)
1 KiB = 1024 bytes
amount - the amount of kibibytes to be represented. This parameter is required.@Stability(value=Experimental) @NotNull public static Size mebibytes(@NotNull Number amount)
1 MiB = 1024 KiB
amount - the amount of mebibytes to be represented. This parameter is required.@Stability(value=Experimental) @NotNull public static Size pebibytes(@NotNull Number amount)
1 PiB = 1024 TiB
amount - the amount of pebibytes to be represented. This parameter is required.@Stability(value=Experimental) @NotNull public static Size tebibytes(@NotNull Number amount)
1 TiB = 1024 GiB
amount - the amount of tebibytes to be represented. This parameter is required.@Stability(value=Experimental) @NotNull public Number toGibibytes(@Nullable SizeConversionOptions opts)
opts - the conversion options.@Stability(value=Experimental) @NotNull public Number toGibibytes()
@Stability(value=Experimental) @NotNull public Number toKibibytes(@Nullable SizeConversionOptions opts)
opts - the conversion options.@Stability(value=Experimental) @NotNull public Number toKibibytes()
@Stability(value=Experimental) @NotNull public Number toMebibytes(@Nullable SizeConversionOptions opts)
opts - the conversion options.@Stability(value=Experimental) @NotNull public Number toMebibytes()
@Stability(value=Experimental) @NotNull public Number toPebibytes(@Nullable SizeConversionOptions opts)
opts - the conversion options.@Stability(value=Experimental) @NotNull public Number toPebibytes()
@Stability(value=Experimental) @NotNull public Number toTebibytes(@Nullable SizeConversionOptions opts)
opts - the conversion options.@Stability(value=Experimental) @NotNull public Number toTebibytes()
Copyright © 2021. All rights reserved.