Class Win32NetworkAdapterConfiguration
java.lang.Object
io.github.eggy03.ferrumx.windows.entity.network.Win32NetworkAdapterConfiguration
Immutable representation of a network adapter configuration on a Windows system.
Fields correspond to properties retrieved from the Win32_NetworkAdapterConfiguration WMI class.
Usage examples
// Create a new configuration using the builder
Win32NetworkAdapterConfiguration config = Win32NetworkAdapterConfiguration.builder()
.index(1)
.description("Ethernet Adapter")
.ipEnabled(true)
.ipAddress(List.of("192.168.1.100"))
.dnsServerSearchOrder(List.of("8.8.8.8", "8.8.4.4"))
.build();
// Create a modified copy using the builder
Win32NetworkAdapterConfiguration updated = config.toBuilder()
.description("Updated Ethernet Adapter")
.build();
See Win32NetworkAdapter for the corresponding adapter entity
- Since:
- 3.0.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) @Nullable StringShort textual caption describing the object.List of default gateway IP addresses used by this system.(package private) @Nullable StringTextual description of the network adapter configuration.(package private) @Nullable BooleanIndicates whether DHCP is enabled for this adapter.(package private) @Nullable StringDate and time when the DHCP lease expires.(package private) @Nullable StringDate and time when the DHCP lease was obtained.(package private) @Nullable StringIP address of the DHCP server that assigned this configuration.(package private) @Nullable StringHost name used to identify this computer on the network.List of DNS server IP addresses used for name resolution.(package private) @Nullable IntegerIndex number of the Windows network adapter configuration.List of IP addresses associated with this network adapter.(package private) @Nullable BooleanIndicates whether TCP/IP is bound and enabled on this adapter.Subnet masks associated with each IP address on this adapter.(package private) @Nullable StringUnique identifier by which the configuration instance is known. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
index
Index number of the Windows network adapter configuration. Used when multiple configurations exist. -
description
Textual description of the network adapter configuration. -
caption
Short textual caption describing the object. -
settingId
Unique identifier by which the configuration instance is known. -
ipEnabled
Indicates whether TCP/IP is bound and enabled on this adapter. -
ipAddress
-
ipSubnet
-
defaultIpGateway
-
dhcpEnabled
Indicates whether DHCP is enabled for this adapter. -
dhcpServer
IP address of the DHCP server that assigned this configuration. -
dhcpLeaseObtained
Date and time when the DHCP lease was obtained. -
dhcpLeaseExpires
Date and time when the DHCP lease expires. -
dnsHostName
Host name used to identify this computer on the network. -
dnsServerSearchOrder
-
-
Constructor Details
-
Win32NetworkAdapterConfiguration
public Win32NetworkAdapterConfiguration()
-
-
Method Details
-
isIPEnabled
-
isDHCPEnabled
-
toString
-