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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.fileSystemId(String fileSystemId) Sets the value ofCfnMountTargetProps.getFileSystemId()fileSystemId(IFileSystemRef fileSystemId) Sets the value ofCfnMountTargetProps.getFileSystemId()Sets the value ofCfnMountTargetProps.getIpAddress()ipAddressType(String ipAddressType) Sets the value ofCfnMountTargetProps.getIpAddressType()ipv6Address(String ipv6Address) Sets the value ofCfnMountTargetProps.getIpv6Address()securityGroups(List<? extends Object> securityGroups) Sets the value ofCfnMountTargetProps.getSecurityGroups()Sets the value ofCfnMountTargetProps.getSubnetId()subnetId(ISubnetRef subnetId) 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
-
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
@Stability(Stable) public CfnMountTargetProps.Builder securityGroups(List<? extends Object> securityGroups) Sets the value ofCfnMountTargetProps.getSecurityGroups()- Parameters:
securityGroups- VPC security group IDs, of the formsg-xxxxxxxx. This parameter is required. These must be for the same VPC as the subnet specified. The maximum number of security groups depends on account quota. For more information, see Amazon VPC Quotas in the Amazon VPC User Guide (see the Security Groups table). If you don't specify a security group, then Amazon EFS uses the default security group for the subnet's VPC.- 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 One Zone file systems, use the subnet that is associated with the file system's Availability Zone. The subnet type must be the same type as theIpAddressType.- 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 One Zone file systems, use the subnet that is associated with the file system's Availability Zone. The subnet type must be the same type as theIpAddressType.- Returns:
this
-
ipAddress
Sets the value ofCfnMountTargetProps.getIpAddress()- Parameters:
ipAddress- If theIpAddressTypefor the mount target is IPv4 (IPV4_ONLYorDUAL_STACK), then specify the IPv4 address to use. If you do not specify anIpAddress, then Amazon EFS selects an unused IP address from the subnet specified forSubnetId.- Returns:
this
-
ipAddressType
Sets the value ofCfnMountTargetProps.getIpAddressType()- Parameters:
ipAddressType- The IP address type for the mount target. The possible values areIPV4_ONLY(only IPv4 addresses),IPV6_ONLY(only IPv6 addresses), andDUAL_STACK(dual-stack, both IPv4 and IPv6 addresses). If you don’t specify anIpAddressType, thenIPV4_ONLYis used.The
IPAddressTypemust match the IP type of the subnet. Additionally, theIPAddressTypeparameter overrides the value set as the default IP address for the subnet in the VPC. For example, if theIPAddressTypeisIPV4_ONLYandAssignIpv6AddressOnCreationistrue, then IPv4 is used for the mount target. For more information, see Modify the IP addressing attributes of your subnet .- Returns:
this
-
ipv6Address
Sets the value ofCfnMountTargetProps.getIpv6Address()- Parameters:
ipv6Address- If theIPAddressTypefor the mount target is IPv6 (IPV6_ONLYorDUAL_STACK), then specify the IPv6 address to use. If you do not specify anIpv6Address, then Amazon EFS selects an unused IP address from the subnet specified forSubnetId.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMountTargetProps>- Returns:
- a new instance of
CfnMountTargetProps - Throws:
NullPointerException- if any required attribute was not provided
-