All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cdk8s.plus.Size Maven / Gradle / Ivy

There is a newer version: 0.33.0
Show newest version
package org.cdk8s.plus;

/**
 * Represents the amount of digital storage.
 * 

* 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. *

* EXPERIMENTAL */ @javax.annotation.Generated(value = "jsii-pacmak/1.7.0 (build 179a3a5)", date = "2020-06-29T13:29:38.541Z") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @software.amazon.jsii.Jsii(module = org.cdk8s.plus.$Module.class, fqn = "cdk8s-plus.Size") public class Size extends software.amazon.jsii.JsiiObject { protected Size(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected Size(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } /** * Create a Storage representing an amount gibibytes. *

* 1 GiB = 1024 MiB *

* EXPERIMENTAL *

* @param amount This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull org.cdk8s.plus.Size gibibytes(final @org.jetbrains.annotations.NotNull java.lang.Number amount) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus.Size.class, "gibibytes", org.cdk8s.plus.Size.class, new Object[] { java.util.Objects.requireNonNull(amount, "amount is required") }); } /** * Create a Storage representing an amount kibibytes. *

* 1 KiB = 1024 bytes *

* EXPERIMENTAL *

* @param amount This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull org.cdk8s.plus.Size kibibytes(final @org.jetbrains.annotations.NotNull java.lang.Number amount) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus.Size.class, "kibibytes", org.cdk8s.plus.Size.class, new Object[] { java.util.Objects.requireNonNull(amount, "amount is required") }); } /** * Create a Storage representing an amount mebibytes. *

* 1 MiB = 1024 KiB *

* EXPERIMENTAL *

* @param amount This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull org.cdk8s.plus.Size mebibytes(final @org.jetbrains.annotations.NotNull java.lang.Number amount) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus.Size.class, "mebibytes", org.cdk8s.plus.Size.class, new Object[] { java.util.Objects.requireNonNull(amount, "amount is required") }); } /** * Create a Storage representing an amount pebibytes. *

* 1 PiB = 1024 TiB *

* EXPERIMENTAL *

* @param amount This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull org.cdk8s.plus.Size pebibyte(final @org.jetbrains.annotations.NotNull java.lang.Number amount) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus.Size.class, "pebibyte", org.cdk8s.plus.Size.class, new Object[] { java.util.Objects.requireNonNull(amount, "amount is required") }); } /** * Create a Storage representing an amount tebibytes. *

* 1 TiB = 1024 GiB *

* EXPERIMENTAL *

* @param amount This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull org.cdk8s.plus.Size tebibytes(final @org.jetbrains.annotations.NotNull java.lang.Number amount) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus.Size.class, "tebibytes", org.cdk8s.plus.Size.class, new Object[] { java.util.Objects.requireNonNull(amount, "amount is required") }); } /** * Return this storage as a total number of gibibytes. *

* EXPERIMENTAL *

* @param opts */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number toGibibytes(final @org.jetbrains.annotations.Nullable org.cdk8s.plus.SizeConversionOptions opts) { return this.jsiiCall("toGibibytes", java.lang.Number.class, new Object[] { opts }); } /** * Return this storage as a total number of gibibytes. *

* EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number toGibibytes() { return this.jsiiCall("toGibibytes", java.lang.Number.class); } /** * Return this storage as a total number of kibibytes. *

* EXPERIMENTAL *

* @param opts */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number toKibibytes(final @org.jetbrains.annotations.Nullable org.cdk8s.plus.SizeConversionOptions opts) { return this.jsiiCall("toKibibytes", java.lang.Number.class, new Object[] { opts }); } /** * Return this storage as a total number of kibibytes. *

* EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number toKibibytes() { return this.jsiiCall("toKibibytes", java.lang.Number.class); } /** * Return this storage as a total number of mebibytes. *

* EXPERIMENTAL *

* @param opts */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number toMebibytes(final @org.jetbrains.annotations.Nullable org.cdk8s.plus.SizeConversionOptions opts) { return this.jsiiCall("toMebibytes", java.lang.Number.class, new Object[] { opts }); } /** * Return this storage as a total number of mebibytes. *

* EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number toMebibytes() { return this.jsiiCall("toMebibytes", java.lang.Number.class); } /** * Return this storage as a total number of pebibytes. *

* EXPERIMENTAL *

* @param opts */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number toPebibytes(final @org.jetbrains.annotations.Nullable org.cdk8s.plus.SizeConversionOptions opts) { return this.jsiiCall("toPebibytes", java.lang.Number.class, new Object[] { opts }); } /** * Return this storage as a total number of pebibytes. *

* EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number toPebibytes() { return this.jsiiCall("toPebibytes", java.lang.Number.class); } /** * Return this storage as a total number of tebibytes. *

* EXPERIMENTAL *

* @param opts */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number toTebibytes(final @org.jetbrains.annotations.Nullable org.cdk8s.plus.SizeConversionOptions opts) { return this.jsiiCall("toTebibytes", java.lang.Number.class, new Object[] { opts }); } /** * Return this storage as a total number of tebibytes. *

* EXPERIMENTAL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number toTebibytes() { return this.jsiiCall("toTebibytes", java.lang.Number.class); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy