Package org.cdk8s.plus24.k8s
Class EmptyDirVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.EmptyDirVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EmptyDirVolumeSource>
- Enclosing interface:
- EmptyDirVolumeSource
@Stability(Stable) public static final class EmptyDirVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<EmptyDirVolumeSource>
A builder forEmptyDirVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EmptyDirVolumeSource
build()
Builds the configured instance.EmptyDirVolumeSource.Builder
medium(String medium)
Sets the value ofEmptyDirVolumeSource.getMedium()
EmptyDirVolumeSource.Builder
sizeLimit(Quantity sizeLimit)
Sets the value ofEmptyDirVolumeSource.getSizeLimit()
-
-
-
Method Detail
-
medium
@Stability(Stable) public EmptyDirVolumeSource.Builder medium(String medium)
Sets the value ofEmptyDirVolumeSource.getMedium()
- Parameters:
medium
- medium represents what type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir- Returns:
this
-
sizeLimit
@Stability(Stable) public EmptyDirVolumeSource.Builder sizeLimit(Quantity sizeLimit)
Sets the value ofEmptyDirVolumeSource.getSizeLimit()
- Parameters:
sizeLimit
- sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir- Returns:
this
-
build
@Stability(Stable) public EmptyDirVolumeSource build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EmptyDirVolumeSource>
- Returns:
- a new instance of
EmptyDirVolumeSource
- Throws:
NullPointerException
- if any required attribute was not provided
-
-