Package org.cdk8s.plus25
Class NfsVolumeOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus25.NfsVolumeOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NfsVolumeOptions>
- Enclosing interface:
- NfsVolumeOptions
@Stability(Stable) public static final class NfsVolumeOptions.Builder extends Object implements software.amazon.jsii.Builder<NfsVolumeOptions>
A builder forNfsVolumeOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NfsVolumeOptionsbuild()Builds the configured instance.NfsVolumeOptions.Builderpath(String path)Sets the value ofNfsVolumeOptions.getPath()NfsVolumeOptions.BuilderreadOnly(Boolean readOnly)Sets the value ofNfsVolumeOptions.getReadOnly()NfsVolumeOptions.Builderserver(String server)Sets the value ofNfsVolumeOptions.getServer()
-
-
-
Method Detail
-
path
@Stability(Stable) public NfsVolumeOptions.Builder path(String path)
Sets the value ofNfsVolumeOptions.getPath()- Parameters:
path- Path that is exported by the NFS server. This parameter is required.- Returns:
this
-
server
@Stability(Stable) public NfsVolumeOptions.Builder server(String server)
Sets the value ofNfsVolumeOptions.getServer()- Parameters:
server- Server is the hostname or IP address of the NFS server. This parameter is required.- Returns:
this
-
readOnly
@Stability(Stable) public NfsVolumeOptions.Builder readOnly(Boolean readOnly)
Sets the value ofNfsVolumeOptions.getReadOnly()- Parameters:
readOnly- If set to true, will force the NFS export to be mounted with read-only permissions.- Returns:
this
-
build
@Stability(Stable) public NfsVolumeOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NfsVolumeOptions>- Returns:
- a new instance of
NfsVolumeOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-