Package org.cdk8s.plus25.k8s
Class NfsVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus25.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 NfsVolumeSourcebuild()Builds the configured instance.NfsVolumeSource.Builderpath(String path)Sets the value ofNfsVolumeSource.getPath()NfsVolumeSource.BuilderreadOnly(Boolean readOnly)Sets the value ofNfsVolumeSource.getReadOnly()NfsVolumeSource.Builderserver(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:
buildin interfacesoftware.amazon.jsii.Builder<NfsVolumeSource>- Returns:
- a new instance of
NfsVolumeSource - Throws:
NullPointerException- if any required attribute was not provided
-
-