Package org.cdk8s.plus25.k8s
Class AzureDiskVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.AzureDiskVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AzureDiskVolumeSource>
- Enclosing interface:
- AzureDiskVolumeSource
@Stability(Stable) public static final class AzureDiskVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<AzureDiskVolumeSource>
A builder forAzureDiskVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AzureDiskVolumeSourcebuild()Builds the configured instance.AzureDiskVolumeSource.BuildercachingMode(String cachingMode)Sets the value ofAzureDiskVolumeSource.getCachingMode()AzureDiskVolumeSource.BuilderdiskName(String diskName)Sets the value ofAzureDiskVolumeSource.getDiskName()AzureDiskVolumeSource.BuilderdiskUri(String diskUri)Sets the value ofAzureDiskVolumeSource.getDiskUri()AzureDiskVolumeSource.BuilderfsType(String fsType)Sets the value ofAzureDiskVolumeSource.getFsType()AzureDiskVolumeSource.Builderkind(String kind)Sets the value ofAzureDiskVolumeSource.getKind()AzureDiskVolumeSource.BuilderreadOnly(Boolean readOnly)Sets the value ofAzureDiskVolumeSource.getReadOnly()
-
-
-
Method Detail
-
diskName
@Stability(Stable) public AzureDiskVolumeSource.Builder diskName(String diskName)
Sets the value ofAzureDiskVolumeSource.getDiskName()- Parameters:
diskName- diskName is the Name of the data disk in the blob storage. This parameter is required.- Returns:
this
-
diskUri
@Stability(Stable) public AzureDiskVolumeSource.Builder diskUri(String diskUri)
Sets the value ofAzureDiskVolumeSource.getDiskUri()- Parameters:
diskUri- diskURI is the URI of data disk in the blob storage. This parameter is required.- Returns:
this
-
cachingMode
@Stability(Stable) public AzureDiskVolumeSource.Builder cachingMode(String cachingMode)
Sets the value ofAzureDiskVolumeSource.getCachingMode()- Parameters:
cachingMode- cachingMode is the Host Caching mode: None, Read Only, Read Write.- Returns:
this
-
fsType
@Stability(Stable) public AzureDiskVolumeSource.Builder fsType(String fsType)
Sets the value ofAzureDiskVolumeSource.getFsType()- Parameters:
fsType- fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.- Returns:
this
-
kind
@Stability(Stable) public AzureDiskVolumeSource.Builder kind(String kind)
Sets the value ofAzureDiskVolumeSource.getKind()- Parameters:
kind- kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared- Returns:
this
-
readOnly
@Stability(Stable) public AzureDiskVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofAzureDiskVolumeSource.getReadOnly()- Parameters:
readOnly- readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.- Returns:
this
-
build
@Stability(Stable) public AzureDiskVolumeSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AzureDiskVolumeSource>- Returns:
- a new instance of
AzureDiskVolumeSource - Throws:
NullPointerException- if any required attribute was not provided
-
-