NicIPConfiguration.DefinitionStages.WithNetwork<ParentT> Interface

Type Parameters

ParentT

the return type of the final attach()

public interface WithNetwork

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

Method Summary

Modifier and Type Method and Description
NicIPConfiguration.DefinitionStages.WithSubnet<ParentT> withExistingNetwork(Network network)

Associate an existing virtual network with the network interface IP configuration.

NicIPConfiguration.DefinitionStages.WithPrivateIP<ParentT> withNewNetwork(Creatable<Network> creatable)

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

NicIPConfiguration.DefinitionStages.WithPrivateIP<ParentT> withNewNetwork(String addressSpace)

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

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

NicIPConfiguration.DefinitionStages.WithPrivateIP<ParentT> withNewNetwork(String name, String addressSpace)

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

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

Method Details

withExistingNetwork

public WithSubnet withExistingNetwork(Network network)

Associate an existing virtual network with the network interface IP configuration.

Parameters:

network - an existing virtual network

Returns:

the next stage of the definition

withNewNetwork

public WithPrivateIP withNewNetwork(Creatable creatable)

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

Parameters:

creatable - a creatable definition for a new virtual network

Returns:

the next stage of the definition

withNewNetwork

public WithPrivateIP withNewNetwork(String addressSpace)

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

the virtual network will be created in the same resource group and region as of parent 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

withNewNetwork

public WithPrivateIP withNewNetwork(String name, String addressSpace)

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

the virtual network will be created in the same resource group and region as of parent 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