Class ChargeSessionStartInfo.Builder

java.lang.Object
net.solarnetwork.ocpp.domain.ChargeSessionStartInfo.Builder
Enclosing class:
ChargeSessionStartInfo

public static final class ChargeSessionStartInfo.Builder extends Object
Builder to build ChargeSessionStartInfo.
  • Method Details

    • withChargePointId

      public ChargeSessionStartInfo.Builder withChargePointId(ChargePointIdentity chargePointId)
      Configure the charge point ID.
      Parameters:
      chargePointId - the charge point ID
      Returns:
      this instance
    • withAuthorizationId

      public ChargeSessionStartInfo.Builder withAuthorizationId(String authorizationId)
      Configure the authorization ID.
      Parameters:
      authorizationId - the authorization ID
      Returns:
      this instance
    • withConnectorId

      public ChargeSessionStartInfo.Builder withConnectorId(int connectorId)
      Configure the connector ID.
      Parameters:
      connectorId - the connector ID
      Returns:
      this instance
    • withTimestampStart

      public ChargeSessionStartInfo.Builder withTimestampStart(Instant timestampStart)
      Configure the start timestamp.
      Parameters:
      timestampStart - the start timestamp
      Returns:
      this instance
    • withMeterStart

      public ChargeSessionStartInfo.Builder withMeterStart(long meterStart)
      Configure the starting meter value.
      Parameters:
      meterStart - the start value
      Returns:
      this instance
    • withReservationId

      public ChargeSessionStartInfo.Builder withReservationId(Integer reservationId)
      Configure the reservation ID.
      Parameters:
      reservationId - the reservation ID
      Returns:
      this instance
    • build

      public ChargeSessionStartInfo build()
      Build a new instance from this builder.
      Returns:
      the new instance