Package net.solarnetwork.ocpp.domain
Class StatusNotification.Builder
java.lang.Object
net.solarnetwork.ocpp.domain.StatusNotification.Builder
- Enclosing class:
- StatusNotification
Builder to build
StatusNotification.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a notification instance from this builder.withConnectorId(int connectorId) Configure a connector ID.withErrorCode(ChargePointErrorCode errorCode) Configure the error code.Configure the info.withStatus(ChargePointStatus status) Configure the status.withTimestamp(Instant timestamp) Configure the timestamp.withVendorErrorCode(String vendorErrorCode) Configure the vendor error code.withVendorId(String vendorId) Configure the vendor ID.
-
Method Details
-
withConnectorId
Configure a connector ID.- Parameters:
connectorId- the connector ID- Returns:
- this instance
-
withStatus
Configure the status.- Parameters:
status- the status- Returns:
- this instance
-
withErrorCode
Configure the error code.- Parameters:
errorCode- the error code- Returns:
- this instance
-
withInfo
Configure the info.- Parameters:
info- the info- Returns:
- this instance
-
withTimestamp
Configure the timestamp.- Parameters:
timestamp- the timestamp- Returns:
- this instance
-
withVendorId
Configure the vendor ID.- Parameters:
vendorId- the vendor ID- Returns:
- this instance
-
withVendorErrorCode
Configure the vendor error code.- Parameters:
vendorErrorCode- the error code- Returns:
- this instance
-
build
Build a notification instance from this builder.- Returns:
- the new instance
-