Поделиться через


NetworkInterface Class

  • java.lang.Object
    • com.azure.resourcemanager.hybridnetwork.models.NetworkInterface

public final class NetworkInterface

Network interface properties.

Constructor Summary

Constructor Description
NetworkInterface()

Creates an instance of NetworkInterface class.

Method Summary

Modifier and Type Method and Description
List<NetworkInterfaceIpConfiguration> ipConfigurations()

Get the ipConfigurations property: A list of IP configurations of the network interface.

String macAddress()

Get the macAddress property: The MAC address of the network interface.

String networkInterfaceName()

Get the networkInterfaceName property: The name of the network interface.

void validate()

Validates the instance.

VMSwitchType vmSwitchType()

Get the vmSwitchType property: The type of the VM switch.

NetworkInterface withIpConfigurations(List<NetworkInterfaceIpConfiguration> ipConfigurations)

Set the ipConfigurations property: A list of IP configurations of the network interface.

NetworkInterface withMacAddress(String macAddress)

Set the macAddress property: The MAC address of the network interface.

NetworkInterface withNetworkInterfaceName(String networkInterfaceName)

Set the networkInterfaceName property: The name of the network interface.

NetworkInterface withVmSwitchType(VMSwitchType vmSwitchType)

Set the vmSwitchType property: The type of the VM switch.

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:

the ipConfigurations value.

macAddress

public String macAddress()

Get the macAddress property: The MAC address of the network interface.

Returns:

the macAddress value.

networkInterfaceName

public String networkInterfaceName()

Get the networkInterfaceName property: The name of the network interface.

Returns:

the networkInterfaceName value.

validate

public void validate()

Validates the instance.

vmSwitchType

public VMSwitchType vmSwitchType()

Get the vmSwitchType property: The type of the VM switch.

Returns:

the vmSwitchType 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.

withMacAddress

public NetworkInterface withMacAddress(String macAddress)

Set the macAddress property: The MAC address of the network interface.

Parameters:

macAddress - the macAddress value to set.

Returns:

the NetworkInterface object itself.

withNetworkInterfaceName

public NetworkInterface withNetworkInterfaceName(String networkInterfaceName)

Set the networkInterfaceName property: The name of the network interface.

Parameters:

networkInterfaceName - the networkInterfaceName value to set.

Returns:

the NetworkInterface object itself.

withVmSwitchType

public NetworkInterface withVmSwitchType(VMSwitchType vmSwitchType)

Set the vmSwitchType property: The type of the VM switch.

Parameters:

vmSwitchType - the vmSwitchType value to set.

Returns:

the NetworkInterface object itself.

Applies to