VirtualMachine.DefinitionStages.WithPrimaryNetworkInterface Interface

public interface WithPrimaryNetworkInterface

The stage of a virtual machine definition allowing to specify the primary network interface.

Method Summary

Modifier and Type Method and Description
VirtualMachine.DefinitionStages.WithOS withExistingPrimaryNetworkInterface(NetworkInterface networkInterface)

Associates an existing network interface with the virtual machine as its primary network interface.

VirtualMachine.DefinitionStages.WithOS withNewPrimaryNetworkInterface(Creatable<NetworkInterface> creatable)

Creates a new network interface to associate with the virtual machine as its primary network interface, based on the provided definition.

Method Details

withExistingPrimaryNetworkInterface

public WithOS withExistingPrimaryNetworkInterface(NetworkInterface networkInterface)

Associates an existing network interface with the virtual machine as its primary network interface.

Parameters:

networkInterface - an existing network interface

Returns:

the next stage of the definition

withNewPrimaryNetworkInterface

public WithOS withNewPrimaryNetworkInterface(Creatable creatable)

Creates a new network interface to associate with the virtual machine as its primary network interface, based on the provided definition.

Parameters:

creatable - a creatable definition for a new network interface

Returns:

the next stage of the definition

Applies to