Class GatewayVpcEndpointOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.GatewayVpcEndpointOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GatewayVpcEndpointOptions>
- Enclosing interface:
GatewayVpcEndpointOptions
@Stability(Stable)
public static final class GatewayVpcEndpointOptions.Builder
extends Object
implements software.amazon.jsii.Builder<GatewayVpcEndpointOptions>
A builder for
GatewayVpcEndpointOptions
-
Constructor Summary
-
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()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
service
@Stability(Stable) public GatewayVpcEndpointOptions.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 GatewayVpcEndpointOptions.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:
build
in interfacesoftware.amazon.jsii.Builder<GatewayVpcEndpointOptions>
- Returns:
- a new instance of
GatewayVpcEndpointOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-