Class ClientVpnRouteProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.ClientVpnRouteProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClientVpnRouteProps>
- Enclosing interface:
ClientVpnRouteProps
@Stability(Stable)
public static final class ClientVpnRouteProps.Builder
extends Object
implements software.amazon.jsii.Builder<ClientVpnRouteProps>
A builder for
ClientVpnRouteProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofClientVpnRouteOptions.getCidr()clientVpnEndpoint(IClientVpnEndpoint clientVpnEndpoint) Sets the value ofClientVpnRouteProps.getClientVpnEndpoint()description(String description) Sets the value ofClientVpnRouteOptions.getDescription()target(ClientVpnRouteTarget target) Sets the value ofClientVpnRouteOptions.getTarget()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientVpnEndpoint
@Stability(Stable) public ClientVpnRouteProps.Builder clientVpnEndpoint(IClientVpnEndpoint clientVpnEndpoint) Sets the value ofClientVpnRouteProps.getClientVpnEndpoint()- Parameters:
clientVpnEndpoint- The client VPN endpoint to which to add the route.- Returns:
this
-
cidr
Sets the value ofClientVpnRouteOptions.getCidr()- Parameters:
cidr- The IPv4 address range, in CIDR notation, of the route destination. This parameter is required. For example:- To add a route for Internet access, enter 0.0.0.0/0
- To add a route for a peered VPC, enter the peered VPC's IPv4 CIDR range
- To add a route for an on-premises network, enter the AWS Site-to-Site VPN connection's IPv4 CIDR range
- To add a route for the local network, enter the client CIDR range
- Returns:
this
-
target
Sets the value ofClientVpnRouteOptions.getTarget()- Parameters:
target- The target for the route. This parameter is required.- Returns:
this
-
description
Sets the value ofClientVpnRouteOptions.getDescription()- Parameters:
description- A brief description of the authorization rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ClientVpnRouteProps>- Returns:
- a new instance of
ClientVpnRouteProps - Throws:
NullPointerException- if any required attribute was not provided
-