Package net.solarnetwork.ocpp.domain
Class ChargeSessionEndInfo.Builder
java.lang.Object
net.solarnetwork.ocpp.domain.ChargeSessionEndInfo.Builder
- Enclosing class:
- ChargeSessionEndInfo
Builder to build
ChargeSessionEndInfo.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new instance from this builder.withAuthorizationId(String authorizationId) Configure the authorization ID.withChargePointId(ChargePointIdentity chargePointId) Configure the charge point ID.withMeterEnd(long meterEnd) Configure the final meter value.withReason(ChargeSessionEndReason reason) Configure the end reason.withTimestampEnd(Instant timestampEnd) Configure the ending timestamp.withTransactionData(Iterable<SampledValue> transactionData) Configure the transaction data.withTransactionId(int transactionId) Configure the transaction ID.
-
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
-
withTransactionId
Configure the transaction ID.- Parameters:
transactionId- the transaction ID- Returns:
- this instance
-
withTimestampEnd
Configure the ending timestamp.- Parameters:
timestampEnd- the end time- Returns:
- this instance
-
withMeterEnd
Configure the final meter value.- Parameters:
meterEnd- the final meter value- Returns:
- this instance
-
withReason
Configure the end reason.- Parameters:
reason- the reason- Returns:
- this instance
-
withTransactionData
Configure the transaction data.- Parameters:
transactionData- the transaction data- Returns:
- this instance
-
build
Create a new instance from this builder.- Returns:
- the new instance
-