Class AccessPointOptions.Builder
java.lang.Object
software.amazon.awscdk.services.efs.AccessPointOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AccessPointOptions>
- Enclosing interface:
AccessPointOptions
@Stability(Stable)
public static final class AccessPointOptions.Builder
extends Object
implements software.amazon.jsii.Builder<AccessPointOptions>
A builder for
AccessPointOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.clientToken
(String clientToken) Sets the value ofAccessPointOptions.getClientToken()
Sets the value ofAccessPointOptions.getCreateAcl()
Sets the value ofAccessPointOptions.getPath()
Sets the value ofAccessPointOptions.getPosixUser()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientToken
Sets the value ofAccessPointOptions.getClientToken()
- Parameters:
clientToken
- The opaque string specified in the request to ensure idempotent creation.- Returns:
this
-
createAcl
Sets the value ofAccessPointOptions.getCreateAcl()
- Parameters:
createAcl
- Specifies the POSIX IDs and permissions to apply when creating the access point's root directory. If the root directory specified bypath
does not exist, EFS creates the root directory and applies the permissions specified here. If the specifiedpath
does not exist, you must specifycreateAcl
.- Returns:
this
-
path
Sets the value ofAccessPointOptions.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.- Returns:
this
-
posixUser
Sets the value ofAccessPointOptions.getPosixUser()
- Parameters:
posixUser
- The full POSIX identity, including the user ID, group ID, and any secondary group IDs, on the access point that is used for all file system operations performed by NFS clients using the access point. Specify this to enforce a user identity using an access point.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AccessPointOptions>
- Returns:
- a new instance of
AccessPointOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-