Class NetworkInterface
java.lang.Object
com.azure.resourcemanager.hybridnetwork.models.NetworkInterface
Network interface properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the ipConfigurations property: A list of IP configurations of the network interface.Get the macAddress property: The MAC address of the network interface.Get the networkInterfaceName property: The name of the network interface.void
validate()
Validates the instance.Get the vmSwitchType property: The type of the VM switch.withIpConfigurations
(List<NetworkInterfaceIpConfiguration> ipConfigurations) Set the ipConfigurations property: A list of IP configurations of the network interface.withMacAddress
(String macAddress) Set the macAddress property: The MAC address of the network interface.withNetworkInterfaceName
(String networkInterfaceName) Set the networkInterfaceName property: The name of the network interface.withVmSwitchType
(VMSwitchType vmSwitchType) Set the vmSwitchType property: The type of the VM switch.
-
Constructor Details
-
NetworkInterface
public NetworkInterface()Creates an instance of NetworkInterface class.
-
-
Method Details
-
networkInterfaceName
Get the networkInterfaceName property: The name of the network interface.- Returns:
- the networkInterfaceName value.
-
withNetworkInterfaceName
Set the networkInterfaceName property: The name of the network interface.- Parameters:
networkInterfaceName
- the networkInterfaceName value to set.- Returns:
- the NetworkInterface object itself.
-
macAddress
Get the macAddress property: The MAC address of the network interface.- Returns:
- the macAddress value.
-
withMacAddress
Set the macAddress property: The MAC address of the network interface.- Parameters:
macAddress
- the macAddress value to set.- Returns:
- the NetworkInterface object itself.
-
ipConfigurations
Get the ipConfigurations property: A list of IP configurations of the network interface.- Returns:
- the ipConfigurations value.
-
withIpConfigurations
public NetworkInterface withIpConfigurations(List<NetworkInterfaceIpConfiguration> ipConfigurations) Set the ipConfigurations property: A list of IP configurations of the network interface.- Parameters:
ipConfigurations
- the ipConfigurations value to set.- Returns:
- the NetworkInterface object itself.
-
vmSwitchType
Get the vmSwitchType property: The type of the VM switch.- Returns:
- the vmSwitchType value.
-
withVmSwitchType
Set the vmSwitchType property: The type of the VM switch.- Parameters:
vmSwitchType
- the vmSwitchType value to set.- Returns:
- the NetworkInterface object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-