Package org.cdk8s.plus25.k8s
Class AzureFilePersistentVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.AzureFilePersistentVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AzureFilePersistentVolumeSource>
- Enclosing interface:
- AzureFilePersistentVolumeSource
@Stability(Stable) public static final class AzureFilePersistentVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<AzureFilePersistentVolumeSource>
A builder forAzureFilePersistentVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AzureFilePersistentVolumeSourcebuild()Builds the configured instance.AzureFilePersistentVolumeSource.BuilderreadOnly(Boolean readOnly)Sets the value ofAzureFilePersistentVolumeSource.getReadOnly()AzureFilePersistentVolumeSource.BuildersecretName(String secretName)Sets the value ofAzureFilePersistentVolumeSource.getSecretName()AzureFilePersistentVolumeSource.BuildersecretNamespace(String secretNamespace)Sets the value ofAzureFilePersistentVolumeSource.getSecretNamespace()AzureFilePersistentVolumeSource.BuildershareName(String shareName)Sets the value ofAzureFilePersistentVolumeSource.getShareName()
-
-
-
Method Detail
-
secretName
@Stability(Stable) public AzureFilePersistentVolumeSource.Builder secretName(String secretName)
Sets the value ofAzureFilePersistentVolumeSource.getSecretName()- Parameters:
secretName- secretName is the name of secret that contains Azure Storage Account Name and Key. This parameter is required.- Returns:
this
-
shareName
@Stability(Stable) public AzureFilePersistentVolumeSource.Builder shareName(String shareName)
Sets the value ofAzureFilePersistentVolumeSource.getShareName()- Parameters:
shareName- shareName is the azure Share Name. This parameter is required.- Returns:
this
-
readOnly
@Stability(Stable) public AzureFilePersistentVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofAzureFilePersistentVolumeSource.getReadOnly()- Parameters:
readOnly- readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.- Returns:
this
-
secretNamespace
@Stability(Stable) public AzureFilePersistentVolumeSource.Builder secretNamespace(String secretNamespace)
Sets the value ofAzureFilePersistentVolumeSource.getSecretNamespace()- Parameters:
secretNamespace- secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod.- Returns:
this
-
build
@Stability(Stable) public AzureFilePersistentVolumeSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AzureFilePersistentVolumeSource>- Returns:
- a new instance of
AzureFilePersistentVolumeSource - Throws:
NullPointerException- if any required attribute was not provided
-
-