Package org.cdk8s.plus24
Enum PersistentVolumeMode
- java.lang.Object
-
- java.lang.Enum<PersistentVolumeMode>
-
- org.cdk8s.plus24.PersistentVolumeMode
-
- All Implemented Interfaces:
Serializable
,Comparable<PersistentVolumeMode>
@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-02-04T02:31:04.954Z") @Stability(Stable) public enum PersistentVolumeMode extends Enum<PersistentVolumeMode>
Volume Modes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCK
Use a volume as a raw block device.FILE_SYSTEM
Volume is ounted into Pods into a directory.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PersistentVolumeMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static PersistentVolumeMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FILE_SYSTEM
@Stability(Stable) public static final PersistentVolumeMode FILE_SYSTEM
Volume is ounted into Pods into a directory.If the volume is backed by a block device and the device is empty, Kubernetes creates a filesystem on the device before mounting it for the first time.
-
BLOCK
@Stability(Stable) public static final PersistentVolumeMode BLOCK
Use a volume as a raw block device.Such volume is presented into a Pod as a block device, without any filesystem on it. This mode is useful to provide a Pod the fastest possible way to access a volume, without any filesystem layer between the Pod and the volume. On the other hand, the application running in the Pod must know how to handle a raw block device
-
-
Method Detail
-
values
public static PersistentVolumeMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PersistentVolumeMode c : PersistentVolumeMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PersistentVolumeMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-