Class CfnMountTargetMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.efs.CfnMountTargetMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMountTargetMixinProps>
- Enclosing interface:
CfnMountTargetMixinProps
@Stability(Stable)
public static final class CfnMountTargetMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMountTargetMixinProps>
A builder for
CfnMountTargetMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.fileSystemId(String fileSystemId) Sets the value ofCfnMountTargetMixinProps.getFileSystemId()fileSystemId(IFileSystemRef fileSystemId) Sets the value ofCfnMountTargetMixinProps.getFileSystemId()Sets the value ofCfnMountTargetMixinProps.getIpAddress()ipAddressType(String ipAddressType) Sets the value ofCfnMountTargetMixinProps.getIpAddressType()ipv6Address(String ipv6Address) Sets the value ofCfnMountTargetMixinProps.getIpv6Address()securityGroups(List<? extends Object> securityGroups) Sets the value ofCfnMountTargetMixinProps.getSecurityGroups()Sets the value ofCfnMountTargetMixinProps.getSubnetId()subnetId(ISubnetRef subnetId) Sets the value ofCfnMountTargetMixinProps.getSubnetId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fileSystemId
Sets the value ofCfnMountTargetMixinProps.getFileSystemId()- Parameters:
fileSystemId- The ID of the file system for which to create the mount target.- Returns:
this
-
fileSystemId
@Stability(Stable) public CfnMountTargetMixinProps.Builder fileSystemId(IFileSystemRef fileSystemId) Sets the value ofCfnMountTargetMixinProps.getFileSystemId()- Parameters:
fileSystemId- The ID of the file system for which to create the mount target.- Returns:
this
-
ipAddress
Sets the value ofCfnMountTargetMixinProps.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 ofCfnMountTargetMixinProps.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 ofCfnMountTargetMixinProps.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
-
securityGroups
@Stability(Stable) public CfnMountTargetMixinProps.Builder securityGroups(List<? extends Object> securityGroups) Sets the value ofCfnMountTargetMixinProps.getSecurityGroups()- Parameters:
securityGroups- VPC security group IDs, of the formsg-xxxxxxxx. 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 ofCfnMountTargetMixinProps.getSubnetId()- Parameters:
subnetId- The ID of the subnet to add the mount target in. 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 ofCfnMountTargetMixinProps.getSubnetId()- Parameters:
subnetId- The ID of the subnet to add the mount target in. 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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMountTargetMixinProps>- Returns:
- a new instance of
CfnMountTargetMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-