Package com.sentilant.telematicssdk
Class TelematicsServiceOptions
java.lang.Object
com.sentilant.telematicssdk.TelematicsServiceOptions
Represents configuration options for starting or stopping the telematics service.
This class encapsulates optional parameters such as the reason for starting/stopping, additional observations, vehicle-related data, and other service-specific information. It follows a fluent API design to allow chaining of setters.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty instance ofTelematicsServiceOptions. -
Method Summary
Modifier and TypeMethodDescriptionReturns any additional observations provided.Returns the real volume value.Returns the reason for the operation.Returns the service code.Returns the vehicle odometer reading in kilometers.setObservations(String observations) Sets additional observations or comments related to the operation.setRealVolume(Double realVolume) Sets the real volume value associated with the operation.Sets the reason for starting or stopping the telematics service.setServiceCode(String serviceCode) Sets the service code used to identify the specific telematics service or operation.setVehicleKms(Integer vehicleKms) Sets the current vehicle odometer reading in kilometers.
-
Constructor Details
-
TelematicsServiceOptions
public TelematicsServiceOptions()Creates an empty instance ofTelematicsServiceOptions.
-
-
Method Details
-
setReason
Sets the reason for starting or stopping the telematics service.- Parameters:
reason- the reason, used for logging or auditing; may benullor empty.- Returns:
- this
TelematicsServiceOptionsinstance for chaining.
-
setObservations
Sets additional observations or comments related to the operation.- Parameters:
observations- additional information; may be empty if not applicable.- Returns:
- this
TelematicsServiceOptionsinstance for chaining.
-
setRealVolume
Sets the real volume value associated with the operation.- Parameters:
realVolume- the real volume (e.g., fuel, cargo) in appropriate units; may benull.- Returns:
- this
TelematicsServiceOptionsinstance for chaining.
-
setServiceCode
Sets the service code used to identify the specific telematics service or operation.- Parameters:
serviceCode- the service code; may benullor empty.- Returns:
- this
TelematicsServiceOptionsinstance for chaining.
-
setVehicleKms
Sets the current vehicle odometer reading in kilometers.- Parameters:
vehicleKms- the odometer value in kilometers; may benull.- Returns:
- this
TelematicsServiceOptionsinstance for chaining.
-
getReason
Returns the reason for the operation.- Returns:
- the reason, or
nullif not set.
-
getObservations
Returns any additional observations provided.- Returns:
- the observations, or
nullif not set.
-
getRealVolume
Returns the real volume value.- Returns:
- the real volume, or
nullif not set.
-
getServiceCode
Returns the service code.- Returns:
- the service code, or
nullif not set.
-
getVehicleKms
Returns the vehicle odometer reading in kilometers.- Returns:
- the odometer reading, or
nullif not set.
-