Class Win32Bios

java.lang.Object
io.github.eggy03.ferrumx.windows.entity.mainboard.Win32Bios

@ShallowImmutable public class Win32Bios extends Object
Immutable representation of a BIOS entity on a Windows system.

Fields correspond to properties retrieved from the Win32_BIOS WMI class.

Usage example

Win32Bios bios = Win32Bios.builder()
    .name("BIOS Name")
    .version("1.2.3")
    .build();

// Create a modified copy
Win32Bios updated = bios.toBuilder()
    .version("1.2.4")
    .build();
Since:
3.0.0
See Also:
  • Field Details

    • name

      @SerializedName("Name") @Nullable @Nullable String name
      The BIOS name.
    • caption

      @SerializedName("Caption") @Nullable @Nullable String caption
      Short description of the BIOS.
    • manufacturer

      @SerializedName("Manufacturer") @Nullable @Nullable String manufacturer
      Manufacturer of the BIOS.
    • releaseDate

      @SerializedName("ReleaseDate") @Nullable @Nullable String releaseDate
      BIOS release date in UTC format (YYYYMMDDHHMMSS.MMMMMM±OOO).
    • smbiosPresent

      @SerializedName("SMBIOSPresent") @Nullable @Nullable Boolean smbiosPresent
      If true, the SMBIOS is available on this computer system.
    • status

      @SerializedName("Status") @Nullable @Nullable String status
      Current operational status of the BIOS.

      Possible OPERATIONAL values:

      • "OK"
      • "Degraded"
      • "Pred Fail"

      Possible NON-OPERATIONAL values:

      • "Unknown"
      • "Error"
      • "Starting"
      • "Stopping"
      • "Service"

      Possible OTHER values:

      • "Stressed"
      • "NonRecover"
      • "No Contact"
      • "Lost Comm"
    • version

      @SerializedName("Version") @Nullable @Nullable String version
      Version of the BIOS. This string is created by the BIOS manufacturer.
    • currentLanguage

      @SerializedName("CurrentLanguage") @Nullable @Nullable String currentLanguage
      Name of the current BIOS language.
    • smbiosBiosVersion

      @SerializedName("SMBIOSBIOSVersion") @Nullable @Nullable String smbiosBiosVersion
      BIOS version as reported by SMBIOS.
    • primaryBios

      @SerializedName("PrimaryBIOS") @Nullable @Nullable Boolean primaryBios
      If TRUE, this is the primary BIOS of the computer system.
  • Constructor Details

    • Win32Bios

      public Win32Bios()
  • Method Details

    • isSMBIOSPresent

      @Nullable public @Nullable Boolean isSMBIOSPresent()
    • isPrimaryBios

      @Nullable public @Nullable Boolean isPrimaryBios()
    • toString

      @NotNull public @NotNull String toString()
      Retrieves the entity in a JSON pretty-print formatted string
      Overrides:
      toString in class Object
      Returns:
      the String value of the object in JSON pretty-print format