Class MsftNetConnectionProfile
java.lang.Object
io.github.eggy03.ferrumx.windows.entity.network.MsftNetConnectionProfile
Immutable representation of a connection profile for a particular network adapter on a Windows system.
Fields correspond to properties retrieved from the MSFT_NetConnectionProfile class in the
root/StandardCimv2 namespace.
Usage example
MsftNetConnectionProfile profile = MsftNetConnectionProfile.builder()
.interfaceIndex(1)
.networkCategory(0)
.ipv4Connectivity(4)
.ipv6Connectivity(1)
.build();
// Create a modified copy
MsftNetConnectionProfile updated = profile.toBuilder()
.networkCategory(1)
.build();
See MsftNetAdapter, for network adapter information.
See MsftDnsClientServerAddress, for information regarding the connected DNS servers of a network adapter.
See MsftNetIpAddress, for IP address configuration information of a network adapter.
- Since:
- 3.0.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) @Nullable LongIndicates the domain authentication kind associated with the profile.(package private) @Nullable StringThe name of the network interface on which the profile is connected.(package private) @Nullable LongThe interface index of the network interface on which the profile is connected.(package private) @Nullable LongThe IPv4 connectivity status of the connected profile.(package private) @Nullable LongThe IPv6 connectivity status of the connected profile.(package private) @Nullable LongThe network category of the connected profile. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
interfaceIndex
The interface index of the network interface on which the profile is connected. -
interfaceAlias
The name of the network interface on which the profile is connected.Example: "Ethernet0"
-
networkCategory
The network category of the connected profile.Data type: uint32
Access type: Read-only
Possible values:
- 0 - Public
- 1 - Private
- 2 - DomainAuthenticated
-
domainAuthenticationKind
Indicates the domain authentication kind associated with the profile.WARNING: No existing documentation found about this field
-
ipv4Connectivity
The IPv4 connectivity status of the connected profile.Possible values:
- 0 - Disconnected
- 1 - NoTraffic
- 2 - Subnet
- 3 - LocalNetwork
- 4 - Internet
-
ipv6Connectivity
The IPv6 connectivity status of the connected profile.Possible values:
- 0 - Disconnected
- 1 - NoTraffic
- 2 - Subnet
- 3 - LocalNetwork
- 4 - Internet
-
-
Constructor Details
-
MsftNetConnectionProfile
public MsftNetConnectionProfile()
-
-
Method Details
-
toString
-