NetworkInterface.DefinitionStages.WithPrimaryNetwork Interface

public static interface NetworkInterface.DefinitionStages.WithPrimaryNetwork

The stage of the network interface definition allowing to specify the virtual network for primary IP configuration.

Method Summary

Modifier and Type Method and Description
abstract WithPrimaryNetworkSubnet withExistingPrimaryNetwork(Network network)

Associate an existing virtual network with the network interface's primary IP configuration.

abstract WithPrimaryPrivateIP withNewPrimaryNetwork(Creatable<Network> creatable)

Create a new virtual network to associate with the network interface's primary IP configuration, based on the provided definition.

abstract WithPrimaryPrivateIP withNewPrimaryNetwork(String addressSpace)

Creates a new virtual network to associate with the network interface's primary IP configuration.

abstract WithPrimaryPrivateIP withNewPrimaryNetwork(String name, String addressSpace)

Creates a new virtual network to associate with the network interface's primary IP configuration.

Method Details

withExistingPrimaryNetwork

public abstract NetworkInterface.DefinitionStages.WithPrimaryNetworkSubnet withExistingPrimaryNetwork(Network network)

Associate an existing virtual network with the network interface's primary IP configuration.

Parameters:

network - an existing virtual network

Returns:

the next stage of the definition

withNewPrimaryNetwork

public abstract NetworkInterface.DefinitionStages.WithPrimaryPrivateIP withNewPrimaryNetwork(Creatable creatable)

Create a new virtual network to associate with the network interface's primary IP configuration, based on the provided definition.

Parameters:

creatable - a creatable definition for a new virtual network

Returns:

the next stage of the definition

withNewPrimaryNetwork

public abstract NetworkInterface.DefinitionStages.WithPrimaryPrivateIP withNewPrimaryNetwork(String addressSpace)

Creates a new virtual network to associate with the network interface's primary IP configuration.

The virtual network will be created in the same resource group and region as of network interface, it will be created with the specified address space and a default subnet covering the entirety of the network IP address space.

Parameters:

addressSpace - the address space for the virtual network

Returns:

the next stage of the definition

withNewPrimaryNetwork

public abstract NetworkInterface.DefinitionStages.WithPrimaryPrivateIP withNewPrimaryNetwork(String name, String addressSpace)

Creates a new virtual network to associate with the network interface's primary IP configuration.

The virtual network will be created in the same resource group and region as of network interface, it will be created with the specified address space and a default subnet covering the entirety of the network IP address space.

Parameters:

name - the name of the new virtual network
addressSpace - the address space for rhe virtual network

Returns:

the next stage of the definition

Applies to