Package net.solarnetwork.ocpp.domain
Class SampledValue.Builder
java.lang.Object
net.solarnetwork.ocpp.domain.SampledValue.Builder
- Enclosing class:
- SampledValue
Builder to build
SampledValue.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a value from this builder.withContext(ReadingContext context) Configure the context.withLocation(Location location) Configure the location.withMeasurand(Measurand measurand) Configure the measurand.Configure the phase.withSessionId(UUID sessionId) Configure the session ID.withTimestamp(Instant timestamp) Configure the timestamp.withUnit(UnitOfMeasure unit) Configure the unit.Configure the value.
-
Method Details
-
withSessionId
Configure the session ID.- Parameters:
sessionId- the session ID- Returns:
- this instance
-
withTimestamp
Configure the timestamp.- Parameters:
timestamp- the timestamp- Returns:
- this instance
-
withValue
Configure the value.- Parameters:
value- the value- Returns:
- this instance
-
withContext
Configure the context.- Parameters:
context- the context- Returns:
- this instance
-
withMeasurand
Configure the measurand.- Parameters:
measurand- the measurand- Returns:
- this instance
-
withPhase
Configure the phase.- Parameters:
phase- the phase- Returns:
- this instance
-
withLocation
Configure the location.- Parameters:
location- the location- Returns:
- this instance
-
withUnit
Configure the unit.- Parameters:
unit- the unit- Returns:
- this instance
-
build
Build a value from this builder.- Returns:
- the new instance
-