NetworkInterface Class
- java.
lang. Object - com.
azure. resourcemanager. hybridnetwork. models. NetworkInterface
- com.
public final class NetworkInterface
Network interface properties.
Constructor Summary
| Constructor | Description |
|---|---|
| NetworkInterface() |
Creates an instance of Network |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
List<Network |
ipConfigurations()
Get the ip |
| String |
macAddress()
Get the mac |
| String |
networkInterfaceName()
Get the network |
| void |
validate()
Validates the instance. |
|
VMSwitch |
vmSwitchType()
Get the vm |
|
Network |
withIpConfigurations(List<NetworkInterfaceIpConfiguration> ipConfigurations)
Set the ip |
|
Network |
withMacAddress(String macAddress)
Set the mac |
|
Network |
withNetworkInterfaceName(String networkInterfaceName)
Set the network |
|
Network |
withVmSwitchType(VMSwitchType vmSwitchType)
Set the vm |
Methods inherited from java.lang.Object
Constructor Details
NetworkInterface
public NetworkInterface()
Creates an instance of NetworkInterface class.
Method Details
ipConfigurations
public List<NetworkInterfaceIpConfiguration> ipConfigurations()
Get the ipConfigurations property: A list of IP configurations of the network interface.
Returns:
macAddress
public String macAddress()
Get the macAddress property: The MAC address of the network interface.
Returns:
networkInterfaceName
public String networkInterfaceName()
Get the networkInterfaceName property: The name of the network interface.
Returns:
validate
public void validate()
Validates the instance.
vmSwitchType
public VMSwitchType vmSwitchType()
Get the vmSwitchType property: The type of the VM switch.
Returns:
withIpConfigurations
public NetworkInterface withIpConfigurations(List<NetworkInterfaceIpConfiguration> ipConfigurations)
Set the ipConfigurations property: A list of IP configurations of the network interface.
Parameters:
Returns:
withMacAddress
public NetworkInterface withMacAddress(String macAddress)
Set the macAddress property: The MAC address of the network interface.
Parameters:
Returns:
withNetworkInterfaceName
public NetworkInterface withNetworkInterfaceName(String networkInterfaceName)
Set the networkInterfaceName property: The name of the network interface.
Parameters:
Returns:
withVmSwitchType
public NetworkInterface withVmSwitchType(VMSwitchType vmSwitchType)
Set the vmSwitchType property: The type of the VM switch.
Parameters:
Returns: