Class MsftNetAdapterToIpAndDnsAndProfile
java.lang.Object
io.github.eggy03.ferrumx.windows.entity.compounded.MsftNetAdapterToIpAndDnsAndProfile
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:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) @Nullable MsftNetAdapterTheMsftNetAdapterassociated with the index:interfaceIndex(package private) @Nullable List<MsftDnsClientServerAddress> A list ofMsftDnsClientServerAddressassociated with the index:interfaceIndex(package private) @Nullable LongThe unique index identifying theMsftNetAdapterinstance(package private) @Nullable List<MsftNetIpAddress> A list ofMsftNetIpAddressassociated with the index:interfaceIndex(package private) @Nullable List<MsftNetConnectionProfile> A list ofMsftNetConnectionProfileassociated with the index:interfaceIndex -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
interfaceIndex
The unique index identifying theMsftNetAdapterinstance -
adapter
TheMsftNetAdapterassociated with the index:interfaceIndex -
ipAddressList
A list ofMsftNetIpAddressassociated with the index:interfaceIndex -
dnsClientServerAddressList
@SerializedName("DNSServers") @Nullable @Nullable List<MsftDnsClientServerAddress> dnsClientServerAddressListA list ofMsftDnsClientServerAddressassociated with the index:interfaceIndex -
netConnectionProfileList
@SerializedName("Profile") @Nullable @Nullable List<MsftNetConnectionProfile> netConnectionProfileListA list ofMsftNetConnectionProfileassociated with the index:interfaceIndex
-
-
Constructor Details
-
MsftNetAdapterToIpAndDnsAndProfile
public MsftNetAdapterToIpAndDnsAndProfile()
-
-
Method Details
-
toString
-