Class GatewayVpcEndpointProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.GatewayVpcEndpointProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GatewayVpcEndpointProps>
- Enclosing interface:
- GatewayVpcEndpointProps
@Stability(Stable)
public static final class GatewayVpcEndpointProps.Builder
extends Object
implements software.amazon.jsii.Builder<GatewayVpcEndpointProps>
A builder for
GatewayVpcEndpointProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.service(IGatewayVpcEndpointService service) Sets the value ofGatewayVpcEndpointOptions.getService()subnets(List<? extends SubnetSelection> subnets) Sets the value ofGatewayVpcEndpointOptions.getSubnets()Sets the value ofGatewayVpcEndpointProps.getVpc()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
vpc
Sets the value ofGatewayVpcEndpointProps.getVpc()- Parameters:
vpc- The VPC network in which the gateway endpoint will be used. This parameter is required.- Returns:
this
-
service
@Stability(Stable) public GatewayVpcEndpointProps.Builder service(IGatewayVpcEndpointService service) Sets the value ofGatewayVpcEndpointOptions.getService()- Parameters:
service- The service to use for this gateway VPC endpoint. This parameter is required.- Returns:
this
-
subnets
@Stability(Stable) public GatewayVpcEndpointProps.Builder subnets(List<? extends SubnetSelection> subnets) Sets the value ofGatewayVpcEndpointOptions.getSubnets()- Parameters:
subnets- Where to add endpoint routing. By default, this endpoint will be routable from all subnets in the VPC. Specify a list of subnet selection objects here to be more specific.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GatewayVpcEndpointProps>- Returns:
- a new instance of
GatewayVpcEndpointProps - Throws:
NullPointerException- if any required attribute was not provided
-