Class MsftNetAdapterToIpAndDnsAndProfile

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

@ShallowImmutable public class MsftNetAdapterToIpAndDnsAndProfile extends Object
Immutable representation of a MsftNetAdapter and its 1:N relationships with MsftNetIpAddress, MsftDnsClientServerAddress, and MsftNetConnectionProfile configurations in a Windows system.

Each instance represents a single NetAdapter identified by interfaceIndex, and maintains a one-to-many mapping with related IpAddress, DnsClientServerAddress, and ConnectionProfile entities.

Usage example

MsftNetAdapterToIpAndDnsAndProfile adapterInfo = MsftNetAdapterToIpAndDnsAndProfile.builder()
    .interfaceIndex(12L)
    .adapter(msftNetAdapter)
    .ipAddressList(ipAddresses)
    .dnsClientServerAddressList(dnsServers)
    .netConnectionProfileList(connectionProfiles)
    .build();

This is purely a convenience class designed to simplify data retrieval for all related network configuration entities through a single call. The individual entity classes remain accessible for direct use if you need to map everything by yourself.

An equivalent convenience class Win32NetworkAdapterToConfiguration is also available for use, although Win32_NetworkAdapter is deprecated by Microsoft in favor of the MSFT classes.

Since:
3.0.0
See Also: