Class CfnFileSystem.ClientConfigurationsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.fsx.CfnFileSystem.ClientConfigurationsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFileSystem.ClientConfigurationsProperty>
- Enclosing interface:
CfnFileSystem.ClientConfigurationsProperty
@Stability(Stable)
public static final class CfnFileSystem.ClientConfigurationsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFileSystem.ClientConfigurationsProperty>
A builder for
CfnFileSystem.ClientConfigurationsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnFileSystem.ClientConfigurationsProperty.getClients()
Sets the value ofCfnFileSystem.ClientConfigurationsProperty.getOptions()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clients
@Stability(Stable) public CfnFileSystem.ClientConfigurationsProperty.Builder clients(String clients) Sets the value ofCfnFileSystem.ClientConfigurationsProperty.getClients()
- Parameters:
clients
- A value that specifies who can mount the file system. You can provide a wildcard character (*
), an IP address (0.0.0.0
), or a CIDR address (192.0.2.0/24
). By default, Amazon FSx uses the wildcard character when specifying the client.- Returns:
this
-
options
@Stability(Stable) public CfnFileSystem.ClientConfigurationsProperty.Builder options(List<String> options) Sets the value ofCfnFileSystem.ClientConfigurationsProperty.getOptions()
- Parameters:
options
- The options to use when mounting the file system. For a list of options that you can use with Network File System (NFS), see the exports(5) - Linux man page . When choosing your options, consider the following:crossmnt
is used by default. If you don't specifycrossmnt
when changing the client configuration, you won't be able to see or access snapshots in your file system's snapshot directory.sync
is used by default. If you instead specifyasync
, the system acknowledges writes before writing to disk. If the system crashes before the writes are finished, you lose the unwritten data.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFileSystem.ClientConfigurationsProperty>
- Returns:
- a new instance of
CfnFileSystem.ClientConfigurationsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-