Package org.cdk8s.plus23.k8s
Class NfsVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus23.k8s.NfsVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NfsVolumeSource>
- Enclosing interface:
- NfsVolumeSource
@Stability(Stable) public static final class NfsVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<NfsVolumeSource>
A builder forNfsVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NfsVolumeSource
build()
Builds the configured instance.NfsVolumeSource.Builder
path(String path)
Sets the value ofNfsVolumeSource.getPath()
NfsVolumeSource.Builder
readOnly(Boolean readOnly)
Sets the value ofNfsVolumeSource.getReadOnly()
NfsVolumeSource.Builder
server(String server)
Sets the value ofNfsVolumeSource.getServer()
-
-
-
Method Detail
-
path
@Stability(Stable) public NfsVolumeSource.Builder path(String path)
Sets the value ofNfsVolumeSource.getPath()
- Parameters:
path
- Path that is exported by the NFS server. This parameter is required. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs- Returns:
this
-
server
@Stability(Stable) public NfsVolumeSource.Builder server(String server)
Sets the value ofNfsVolumeSource.getServer()
- Parameters:
server
- Server is the hostname or IP address of the NFS server. This parameter is required. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs- Returns:
this
-
readOnly
@Stability(Stable) public NfsVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofNfsVolumeSource.getReadOnly()
- Parameters:
readOnly
- ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs- Returns:
this
-
build
@Stability(Stable) public NfsVolumeSource build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<NfsVolumeSource>
- Returns:
- a new instance of
NfsVolumeSource
- Throws:
NullPointerException
- if any required attribute was not provided
-
-