Class Win32NetworkAdapterToConfiguration
java.lang.Object
io.github.eggy03.ferrumx.windows.entity.compounded.Win32NetworkAdapterToConfiguration
Immutable representation of a
Win32NetworkAdapter and its associated
1:N relationship with Win32NetworkAdapterConfiguration in a Windows system.
Each instance represents a single network adapter identified by deviceId,
and maintains a one-to-many mapping with its corresponding network configuration objects.
This class is purely a convenience class designed to eliminate the need for using
Win32NetworkAdapterSetting when fetching a relation between Win32NetworkAdapter
and Win32NetworkAdapterConfiguration as it directly stores all instances of configuration
for a particular adapter
Usage example
Win32NetworkAdapterToConfiguration adapterInfo = Win32NetworkAdapterToConfiguration.builder()
.deviceId("1")
.adapter(networkAdapter)
.configurationList(configurations)
.build();
- Since:
- 3.0.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) @Nullable Win32NetworkAdapterTheWin32NetworkAdapterentity associated with thedeviceId.(package private) @Nullable List<Win32NetworkAdapterConfiguration> A list ofWin32NetworkAdapterConfigurationentities associated with thedeviceId.(package private) @Nullable StringThe unique identifier for theWin32NetworkAdapterinstance. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
deviceId
The unique identifier for theWin32NetworkAdapterinstance.Typically corresponds to the adapter’s
DeviceIDas defined by Windows Management Instrumentation (WMI). -
adapter
TheWin32NetworkAdapterentity associated with thedeviceId.Represents the physical or virtual network adapter that owns one or more configuration objects.
-
configurationList
@SerializedName("Configurations") @Nullable @Nullable List<Win32NetworkAdapterConfiguration> configurationListA list ofWin32NetworkAdapterConfigurationentities associated with thedeviceId.Represents one or more configuration settings applied to the
adapter,
-
-
Constructor Details
-
Win32NetworkAdapterToConfiguration
public Win32NetworkAdapterToConfiguration()
-
-
Method Details
-
toString
-