Class ComputerSystemProduct

java.lang.Object
io.github.eggy03.ferrumx.windows.entity.product.ComputerSystemProduct

public class ComputerSystemProduct extends Object
Immutable representation of a computer product on a Windows system.

Fields correspond to properties retrieved from the Win32_ComputerSystemProduct WMI class.

Instances are thread-safe and may be safely cached or shared across threads.

Usage examples


 // Build a new ComputerSystemProduct instance
 ComputerSystemProduct product = ComputerSystemProduct.builder()
     .caption("Workstation PC")
     .description("High-end office workstation")
     .identifyingNumber("ID-001")
     .name("User-PC")
     .skuNumber("PROD-1234")
     .vendor("Default Vendor")
     .version("1.0")
     .uuid("550e8400-e29b-41d4-a716-446655440000")
     .build();

 // Create a modified copy
 ComputerSystemProduct updated = product.toBuilder()
     .skuNumber("PROD-5678")
     .build();

 
Since:
2.0.0
Author:
Egg-03
See Also:
  • Constructor Details

    • ComputerSystemProduct

      public ComputerSystemProduct()
  • Method Details