Package org.cdk8s
Class Size
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.Size
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.68.0 (build b45f2f6)", date="2022-09-24T00:10:25.007Z") @Stability(Stable) public class Size extends software.amazon.jsii.JsiiObject
Represents the amount of digital storage.The amount can be specified either as a literal value (e.g:
10
) which cannot be negative.When the amount is passed as a token, unit conversion is not possible.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Size
gibibytes(Number amount)
Create a Storage representing an amount gibibytes.static Size
kibibytes(Number amount)
Create a Storage representing an amount kibibytes.static Size
mebibytes(Number amount)
Create a Storage representing an amount mebibytes.static Size
pebibyte(Number amount)
Create a Storage representing an amount pebibytes.static Size
tebibytes(Number amount)
Create a Storage representing an amount tebibytes.Number
toGibibytes()
Return this storage as a total number of gibibytes.Number
toGibibytes(SizeConversionOptions opts)
Return this storage as a total number of gibibytes.Number
toKibibytes()
Return this storage as a total number of kibibytes.Number
toKibibytes(SizeConversionOptions opts)
Return this storage as a total number of kibibytes.Number
toMebibytes()
Return this storage as a total number of mebibytes.Number
toMebibytes(SizeConversionOptions opts)
Return this storage as a total number of mebibytes.Number
toPebibytes()
Return this storage as a total number of pebibytes.Number
toPebibytes(SizeConversionOptions opts)
Return this storage as a total number of pebibytes.Number
toTebibytes()
Return this storage as a total number of tebibytes.Number
toTebibytes(SizeConversionOptions opts)
Return this storage as a total number of tebibytes.-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Method Detail
-
gibibytes
@Stability(Stable) @NotNull public static Size gibibytes(@NotNull Number amount)
Create a Storage representing an amount gibibytes.1 GiB = 1024 MiB
- Parameters:
amount
- This parameter is required.
-
kibibytes
@Stability(Stable) @NotNull public static Size kibibytes(@NotNull Number amount)
Create a Storage representing an amount kibibytes.1 KiB = 1024 bytes
- Parameters:
amount
- This parameter is required.
-
mebibytes
@Stability(Stable) @NotNull public static Size mebibytes(@NotNull Number amount)
Create a Storage representing an amount mebibytes.1 MiB = 1024 KiB
- Parameters:
amount
- This parameter is required.
-
pebibyte
@Stability(Stable) @NotNull public static Size pebibyte(@NotNull Number amount)
Create a Storage representing an amount pebibytes.1 PiB = 1024 TiB
- Parameters:
amount
- This parameter is required.
-
tebibytes
@Stability(Stable) @NotNull public static Size tebibytes(@NotNull Number amount)
Create a Storage representing an amount tebibytes.1 TiB = 1024 GiB
- Parameters:
amount
- This parameter is required.
-
toGibibytes
@Stability(Stable) @NotNull public Number toGibibytes(@Nullable SizeConversionOptions opts)
Return this storage as a total number of gibibytes.- Parameters:
opts
-
-
toGibibytes
@Stability(Stable) @NotNull public Number toGibibytes()
Return this storage as a total number of gibibytes.
-
toKibibytes
@Stability(Stable) @NotNull public Number toKibibytes(@Nullable SizeConversionOptions opts)
Return this storage as a total number of kibibytes.- Parameters:
opts
-
-
toKibibytes
@Stability(Stable) @NotNull public Number toKibibytes()
Return this storage as a total number of kibibytes.
-
toMebibytes
@Stability(Stable) @NotNull public Number toMebibytes(@Nullable SizeConversionOptions opts)
Return this storage as a total number of mebibytes.- Parameters:
opts
-
-
toMebibytes
@Stability(Stable) @NotNull public Number toMebibytes()
Return this storage as a total number of mebibytes.
-
toPebibytes
@Stability(Stable) @NotNull public Number toPebibytes(@Nullable SizeConversionOptions opts)
Return this storage as a total number of pebibytes.- Parameters:
opts
-
-
toPebibytes
@Stability(Stable) @NotNull public Number toPebibytes()
Return this storage as a total number of pebibytes.
-
toTebibytes
@Stability(Stable) @NotNull public Number toTebibytes(@Nullable SizeConversionOptions opts)
Return this storage as a total number of tebibytes.- Parameters:
opts
-
-
toTebibytes
@Stability(Stable) @NotNull public Number toTebibytes()
Return this storage as a total number of tebibytes.
-
-