Package org.cdk8s.plus22
Class AzureDiskVolumeOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus22.AzureDiskVolumeOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AzureDiskVolumeOptions>
- Enclosing interface:
- AzureDiskVolumeOptions
@Stability(Stable) public static final class AzureDiskVolumeOptions.Builder extends Object implements software.amazon.jsii.Builder<AzureDiskVolumeOptions>
A builder forAzureDiskVolumeOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AzureDiskVolumeOptionsbuild()Builds the configured instance.AzureDiskVolumeOptions.BuildercachingMode(AzureDiskPersistentVolumeCachingMode cachingMode)Sets the value ofAzureDiskVolumeOptions.getCachingMode()AzureDiskVolumeOptions.BuilderfsType(String fsType)Sets the value ofAzureDiskVolumeOptions.getFsType()AzureDiskVolumeOptions.Builderkind(AzureDiskPersistentVolumeKind kind)Sets the value ofAzureDiskVolumeOptions.getKind()AzureDiskVolumeOptions.Buildername(String name)Sets the value ofAzureDiskVolumeOptions.getName()AzureDiskVolumeOptions.BuilderreadOnly(Boolean readOnly)Sets the value ofAzureDiskVolumeOptions.getReadOnly()
-
-
-
Method Detail
-
cachingMode
@Stability(Stable) public AzureDiskVolumeOptions.Builder cachingMode(AzureDiskPersistentVolumeCachingMode cachingMode)
Sets the value ofAzureDiskVolumeOptions.getCachingMode()- Parameters:
cachingMode- Host Caching mode.- Returns:
this
-
fsType
@Stability(Stable) public AzureDiskVolumeOptions.Builder fsType(String fsType)
Sets the value ofAzureDiskVolumeOptions.getFsType()- Parameters:
fsType- Filesystem type to mount. Must be a filesystem type supported by the host operating system.- Returns:
this
-
kind
@Stability(Stable) public AzureDiskVolumeOptions.Builder kind(AzureDiskPersistentVolumeKind kind)
Sets the value ofAzureDiskVolumeOptions.getKind()- Parameters:
kind- Kind of disk.- Returns:
this
-
name
@Stability(Stable) public AzureDiskVolumeOptions.Builder name(String name)
Sets the value ofAzureDiskVolumeOptions.getName()- Parameters:
name- The volume name.- Returns:
this
-
readOnly
@Stability(Stable) public AzureDiskVolumeOptions.Builder readOnly(Boolean readOnly)
Sets the value ofAzureDiskVolumeOptions.getReadOnly()- Parameters:
readOnly- Force the ReadOnly setting in VolumeMounts.- Returns:
this
-
build
@Stability(Stable) public AzureDiskVolumeOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AzureDiskVolumeOptions>- Returns:
- a new instance of
AzureDiskVolumeOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-