Class ClientVpnRouteOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.ClientVpnRouteOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClientVpnRouteOptions>
- Enclosing interface:
- ClientVpnRouteOptions
@Stability(Stable)
public static final class ClientVpnRouteOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ClientVpnRouteOptions>
A builder for
ClientVpnRouteOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofClientVpnRouteOptions.getCidr()description(String description) Sets the value ofClientVpnRouteOptions.getDescription()target(ClientVpnRouteTarget target) Sets the value ofClientVpnRouteOptions.getTarget()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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<ClientVpnRouteOptions>- Returns:
- a new instance of
ClientVpnRouteOptions - Throws:
NullPointerException- if any required attribute was not provided
-