NetworkInterface.DefinitionStages.WithPrimaryNetwork Interface
public interface 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 |
---|---|
Network |
withExistingPrimaryNetwork(Network network)
Associate an existing virtual network with the network interface's primary IP configuration. |
Network |
withNewPrimaryNetwork(Creatable<Network> creatable)
Create a new virtual network to associate with the network interface's primary IP configuration, based on the provided definition. |
Network |
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. |
Network |
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. |
Method Details
withExistingPrimaryNetwork
public WithPrimaryNetworkSubnet withExistingPrimaryNetwork(Network network)
Associate an existing virtual network with the network interface's primary IP configuration.
Parameters:
Returns:
withNewPrimaryNetwork
public 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 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 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