Class GatewayProps.Builder
java.lang.Object
software.amazon.awscdk.services.mediaconnect.alpha.GatewayProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GatewayProps>
- Enclosing interface:
GatewayProps
@Stability(Experimental)
public static final class GatewayProps.Builder
extends Object
implements software.amazon.jsii.Builder<GatewayProps>
A builder for
GatewayProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.egressCidrBlocks(List<String> egressCidrBlocks) Sets the value ofGatewayProps.getEgressCidrBlocks()gatewayName(String gatewayName) Sets the value ofGatewayProps.getGatewayName()networks(List<? extends GatewayNetwork> networks) Sets the value ofGatewayProps.getNetworks()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
egressCidrBlocks
@Stability(Experimental) public GatewayProps.Builder egressCidrBlocks(List<String> egressCidrBlocks) Sets the value ofGatewayProps.getEgressCidrBlocks()- Parameters:
egressCidrBlocks- The range of IP addresses that are allowed to contribute content or initiate output requests for flows communicating with this gateway. This parameter is required. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.- Returns:
this
-
networks
@Stability(Experimental) public GatewayProps.Builder networks(List<? extends GatewayNetwork> networks) Sets the value ofGatewayProps.getNetworks()- Parameters:
networks- The list of networks in the gateway. This parameter is required. A gateway must have between 1 and 4 networks. Provide the initial set here; useaddNetwork()to add more (up to 4 total).- Returns:
this
-
gatewayName
Sets the value ofGatewayProps.getGatewayName()- Parameters:
gatewayName- The name of the gateway. This name can not be modified after the gateway is created.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GatewayProps>- Returns:
- a new instance of
GatewayProps - Throws:
NullPointerException- if any required attribute was not provided
-