Class Win32PortConnector

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

@ShallowImmutable public class Win32PortConnector extends Object
Immutable representation of a motherboard port on a Windows system.

Fields correspond to properties retrieved from the Win32_PortConnector WMI class.

Usage example

Win32PortConnector port = Win32PortConnector.builder()
    .externalReferenceDesignator("USB3_0")
    .build();

// Create a modified copy
Win32PortConnector updated = port.toBuilder()
    .externalReferenceDesignator("USB3_1")
    .build();

Win32Baseboard contains the details of the motherboard this port belongs to.

Since:
3.0.0
See Also:
  • Field Details

    • tag

      @SerializedName("Tag") @Nullable @Nullable String tag
      Unique identifier of a port connection on the computer system.

      Example: "Port Connector 1"

    • externalReferenceDesignator

      @SerializedName("ExternalReferenceDesignator") @Nullable @Nullable String externalReferenceDesignator
      External reference designator of the port. External reference designators are identifiers that determine the type and use of the port. Example: "COM1"
    • internalReferenceDesignator

      @SerializedName("InternalReferenceDesignator") @Nullable @Nullable String internalReferenceDesignator
      Internal reference designator of the port. Internal reference designators are specific to the manufacturer, and identify the circuit board location or use of the port. Example: "J101"
    • portType

      @SerializedName("PortType") @Nullable @Nullable Integer portType
      Function of the port.

      Possible values include:

      • None (0)
      • Parallel Port XT/AT Compatible (1)
      • Parallel Port PS/2 (2)
      • Parallel Port ECP (3)
      • Parallel Port EPP (4)
      • Parallel Port ECP/EPP (5)
      • Serial Port XT/AT Compatible (6)
      • Serial Port 16450 Compatible (7)
      • Serial Port 16550 Compatible (8)
      • Serial Port 16550A Compatible (9)
      • SCSI Port (10)
      • MIDI Port (11)
      • Joy Stick Port (12)
      • Keyboard Port (13)
      • Mouse Port (14)
      • SSA SCSI (15)
      • USB (16)
      • FireWire (IEEE P1394) (17)
      • PCMCIA Type I (18)
      • PCMCIA Type II (19)
      • PCMCIA Type III (20)
      • Cardbus (21)
      • Access Bus Port (22)
      • SCSI II (23)
      • SCSI Wide (24)
      • PC-98 (25)
      • PC-98-Hireso (26)
      • PC-H98 (27)
      • Video Port (28)
      • Audio Port (29)
      • Modem Port (30)
      • Network Port (31)
      • 8251 Compatible (32)
      • 8251 FIFO Compatible (33)
    • connectorType

      @SerializedName("ConnectorType") @Nullable @Nullable List<Integer> connectorType
      Array of physical attributes of the connector used by this port.

      Refer to the microsoft documentation provided at the class level for a list of possible values

  • Constructor Details

    • Win32PortConnector

      public Win32PortConnector()
  • Method Details

    • 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