Class Win32NetworkAdapterToConfiguration

java.lang.Object
io.github.eggy03.ferrumx.windows.entity.compounded.Win32NetworkAdapterToConfiguration

@ShallowImmutable public class Win32NetworkAdapterToConfiguration extends Object
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 Details

  • Constructor Details

    • Win32NetworkAdapterToConfiguration

      public Win32NetworkAdapterToConfiguration()
  • Method Details

    • toString

      @NotNull public @NotNull String toString()
      Retrieves the entity in a JSON pretty-print formatted string
      Overrides:
      toString in class Object
      Returns:
      the String value of the object in JSON pretty-print format