Package net.solarnetwork.ocpp.domain
Class ChargeSessionStartInfo.Builder
java.lang.Object
net.solarnetwork.ocpp.domain.ChargeSessionStartInfo.Builder
- Enclosing class:
- ChargeSessionStartInfo
Builder to build
ChargeSessionStartInfo.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a new instance from this builder.withAuthorizationId(String authorizationId) Configure the authorization ID.withChargePointId(ChargePointIdentity chargePointId) Configure the charge point ID.withConnectorId(int connectorId) Configure the connector ID.withMeterStart(long meterStart) Configure the starting meter value.withReservationId(Integer reservationId) Configure the reservation ID.withTimestampStart(Instant timestampStart) Configure the start timestamp.
-
Method Details
-
withChargePointId
Configure the charge point ID.- Parameters:
chargePointId- the charge point ID- Returns:
- this instance
-
withAuthorizationId
Configure the authorization ID.- Parameters:
authorizationId- the authorization ID- Returns:
- this instance
-
withConnectorId
Configure the connector ID.- Parameters:
connectorId- the connector ID- Returns:
- this instance
-
withTimestampStart
Configure the start timestamp.- Parameters:
timestampStart- the start timestamp- Returns:
- this instance
-
withMeterStart
Configure the starting meter value.- Parameters:
meterStart- the start value- Returns:
- this instance
-
withReservationId
Configure the reservation ID.- Parameters:
reservationId- the reservation ID- Returns:
- this instance
-
build
Build a new instance from this builder.- Returns:
- the new instance
-