NetworkInterface.DefinitionStages.WithPrimaryNetwork Interface
public static interface NetworkInterface.DefinitionStages.WithPrimaryNetwork
The stage of the network interface definition allowing to specify the virtual network for primary IP configuration.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
With |
withExistingPrimaryNetwork(Network network)
Associate an existing virtual network with the network interface's primary IP configuration. |
abstract
With |
withNewPrimaryNetwork(Creatable<Network> creatable)
Create a new virtual network to associate with the network interface's primary IP configuration, based on the provided definition. |
abstract
With |
withNewPrimaryNetwork(String addressSpace)
Creates a new virtual network to associate with the network interface's primary IP configuration. |
abstract
With |
withNewPrimaryNetwork(String name, String addressSpace)
Creates a new virtual network to associate with the network interface's primary IP configuration. |
Method Details
withExistingPrimaryNetwork
public abstract NetworkInterface.DefinitionStages.WithPrimaryNetworkSubnet withExistingPrimaryNetwork(Network network)
Associate an existing virtual network with the network interface's primary IP configuration.
Parameters:
Returns:
withNewPrimaryNetwork
public abstract NetworkInterface.DefinitionStages.WithPrimaryPrivateIP withNewPrimaryNetwork(Creatable
Create a new virtual network to associate with the network interface's primary IP configuration, based on the provided definition.
Parameters:
Returns:
withNewPrimaryNetwork
public abstract NetworkInterface.DefinitionStages.WithPrimaryPrivateIP withNewPrimaryNetwork(String addressSpace)
Creates a new virtual network to associate with the network interface's primary IP configuration.
The virtual network will be created in the same resource group and region as of 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:
Returns:
withNewPrimaryNetwork
public abstract NetworkInterface.DefinitionStages.WithPrimaryPrivateIP withNewPrimaryNetwork(String name, String addressSpace)
Creates a new virtual network to associate with the network interface's primary IP configuration.
The virtual network will be created in the same resource group and region as of 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:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for