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- The name for the VPC interface. This parameter is required. This name must be unique within the flow.- Returns:
this
-
roleArn
Sets the value ofCfnFlow.VpcInterfaceProperty.getRoleArn()- Parameters:
roleArn- The ARN of the IAM role that you created when you set up MediaConnect as a trusted service. 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- A virtual firewall to control inbound and outbound traffic. This parameter is required.- Returns:
this
-
subnetId
Sets the value ofCfnFlow.VpcInterfaceProperty.getSubnetId()- Parameters:
subnetId- The subnet IDs that you specified for your VPC interface. This parameter is required. A subnet ID is a range of IP addresses in your VPC. When you create your VPC, you specify a range of IPv4 addresses for the VPC in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. This is the primary CIDR block for your VPC. When you create a subnet for your VPC, you specify the CIDR block for the subnet, which is a subset of the VPC CIDR block.The subnets that you use across all VPC interfaces on the flow must be in the same Availability Zone as the flow.
- Returns:
this
-
networkInterfaceIds
@Stability(Stable) public CfnFlow.VpcInterfaceProperty.Builder networkInterfaceIds(List<String> networkInterfaceIds) Sets the value ofCfnFlow.VpcInterfaceProperty.getNetworkInterfaceIds()- Parameters:
networkInterfaceIds- The IDs of the network interfaces that MediaConnect created in your account.- 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
-