Aracılığıyla paylaş


NetworkAdapter Class

  • java.lang.Object
    • com.azure.resourcemanager.databoxedge.models.NetworkAdapter

Implements

public final class NetworkAdapter
implements JsonSerializable<NetworkAdapter>

Represents the networkAdapter on a device.

Constructor Summary

Constructor Description
NetworkAdapter()

Creates an instance of NetworkAdapter class.

Method Summary

Modifier and Type Method and Description
String adapterId()

Get the adapterId property: Instance ID of network adapter.

NetworkAdapterPosition adapterPosition()

Get the adapterPosition property: Hardware position of network adapter.

NetworkAdapterDhcpStatus dhcpStatus()

Get the dhcpStatus property: Value indicating whether this adapter has DHCP enabled.

List<String> dnsServers()

Get the dnsServers property: The list of DNS Servers of the device.

static NetworkAdapter fromJson(JsonReader jsonReader)

Reads an instance of NetworkAdapter from the JsonReader.

Integer index()

Get the index property: Logical index of the adapter.

Ipv4Config ipv4Configuration()

Get the ipv4Configuration property: The IPv4 configuration of the network adapter.

Ipv6Config ipv6Configuration()

Get the ipv6Configuration property: The IPv6 configuration of the network adapter.

String ipv6LinkLocalAddress()

Get the ipv6LinkLocalAddress property: The IPv6 local address.

String label()

Get the label property: Hardware label for the adapter.

Long linkSpeed()

Get the linkSpeed property: Link speed.

String macAddress()

Get the macAddress property: MAC address.

String networkAdapterName()

Get the networkAdapterName property: Network adapter name.

String nodeId()

Get the nodeId property: Node ID of the network adapter.

NetworkAdapterRdmaStatus rdmaStatus()

Get the rdmaStatus property: Value indicating whether this adapter is RDMA capable.

NetworkAdapterStatus status()

Get the status property: Value indicating whether this adapter is valid.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NetworkAdapter withDhcpStatus(NetworkAdapterDhcpStatus dhcpStatus)

Set the dhcpStatus property: Value indicating whether this adapter has DHCP enabled.

NetworkAdapter withRdmaStatus(NetworkAdapterRdmaStatus rdmaStatus)

Set the rdmaStatus property: Value indicating whether this adapter is RDMA capable.

Methods inherited from java.lang.Object

Constructor Details

NetworkAdapter

public NetworkAdapter()

Creates an instance of NetworkAdapter class.

Method Details

adapterId

public String adapterId()

Get the adapterId property: Instance ID of network adapter.

Returns:

the adapterId value.

adapterPosition

public NetworkAdapterPosition adapterPosition()

Get the adapterPosition property: Hardware position of network adapter.

Returns:

the adapterPosition value.

dhcpStatus

public NetworkAdapterDhcpStatus dhcpStatus()

Get the dhcpStatus property: Value indicating whether this adapter has DHCP enabled.

Returns:

the dhcpStatus value.

dnsServers

public List<String> dnsServers()

Get the dnsServers property: The list of DNS Servers of the device.

Returns:

the dnsServers value.

fromJson

public static NetworkAdapter fromJson(JsonReader jsonReader)

Reads an instance of NetworkAdapter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NetworkAdapter 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 NetworkAdapter.

index

public Integer index()

Get the index property: Logical index of the adapter.

Returns:

the index value.

ipv4Configuration

public Ipv4Config ipv4Configuration()

Get the ipv4Configuration property: The IPv4 configuration of the network adapter.

Returns:

the ipv4Configuration value.

ipv6Configuration

public Ipv6Config ipv6Configuration()

Get the ipv6Configuration property: The IPv6 configuration of the network adapter.

Returns:

the ipv6Configuration value.

ipv6LinkLocalAddress

public String ipv6LinkLocalAddress()

Get the ipv6LinkLocalAddress property: The IPv6 local address.

Returns:

the ipv6LinkLocalAddress value.

label

public String label()

Get the label property: Hardware label for the adapter.

Returns:

the label value.

linkSpeed

public Long linkSpeed()

Get the linkSpeed property: Link speed.

Returns:

the linkSpeed value.

macAddress

public String macAddress()

Get the macAddress property: MAC address.

Returns:

the macAddress value.

networkAdapterName

public String networkAdapterName()

Get the networkAdapterName property: Network adapter name.

Returns:

the networkAdapterName value.

nodeId

public String nodeId()

Get the nodeId property: Node ID of the network adapter.

Returns:

the nodeId value.

rdmaStatus

public NetworkAdapterRdmaStatus rdmaStatus()

Get the rdmaStatus property: Value indicating whether this adapter is RDMA capable.

Returns:

the rdmaStatus value.

status

public NetworkAdapterStatus status()

Get the status property: Value indicating whether this adapter is valid.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDhcpStatus

public NetworkAdapter withDhcpStatus(NetworkAdapterDhcpStatus dhcpStatus)

Set the dhcpStatus property: Value indicating whether this adapter has DHCP enabled.

Parameters:

dhcpStatus - the dhcpStatus value to set.

Returns:

the NetworkAdapter object itself.

withRdmaStatus

public NetworkAdapter withRdmaStatus(NetworkAdapterRdmaStatus rdmaStatus)

Set the rdmaStatus property: Value indicating whether this adapter is RDMA capable.

Parameters:

rdmaStatus - the rdmaStatus value to set.

Returns:

the NetworkAdapter object itself.

Applies to