RouteTable.DefinitionStages.WithRoute Interface

public static interface RouteTable.DefinitionStages.WithRoute

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

Method Summary

Modifier and Type Method and Description
abstract Blank<WithCreate> defineRoute(String name)

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

abstract WithCreate withRoute(String destinationAddressPrefix, RouteNextHopType nextHop)

Creates a non-virtual appliance route.

abstract WithCreate withRouteViaVirtualAppliance(String destinationAddressPrefix, String ipAddress)

Creates a route via a virtual appliance.

Method Details

defineRoute

public abstract 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 Route.DefinitionStages.WithAttach#attach()

Parameters:

name - the name of the route

Returns:

the first stage of the definition

withRoute

public abstract RouteTable.DefinitionStages.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 abstract RouteTable.DefinitionStages.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