NicIPConfiguration.DefinitionStages.WithNetwork<ParentT> Interface

Type Parameters

ParentT

the stage of the parent network interface definition to return to after attaching this definition

public static interface NicIPConfiguration.DefinitionStages.WithNetwork

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

Method Summary

Modifier and Type Method and Description
abstract WithSubnet<ParentT> withExistingNetwork(Network network)

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

abstract WithPrivateIP<ParentT> withNewNetwork(Creatable<Network> creatable)

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

abstract WithPrivateIP<ParentT> withNewNetwork(String addressSpace)

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

abstract WithPrivateIP<ParentT> withNewNetwork(String name, String addressSpace)

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

Method Details

withExistingNetwork

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