VirtualMachine.DefinitionStages.WithSecondaryNetworkInterface Interface

public interface WithSecondaryNetworkInterface

The stage of a virtual machine definition allowing to specify additional network interfaces.

Method Summary

Modifier and Type Method and Description
VirtualMachine.DefinitionStages.WithCreate withExistingSecondaryNetworkInterface(NetworkInterface networkInterface)

Associates an existing network interface with the virtual machine.

Note this method's effect is additive, i.e. each time it is used, the new secondary network interface added to the virtual machine.

VirtualMachine.DefinitionStages.WithCreate withNewSecondaryNetworkInterface(Creatable<NetworkInterface> creatable)

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

Note this method's effect is additive, i.e. each time it is used, a new secondary network interface added to the virtual machine.

Method Details

withExistingSecondaryNetworkInterface

public WithCreate withExistingSecondaryNetworkInterface(NetworkInterface networkInterface)

Associates an existing network interface with the virtual machine.

Note this method's effect is additive, i.e. each time it is used, the new secondary network interface added to the virtual machine.

Parameters:

networkInterface - an existing network interface

Returns:

the next stage of the definition

withNewSecondaryNetworkInterface

public WithCreate withNewSecondaryNetworkInterface(Creatable creatable)

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

Note this method's effect is additive, i.e. each time it is used, a new secondary network interface added to the virtual machine.

Parameters:

creatable - a creatable definition for a new network interface

Returns:

the next stage of the definition

Applies to