Package com.highmobility.autoapi
Class ChargingSession.State.Builder
java.lang.Object
com.highmobility.autoapi.SetCommand.Builder<ChargingSession.State.Builder>
com.highmobility.autoapi.ChargingSession.State.Builder
- Enclosing class:
- ChargingSession.State
public static final class ChargingSession.State.Builder
extends SetCommand.Builder<ChargingSession.State.Builder>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBusinessError(Property<String> businessError) Add a single business erroraddPublicChargingPoint(Property<ChargingPoint> publicChargingPoint) Add a single public charging pointbuild()setBusinessErrors(Property<String>[] businessErrors) Add an array of business errorssetCalculatedEnergyCharged(Property<com.highmobility.autoapi.value.measurement.Energy> calculatedEnergyCharged) setChargingCost(Property<ChargingCost> chargingCost) setDisplayedStartStateOfCharge(Property<Double> displayedStartStateOfCharge) setDisplayedStateOfCharge(Property<Double> displayedStateOfCharge) setEndTime(Property<Calendar> endTime) setEnergyCharged(Property<com.highmobility.autoapi.value.measurement.Energy> energyCharged) setLocation(Property<ChargingLocation> location) setOdometer(Property<com.highmobility.autoapi.value.measurement.Length> odometer) setPreconditioningState(Property<ActiveState> preconditioningState) setPublicChargingPoints(Property<ChargingPoint>[] publicChargingPoints) Add an array of public charging pointssetStartTime(Property<Calendar> startTime) setTimeZone(Property<String> timeZone) setTotalChargingDuration(Property<com.highmobility.autoapi.value.measurement.Duration> totalChargingDuration) Methods inherited from class com.highmobility.autoapi.SetCommand.Builder
addProperty, getProperties, setBrand, setNonce, setSignature, setTimestamp, setVin
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
- Overrides:
buildin classSetCommand.Builder<ChargingSession.State.Builder>
-
setPublicChargingPoints
public ChargingSession.State.Builder setPublicChargingPoints(Property<ChargingPoint>[] publicChargingPoints) Add an array of public charging points- Parameters:
publicChargingPoints- The public charging points. Matching public charging points.- Returns:
- The builder
-
addPublicChargingPoint
public ChargingSession.State.Builder addPublicChargingPoint(Property<ChargingPoint> publicChargingPoint) Add a single public charging point- Parameters:
publicChargingPoint- The public charging point. Matching public charging points.- Returns:
- The builder
-
setDisplayedStateOfCharge
public ChargingSession.State.Builder setDisplayedStateOfCharge(Property<Double> displayedStateOfCharge) - Parameters:
displayedStateOfCharge- Displayed state of charge to the driver- Returns:
- The builder
-
setDisplayedStartStateOfCharge
public ChargingSession.State.Builder setDisplayedStartStateOfCharge(Property<Double> displayedStartStateOfCharge) - Parameters:
displayedStartStateOfCharge- Displayed state of charge at start to the driver- Returns:
- The builder
-
setBusinessErrors
Add an array of business errors- Parameters:
businessErrors- The business errors- Returns:
- The builder
-
addBusinessError
Add a single business error- Parameters:
businessError- The business error- Returns:
- The builder
-
setTimeZone
- Parameters:
timeZone- Time zone of the charging session- Returns:
- The builder
-
setStartTime
- Parameters:
startTime- Start time of the charging session- Returns:
- The builder
-
setEndTime
- Parameters:
endTime- End time of the charging session- Returns:
- The builder
-
setTotalChargingDuration
public ChargingSession.State.Builder setTotalChargingDuration(Property<com.highmobility.autoapi.value.measurement.Duration> totalChargingDuration) - Parameters:
totalChargingDuration- Total time charging was active during the session- Returns:
- The builder
-
setCalculatedEnergyCharged
public ChargingSession.State.Builder setCalculatedEnergyCharged(Property<com.highmobility.autoapi.value.measurement.Energy> calculatedEnergyCharged) - Parameters:
calculatedEnergyCharged- Calculated amount of energy charged during the session- Returns:
- The builder
-
setEnergyCharged
public ChargingSession.State.Builder setEnergyCharged(Property<com.highmobility.autoapi.value.measurement.Energy> energyCharged) - Parameters:
energyCharged- Energy charged during the session- Returns:
- The builder
-
setPreconditioningState
public ChargingSession.State.Builder setPreconditioningState(Property<ActiveState> preconditioningState) - Parameters:
preconditioningState- Preconditioning is active or not- Returns:
- The builder
-
setOdometer
public ChargingSession.State.Builder setOdometer(Property<com.highmobility.autoapi.value.measurement.Length> odometer) - Parameters:
odometer- The vehicle odometer value in a given units- Returns:
- The builder
-
setChargingCost
- Parameters:
chargingCost- Charging cost information- Returns:
- The builder
-
setLocation
- Parameters:
location- Charging location address- Returns:
- The builder
-