Class VpcInterfaceDefineProps.Builder
java.lang.Object
software.amazon.awscdk.services.mediaconnect.alpha.VpcInterfaceDefineProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VpcInterfaceDefineProps>
- Enclosing interface:
VpcInterfaceDefineProps
@Stability(Experimental)
public static final class VpcInterfaceDefineProps.Builder
extends Object
implements software.amazon.jsii.Builder<VpcInterfaceDefineProps>
A builder for
VpcInterfaceDefineProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.networkInterfaceType(NetworkInterface networkInterfaceType) Sets the value ofVpcInterfaceDefineProps.getNetworkInterfaceType()Sets the value ofVpcInterfaceDefineProps.getRole()securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofVpcInterfaceDefineProps.getSecurityGroups()Sets the value ofVpcInterfaceDefineProps.getSubnet()vpcInterfaceName(String vpcInterfaceName) Sets the value ofVpcInterfaceDefineProps.getVpcInterfaceName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
role
Sets the value ofVpcInterfaceDefineProps.getRole()- Parameters:
role- IAM role that MediaConnect assumes to create ENIs in your account. This parameter is required.- Returns:
this
-
securityGroups
@Stability(Experimental) public VpcInterfaceDefineProps.Builder securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofVpcInterfaceDefineProps.getSecurityGroups()- Parameters:
securityGroups- Security groups to apply to the ENI. This parameter is required.- Returns:
this
-
subnet
Sets the value ofVpcInterfaceDefineProps.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
-
vpcInterfaceName
@Stability(Experimental) public VpcInterfaceDefineProps.Builder vpcInterfaceName(String vpcInterfaceName) Sets the value ofVpcInterfaceDefineProps.getVpcInterfaceName()- Parameters:
vpcInterfaceName- Unique name for this VPC interface within the flow. This parameter is required. Cannot be changed after creation.- Returns:
this
-
networkInterfaceType
@Stability(Experimental) public VpcInterfaceDefineProps.Builder networkInterfaceType(NetworkInterface networkInterfaceType) Sets the value ofVpcInterfaceDefineProps.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<VpcInterfaceDefineProps>- Returns:
- a new instance of
VpcInterfaceDefineProps - Throws:
NullPointerException- if any required attribute was not provided
-