Class AbstractDMIBaseboard

java.lang.Object
io.github.eggy03.dmidecode.entity.board.AbstractDMIBaseboard
Direct Known Subclasses:
DMIBaseboard, DMIBaseboard.Json

@Immutable @NullMarked public abstract class AbstractDMIBaseboard extends Object
Immutable representation of a baseboard (motherboard) device retrieved via DMI.

Fields correspond to properties reported by dmidecode for the Base Board (Type 2) SMBIOS structure.

Instances of this class are thread-safe.

Usage example


 DMIBaseboard board = new DMIBaseboard.Builder()
     .manufacturer("ASUSTeK COMPUTER INC.")
     .productName("PRIME B550M-A")
     .serialNumber("ABC123456")
     .build();

 // Create a modified copy
 DMIBaseboard updated = board
     .withSerialNumber("XYZ987654")
     .withProductName("PRIME A320");
 
Since:
0.2.0
  • Constructor Details

    • AbstractDMIBaseboard

      public AbstractDMIBaseboard()
  • Method Details

    • manufacturer

      public abstract @Nullable String manufacturer()
    • productName

      public abstract @Nullable String productName()
    • version

      public abstract @Nullable String version()
    • serialNumber

      public abstract @Nullable String serialNumber()
    • assetTag

      public abstract @Nullable String assetTag()
    • features

      public abstract @Nullable List<@Nullable String> features()
    • locationInChassis

      public abstract @Nullable String locationInChassis()
    • chassisHandle

      public abstract @Nullable String chassisHandle()
    • type

      public abstract @Nullable String type()
    • containedObjectHandles

      public abstract @Nullable Integer containedObjectHandles()
    • toString

      public String toString()
      Overrides:
      toString in class Object