Class NetworkAdapterConfiguration
java.lang.Object
io.github.eggy03.ferrumx.windows.entity.network.NetworkAdapterConfiguration
Immutable representation of a network adapter configuration on a Windows system.
Fields correspond to properties retrieved from the Win32_NetworkAdapterConfiguration
WMI class.
Instances are thread-safe and may be safely cached or shared across threads.
Usage examples
// Create a new configuration using the builder
NetworkAdapterConfiguration config = NetworkAdapterConfiguration.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
NetworkAdapterConfiguration updated = config.toBuilder()
.description("Updated Ethernet Adapter")
.build();
See NetworkAdapter
for the corresponding adapter entity- Since:
- 2.0.0
- Author:
- Egg-03
- See Also:
-
Constructor Summary
Constructors -
Method Summary