Class CfnLocationEFSPropsMixin.Ec2ConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.datasync.CfnLocationEFSPropsMixin.Ec2ConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLocationEFSPropsMixin.Ec2ConfigProperty>
- Enclosing interface:
CfnLocationEFSPropsMixin.Ec2ConfigProperty
@Stability(Stable)
public static final class CfnLocationEFSPropsMixin.Ec2ConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLocationEFSPropsMixin.Ec2ConfigProperty>
A builder for
CfnLocationEFSPropsMixin.Ec2ConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.securityGroupArns(List<String> securityGroupArns) Sets the value ofCfnLocationEFSPropsMixin.Ec2ConfigProperty.getSecurityGroupArns()Sets the value ofCfnLocationEFSPropsMixin.Ec2ConfigProperty.getSubnetArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityGroupArns
@Stability(Stable) public CfnLocationEFSPropsMixin.Ec2ConfigProperty.Builder securityGroupArns(List<String> securityGroupArns) Sets the value ofCfnLocationEFSPropsMixin.Ec2ConfigProperty.getSecurityGroupArns()- Parameters:
securityGroupArns- Specifies the Amazon Resource Names (ARNs) of the security groups associated with an Amazon EFS file system's mount target.- Returns:
this
-
subnetArn
@Stability(Stable) public CfnLocationEFSPropsMixin.Ec2ConfigProperty.Builder subnetArn(String subnetArn) Sets the value ofCfnLocationEFSPropsMixin.Ec2ConfigProperty.getSubnetArn()- Parameters:
subnetArn- Specifies the ARN of a subnet where DataSync creates the network interfaces for managing traffic during your transfer. The subnet must be located:- In the same virtual private cloud (VPC) as the Amazon EFS file system.
- In the same Availability Zone as at least one mount target for the Amazon EFS file system.
You don't need to specify a subnet that includes a file system mount target.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLocationEFSPropsMixin.Ec2ConfigProperty>- Returns:
- a new instance of
CfnLocationEFSPropsMixin.Ec2ConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-