HardwareInventoryNetworkInterface Class

  • java.lang.Object
    • com.azure.resourcemanager.networkcloud.models.HardwareInventoryNetworkInterface

Implements

public final class HardwareInventoryNetworkInterface
implements JsonSerializable<HardwareInventoryNetworkInterface>

HardwareInventoryNetworkInterface represents the network interface details as part of a hardware inventory.

Constructor Summary

Constructor Description
HardwareInventoryNetworkInterface()

Creates an instance of HardwareInventoryNetworkInterface class.

Method Summary

Modifier and Type Method and Description
static HardwareInventoryNetworkInterface fromJson(JsonReader jsonReader)

Reads an instance of HardwareInventoryNetworkInterface from the JsonReader.

String linkStatus()

Get the linkStatus property: The current status of the link.

String macAddress()

Get the macAddress property: The MAC address associated with this interface.

String name()

Get the name property: The name of the interface.

String networkInterfaceId()

Get the networkInterfaceId property: The resource ID of the network interface for the port on the switch that this machine's interface is connected to.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

HardwareInventoryNetworkInterface

public HardwareInventoryNetworkInterface()

Creates an instance of HardwareInventoryNetworkInterface class.

Method Details

fromJson

public static HardwareInventoryNetworkInterface fromJson(JsonReader jsonReader)

Reads an instance of HardwareInventoryNetworkInterface from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of HardwareInventoryNetworkInterface if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the HardwareInventoryNetworkInterface.

linkStatus

public String linkStatus()

Get the linkStatus property: The current status of the link.

Returns:

the linkStatus value.

macAddress

public String macAddress()

Get the macAddress property: The MAC address associated with this interface.

Returns:

the macAddress value.

name

public String name()

Get the name property: The name of the interface.

Returns:

the name value.

networkInterfaceId

public String networkInterfaceId()

Get the networkInterfaceId property: The resource ID of the network interface for the port on the switch that this machine's interface is connected to.

Returns:

the networkInterfaceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to