Package org.cdk8s.plus24.k8s
Class AzureFileVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.AzureFileVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AzureFileVolumeSource>
- Enclosing interface:
- AzureFileVolumeSource
@Stability(Stable) public static final class AzureFileVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<AzureFileVolumeSource>
A builder forAzureFileVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AzureFileVolumeSource
build()
Builds the configured instance.AzureFileVolumeSource.Builder
readOnly(Boolean readOnly)
Sets the value ofAzureFileVolumeSource.getReadOnly()
AzureFileVolumeSource.Builder
secretName(String secretName)
Sets the value ofAzureFileVolumeSource.getSecretName()
AzureFileVolumeSource.Builder
shareName(String shareName)
Sets the value ofAzureFileVolumeSource.getShareName()
-
-
-
Method Detail
-
secretName
@Stability(Stable) public AzureFileVolumeSource.Builder secretName(String secretName)
Sets the value ofAzureFileVolumeSource.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 AzureFileVolumeSource.Builder shareName(String shareName)
Sets the value ofAzureFileVolumeSource.getShareName()
- Parameters:
shareName
- shareName is the azure share Name. This parameter is required.- Returns:
this
-
readOnly
@Stability(Stable) public AzureFileVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofAzureFileVolumeSource.getReadOnly()
- Parameters:
readOnly
- readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.- Returns:
this
-
build
@Stability(Stable) public AzureFileVolumeSource build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AzureFileVolumeSource>
- Returns:
- a new instance of
AzureFileVolumeSource
- Throws:
NullPointerException
- if any required attribute was not provided
-
-