Class CfnFlowVpcInterfaceProps.Builder
java.lang.Object
software.amazon.awscdk.services.mediaconnect.CfnFlowVpcInterfaceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlowVpcInterfaceProps>
- Enclosing interface:
CfnFlowVpcInterfaceProps
@Stability(Stable)
public static final class CfnFlowVpcInterfaceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlowVpcInterfaceProps>
A builder for
CfnFlowVpcInterfaceProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnFlowVpcInterfaceProps.getFlowArn()Sets the value ofCfnFlowVpcInterfaceProps.getName()Sets the value ofCfnFlowVpcInterfaceProps.getRoleArn()securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnFlowVpcInterfaceProps.getSecurityGroupIds()Sets the value ofCfnFlowVpcInterfaceProps.getSubnetId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
flowArn
Sets the value ofCfnFlowVpcInterfaceProps.getFlowArn()- Parameters:
flowArn- The Amazon Resource Name (ARN) of the flow. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnFlowVpcInterfaceProps.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 ofCfnFlowVpcInterfaceProps.getRoleArn()- Parameters:
roleArn- The Amazon Resource Name (ARN) of the role that you created when you set up MediaConnect as a trusted service. This parameter is required.- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnFlowVpcInterfaceProps.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnFlowVpcInterfaceProps.getSecurityGroupIds()- Parameters:
securityGroupIds- A virtual firewall to control inbound and outbound traffic. This parameter is required.- Returns:
this
-
subnetId
Sets the value ofCfnFlowVpcInterfaceProps.getSubnetId()- Parameters:
subnetId- The subnet IDs that you want to use for your VPC interface. This parameter is required. 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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFlowVpcInterfaceProps>- Returns:
- a new instance of
CfnFlowVpcInterfaceProps - Throws:
NullPointerException- if any required attribute was not provided
-