Class VpcInterfaceConfig.Builder
java.lang.Object
software.amazon.awscdk.services.mediaconnect.alpha.VpcInterfaceConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VpcInterfaceConfig>
- Enclosing interface:
VpcInterfaceConfig
@Stability(Experimental)
public static final class VpcInterfaceConfig.Builder
extends Object
implements software.amazon.jsii.Builder<VpcInterfaceConfig>
A builder for
VpcInterfaceConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofVpcInterfaceConfig.getName()networkInterfaceIds(List<String> networkInterfaceIds) Sets the value ofVpcInterfaceConfig.getNetworkInterfaceIds()networkInterfaceType(NetworkInterface networkInterfaceType) Sets the value ofVpcInterfaceConfig.getNetworkInterfaceType()Sets the value ofVpcInterfaceConfig.getRole()securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofVpcInterfaceConfig.getSecurityGroups()Sets the value ofVpcInterfaceConfig.getSubnet()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofVpcInterfaceConfig.getName()- Parameters:
name- Unique name for this VPC interface within the flow. This parameter is required. Cannot be changed after creation.- Returns:
this
-
role
Sets the value ofVpcInterfaceConfig.getRole()- Parameters:
role- IAM role that MediaConnect assumes to create ENIs in your account. This parameter is required.- Returns:
this
-
securityGroups
@Stability(Experimental) public VpcInterfaceConfig.Builder securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofVpcInterfaceConfig.getSecurityGroups()- Parameters:
securityGroups- Security groups to apply to the ENI. This parameter is required.- Returns:
this
-
subnet
Sets the value ofVpcInterfaceConfig.getSubnet()- Parameters:
subnet- Subnet where the ENI is created. This parameter is required. Must be in the same Availability Zone as the flow.- Returns:
this
-
networkInterfaceIds
@Stability(Experimental) public VpcInterfaceConfig.Builder networkInterfaceIds(List<String> networkInterfaceIds) Sets the value ofVpcInterfaceConfig.getNetworkInterfaceIds()- Parameters:
networkInterfaceIds- IDs of the network interfaces. Set this when importing existing ENIs viaVpcInterface.fromNetworkInterfaces(); leave unset to have MediaConnect create them.- Returns:
this
-
networkInterfaceType
@Stability(Experimental) public VpcInterfaceConfig.Builder networkInterfaceType(NetworkInterface networkInterfaceType) Sets the value ofVpcInterfaceConfig.getNetworkInterfaceType()- Parameters:
networkInterfaceType- The type of network interface. UseEFAfor CDI workflows.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VpcInterfaceConfig>- Returns:
- a new instance of
VpcInterfaceConfig - Throws:
NullPointerException- if any required attribute was not provided
-