VirtualNetworkGateway.DefinitionStages.WithNetwork Interface

public static interface VirtualNetworkGateway.DefinitionStages.WithNetwork

The stage of the virtual network gateway definition allowing to specify the virtual network.

Method Summary

Modifier and Type Method and Description
abstract WithGatewayType withExistingNetwork(Network network)

Associate an existing virtual network with the virtual network gateway.

abstract WithGatewayType withNewNetwork(Creatable<Network> creatable)

Create a new virtual network to associate with the virtual network gateway, based on the provided definition.

abstract WithGatewayType withNewNetwork(String addressSpaceCidr, String subnetAddressSpaceCidr)

Creates a new virtual network to associate with the virtual network gateway.

abstract WithGatewayType withNewNetwork(String name, String addressSpace, String subnetAddressSpaceCidr)

Creates a new virtual network to associate with the virtual network gateway.

Method Details

withExistingNetwork

public abstract VirtualNetworkGateway.DefinitionStages.WithGatewayType withExistingNetwork(Network network)

Associate an existing virtual network with the virtual network gateway.

Parameters:

network - an existing virtual network

Returns:

the next stage of the definition

withNewNetwork

public abstract VirtualNetworkGateway.DefinitionStages.WithGatewayType withNewNetwork(Creatable creatable)

Create a new virtual network to associate with the virtual network gateway, based on the provided definition.

Parameters:

creatable - a creatable definition for a new virtual network

Returns:

the next stage of the definition

withNewNetwork

public abstract VirtualNetworkGateway.DefinitionStages.WithGatewayType withNewNetwork(String addressSpaceCidr, String subnetAddressSpaceCidr)

Creates a new virtual network to associate with the virtual network gateway. the virtual network will be created in the same resource group and region as of parent virtual network gateway, it will be created with the specified address space and a default subnet for virtual network gateway.

Parameters:

addressSpaceCidr - the address space for the virtual network
subnetAddressSpaceCidr - the address space for the subnet

Returns:

the next stage of the definition

withNewNetwork

public abstract VirtualNetworkGateway.DefinitionStages.WithGatewayType withNewNetwork(String name, String addressSpace, String subnetAddressSpaceCidr)

Creates a new virtual network to associate with the virtual network gateway. the virtual network will be created in the same resource group and region as of parent virtual network gateway, it will be created with the specified address space and a subnet for virtual network gateway.

Parameters:

name - the name of the new virtual network
addressSpace - the address space for the virtual network
subnetAddressSpaceCidr - the address space for the subnet

Returns:

the next stage of the definition

Applies to