Enum StandardCimv2
- All Implemented Interfaces:
Serializable, Comparable<StandardCimv2>
Enum representing the predefined WMI (CIM) queries for the classes available in the
root/StandardCimv2 namespace.
Each constant holds a PowerShell query that queries a specific class in the namespace
and returns the result in JSON format. These queries are typically executed
using PowerShell and mapped to
corresponding Java objects.
- Since:
- 4.1.0
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionQuery to fetch the properties of theMSFT_NetAdapterclassQuery to fetch the properties of theMSFT_NetConnectionProfileclassQuery to fetch the properties of theMSFT_NetDNSClientServerAddressclassQuery to fetch the properties of theMSFT_NetIPAddressclass -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> @NotNull StringgenerateQuery(@NonNull String prefix, @NonNull Class<T> wmiEntity) static StandardCimv2Returns the enum constant of this type with the specified name.static StandardCimv2[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MSFT_NET_ADAPTER
Query to fetch the properties of theMSFT_NetAdapterclassWill not show hidden physical or logical network adapters unless explicitly stated
- Since:
- 4.1.0
-
MSFT_NET_IP_ADDRESS
Query to fetch the properties of theMSFT_NetIPAddressclass- Since:
- 4.1.0
-
MSFT_NET_DNS_CLIENT_SERVER_ADDRESS
Query to fetch the properties of theMSFT_NetDNSClientServerAddressclass- Since:
- 4.1.0
-
MSFT_NET_CONNECTION_PROFILE
Query to fetch the properties of theMSFT_NetConnectionProfileclass- Since:
- 4.1.0
-
-
Field Details
-
query
-
-
Constructor Details
-
StandardCimv2
private StandardCimv2()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
generateQuery
-