Class CfnMountTargetProps.Builder
java.lang.Object
software.amazon.awscdk.services.efs.CfnMountTargetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMountTargetProps>
- Enclosing interface:
CfnMountTargetProps
@Stability(Stable)
public static final class CfnMountTargetProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMountTargetProps>
A builder for
CfnMountTargetProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.fileSystemId
(String fileSystemId) Sets the value ofCfnMountTargetProps.getFileSystemId()
Sets the value ofCfnMountTargetProps.getIpAddress()
securityGroups
(List<String> securityGroups) Sets the value ofCfnMountTargetProps.getSecurityGroups()
Sets the value ofCfnMountTargetProps.getSubnetId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fileSystemId
Sets the value ofCfnMountTargetProps.getFileSystemId()
- Parameters:
fileSystemId
- The ID of the file system for which to create the mount target. This parameter is required.- Returns:
this
-
securityGroups
Sets the value ofCfnMountTargetProps.getSecurityGroups()
- Parameters:
securityGroups
- Up to five VPC security group IDs, of the formsg-xxxxxxxx
. This parameter is required. These must be for the same VPC as subnet specified.- Returns:
this
-
subnetId
Sets the value ofCfnMountTargetProps.getSubnetId()
- Parameters:
subnetId
- The ID of the subnet to add the mount target in. This parameter is required. For file systems that use One Zone storage classes, use the subnet that is associated with the file system's Availability Zone.- Returns:
this
-
ipAddress
Sets the value ofCfnMountTargetProps.getIpAddress()
- Parameters:
ipAddress
- Valid IPv4 address within the address range of the specified subnet.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMountTargetProps>
- Returns:
- a new instance of
CfnMountTargetProps
- Throws:
NullPointerException
- if any required attribute was not provided
-