Interface VirtualMachine.DefinitionStages.WithPrimaryNetworkInterface
- All Known Subinterfaces:
VirtualMachine.DefinitionManaged,VirtualMachine.DefinitionManagedOrUnmanaged,VirtualMachine.DefinitionShared,VirtualMachine.DefinitionStages.WithNetwork,VirtualMachine.DefinitionUnmanaged
- Enclosing interface:
VirtualMachine.DefinitionStages
public static interface VirtualMachine.DefinitionStages.WithPrimaryNetworkInterface
The stage of a virtual machine definition allowing to specify the primary network interface.
-
Method Summary
Modifier and TypeMethodDescriptionwithExistingPrimaryNetworkInterface(NetworkInterface networkInterface) Associates an existing network interface with the virtual machine as its primary network interface.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
-
withNewPrimaryNetworkInterface
VirtualMachine.DefinitionStages.WithProximityPlacementGroup 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.- Parameters:
creatable- a creatable definition for a new network interface- Returns:
- the next stage of the definition
-
withExistingPrimaryNetworkInterface
VirtualMachine.DefinitionStages.WithProximityPlacementGroup 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
-