Class CfnAccessPoint.RootDirectoryProperty.Builder
java.lang.Object
software.amazon.awscdk.services.efs.CfnAccessPoint.RootDirectoryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAccessPoint.RootDirectoryProperty>
- Enclosing interface:
CfnAccessPoint.RootDirectoryProperty
@Stability(Stable)
public static final class CfnAccessPoint.RootDirectoryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAccessPoint.RootDirectoryProperty>
A builder for
CfnAccessPoint.RootDirectoryProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.creationInfo
(IResolvable creationInfo) Sets the value ofCfnAccessPoint.RootDirectoryProperty.getCreationInfo()
creationInfo
(CfnAccessPoint.CreationInfoProperty creationInfo) Sets the value ofCfnAccessPoint.RootDirectoryProperty.getCreationInfo()
Sets the value ofCfnAccessPoint.RootDirectoryProperty.getPath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
creationInfo
@Stability(Stable) public CfnAccessPoint.RootDirectoryProperty.Builder creationInfo(IResolvable creationInfo) Sets the value ofCfnAccessPoint.RootDirectoryProperty.getCreationInfo()
- Parameters:
creationInfo
- (Optional) Specifies the POSIX IDs and permissions to apply to the access point'sRootDirectory
. If theRootDirectory
>Path
specified does not exist, EFS creates the root directory using theCreationInfo
settings when a client connects to an access point. When specifying theCreationInfo
, you must provide values for all properties.If you do not provide
CreationInfo
and the specifiedRootDirectory
>Path
does not exist, attempts to mount the file system using the access point will fail.- Returns:
this
-
creationInfo
@Stability(Stable) public CfnAccessPoint.RootDirectoryProperty.Builder creationInfo(CfnAccessPoint.CreationInfoProperty creationInfo) Sets the value ofCfnAccessPoint.RootDirectoryProperty.getCreationInfo()
- Parameters:
creationInfo
- (Optional) Specifies the POSIX IDs and permissions to apply to the access point'sRootDirectory
. If theRootDirectory
>Path
specified does not exist, EFS creates the root directory using theCreationInfo
settings when a client connects to an access point. When specifying theCreationInfo
, you must provide values for all properties.If you do not provide
CreationInfo
and the specifiedRootDirectory
>Path
does not exist, attempts to mount the file system using the access point will fail.- Returns:
this
-
path
Sets the value ofCfnAccessPoint.RootDirectoryProperty.getPath()
- Parameters:
path
- Specifies the path on the EFS file system to expose as the root directory to NFS clients using the access point to access the EFS file system. A path can have up to four subdirectories. If the specified path does not exist, you are required to provide theCreationInfo
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAccessPoint.RootDirectoryProperty>
- Returns:
- a new instance of
CfnAccessPoint.RootDirectoryProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-