RouteTable.DefinitionStages.WithRoute Interface

public interface WithRoute

The stage of the route table definition allowing to add routes.

Method Summary

Modifier and Type Method and Description
Route.DefinitionStages.Blank<RouteTable.DefinitionStages.WithCreate> defineRoute(String name)

Begins the definition of a new route to add to the route table.

The definition must be completed with a call to attach()

RouteTable.DefinitionStages.WithCreate withRoute(String destinationAddressPrefix, RouteNextHopType nextHop)

Creates a non-virtual appliance route.

The name is generated automatically.

RouteTable.DefinitionStages.WithCreate withRouteViaVirtualAppliance(String destinationAddressPrefix, String ipAddress)

Creates a route via a virtual appliance.

Method Details

defineRoute

public Route.DefinitionStages.Blank defineRoute(String name)

Begins the definition of a new route to add to the route table.

The definition must be completed with a call to attach()

Parameters:

name - the name of the route

Returns:

the first stage of the definition

withRoute

public WithCreate withRoute(String destinationAddressPrefix, RouteNextHopType nextHop)

Creates a non-virtual appliance route.

The name is generated automatically.

Parameters:

destinationAddressPrefix - the destination address prefix, expressed in the CIDR notation, for the route to apply to
nextHop - the next hop type

Returns:

the next stage of the definition

withRouteViaVirtualAppliance

public WithCreate withRouteViaVirtualAppliance(String destinationAddressPrefix, String ipAddress)

Creates a route via a virtual appliance.

Parameters:

destinationAddressPrefix - the destination address prefix, expressed in the CIDR notation, for the route to apply to
ipAddress - the IP address of the virtual appliance to route the traffic through

Returns:

the next stage of the definition

Applies to