public static final class GatewayVpcEndpointOptions.Builder
extends java.lang.Object
GatewayVpcEndpointOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
GatewayVpcEndpointOptions |
build()
Builds the configured instance.
|
GatewayVpcEndpointOptions.Builder |
service(IGatewayVpcEndpointService service)
Sets the value of
GatewayVpcEndpointOptions.getService() |
GatewayVpcEndpointOptions.Builder |
subnets(java.util.List<? extends SubnetSelection> subnets)
Sets the value of
GatewayVpcEndpointOptions.getSubnets() |
public GatewayVpcEndpointOptions.Builder service(IGatewayVpcEndpointService service)
GatewayVpcEndpointOptions.getService()
service
- The service to use for this gateway VPC endpoint. This parameter is required.this
public GatewayVpcEndpointOptions.Builder subnets(java.util.List<? extends SubnetSelection> subnets)
GatewayVpcEndpointOptions.getSubnets()
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.this
public GatewayVpcEndpointOptions build()
GatewayVpcEndpointOptions
java.lang.NullPointerException
- if any required attribute was not provided