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 Details

    • Builder

      public Builder()
  • Method Details

    • fileSystemId

      @Stability(Stable) public CfnMountTargetProps.Builder fileSystemId(String fileSystemId)
      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<String> securityGroups)
      Parameters:
      securityGroups - VPC security group IDs, of the form sg-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

      @Stability(Stable) public CfnMountTargetProps.Builder subnetId(String subnetId)
      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 the IpAddressType .
      Returns:
      this
    • ipAddress

      @Stability(Stable) public CfnMountTargetProps.Builder ipAddress(String ipAddress)
      Parameters:
      ipAddress - If the IpAddressType for the mount target is IPv4 ( IPV4_ONLY or DUAL_STACK ), then specify the IPv4 address to use. If you do not specify an IpAddress , then Amazon EFS selects an unused IP address from the subnet specified for SubnetId .
      Returns:
      this
    • ipAddressType

      @Stability(Stable) public CfnMountTargetProps.Builder ipAddressType(String ipAddressType)
      Parameters:
      ipAddressType - The IP address type for the mount target. The possible values are IPV4_ONLY (only IPv4 addresses), IPV6_ONLY (only IPv6 addresses), and DUAL_STACK (dual-stack, both IPv4 and IPv6 addresses). If you don’t specify an IpAddressType , then IPV4_ONLY is used.

      The IPAddressType must match the IP type of the subnet. Additionally, the IPAddressType parameter overrides the value set as the default IP address for the subnet in the VPC. For example, if the IPAddressType is IPV4_ONLY and AssignIpv6AddressOnCreation is true , then IPv4 is used for the mount target. For more information, see Modify the IP addressing attributes of your subnet .

      Returns:
      this
    • ipv6Address

      @Stability(Stable) public CfnMountTargetProps.Builder ipv6Address(String ipv6Address)
      Parameters:
      ipv6Address - If the IPAddressType for the mount target is IPv6 ( IPV6_ONLY or DUAL_STACK ), then specify the IPv6 address to use. If you do not specify an Ipv6Address , then Amazon EFS selects an unused IP address from the subnet specified for SubnetId .
      Returns:
      this
    • build

      @Stability(Stable) public CfnMountTargetProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnMountTargetProps>
      Returns:
      a new instance of CfnMountTargetProps
      Throws:
      NullPointerException - if any required attribute was not provided