Class CfnFlow.VpcInterfaceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.mediaconnect.CfnFlow.VpcInterfaceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlow.VpcInterfaceProperty>
- Enclosing interface:
CfnFlow.VpcInterfaceProperty
@Stability(Stable)
public static final class CfnFlow.VpcInterfaceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlow.VpcInterfaceProperty>
A builder for
CfnFlow.VpcInterfaceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnFlow.VpcInterfaceProperty.getName()networkInterfaceIds(List<String> networkInterfaceIds) Sets the value ofCfnFlow.VpcInterfaceProperty.getNetworkInterfaceIds()networkInterfaceType(String networkInterfaceType) Sets the value ofCfnFlow.VpcInterfaceProperty.getNetworkInterfaceType()Sets the value ofCfnFlow.VpcInterfaceProperty.getRoleArn()securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnFlow.VpcInterfaceProperty.getSecurityGroupIds()Sets the value ofCfnFlow.VpcInterfaceProperty.getSubnetId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnFlow.VpcInterfaceProperty.getName()- Parameters:
name- Immutable and has to be a unique against other VpcInterfaces in this Flow. This parameter is required.- Returns:
this
-
roleArn
Sets the value ofCfnFlow.VpcInterfaceProperty.getRoleArn()- Parameters:
roleArn- A role Arn MediaConnect can assume to create ENIs in your account. This parameter is required.- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnFlow.VpcInterfaceProperty.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnFlow.VpcInterfaceProperty.getSecurityGroupIds()- Parameters:
securityGroupIds- Security Group IDs to be used on ENI. This parameter is required.- Returns:
this
-
subnetId
Sets the value ofCfnFlow.VpcInterfaceProperty.getSubnetId()- Parameters:
subnetId- Subnet must be in the AZ of the Flow. This parameter is required.- Returns:
this
-
networkInterfaceIds
@Stability(Stable) public CfnFlow.VpcInterfaceProperty.Builder networkInterfaceIds(List<String> networkInterfaceIds) Sets the value ofCfnFlow.VpcInterfaceProperty.getNetworkInterfaceIds()- Parameters:
networkInterfaceIds- IDs of the network interfaces created in customer's account by MediaConnect .- Returns:
this
-
networkInterfaceType
@Stability(Stable) public CfnFlow.VpcInterfaceProperty.Builder networkInterfaceType(String networkInterfaceType) Sets the value ofCfnFlow.VpcInterfaceProperty.getNetworkInterfaceType()- Parameters:
networkInterfaceType- The type of network interface.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFlow.VpcInterfaceProperty>- Returns:
- a new instance of
CfnFlow.VpcInterfaceProperty - Throws:
NullPointerException- if any required attribute was not provided
-