Class Win32NetworkAdapter
java.lang.Object
io.github.eggy03.ferrumx.windows.entity.network.Win32NetworkAdapter
Immutable legacy representation of a network adapter on a Windows system.
Fields correspond to properties retrieved from the Win32_NetworkAdapter WMI class.
Usage example
Win32NetworkAdapter adapter = Win32NetworkAdapter.builder()
.name("Ethernet 1")
.macAddress("00:1A:2B:3C:4D:5E")
.netEnabled(true)
.build();
// Create a modified copy
Win32NetworkAdapter updated = adapter.toBuilder()
.netEnabled(false)
.build();
Win32NetworkAdapterConfiguration contains related network configuration details.
- Since:
- 3.0.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) @Nullable StringText description of the network adapter.(package private) @Nullable StringUnique identifier of the network adapter within the system.(package private) @Nullable IntegerIndex number of the network adapter, stored in the system registry.(package private) @Nullable BooleanIndicates whether the network adapter is installed in the system.(package private) @Nullable StringMedia access control (MAC) address for this adapter.(package private) @Nullable StringFriendly name of the network adapter.(package private) @Nullable StringName of the network connection as displayed in the Network Connections Control Panel.(package private) @Nullable BooleanIndicates whether the network adapter is currently enabled.(package private) @Nullable BooleanIndicates whether the adapter represents a physical or logical device.(package private) @Nullable StringWindows Plug-and-Play device identifier for the network adapter.(package private) @Nullable StringDate and time the network adapter was last reset. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
deviceId
Unique identifier of the network adapter within the system. -
index
Index number of the network adapter, stored in the system registry. -
name
Friendly name of the network adapter.Example:
"Intel(R) Ethernet Connection" -
description
Text description of the network adapter. -
pnpDeviceId
Windows Plug-and-Play device identifier for the network adapter. -
macAddress
Media access control (MAC) address for this adapter. -
installed
Indicates whether the network adapter is installed in the system. -
netEnabled
Indicates whether the network adapter is currently enabled. -
netConnectionId
Name of the network connection as displayed in the Network Connections Control Panel. -
physicalAdapter
Indicates whether the adapter represents a physical or logical device. -
timeOfLastReset
Date and time the network adapter was last reset.
-
-
Constructor Details
-
Win32NetworkAdapter
public Win32NetworkAdapter()
-
-
Method Details
-
isInstalled
-
isNetEnabled
-
isPhysicalAdapter
-
toString
-