Package com.highmobility.autoapi
Class VehicleInformation.State.Builder
java.lang.Object
com.highmobility.autoapi.SetCommand.Builder<VehicleInformation.State.Builder>
com.highmobility.autoapi.VehicleInformation.State.Builder
- Enclosing class:
- VehicleInformation.State
public static final class VehicleInformation.State.Builder
extends SetCommand.Builder<VehicleInformation.State.Builder>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEquipment(Property<String> equipment) Add a single equipmentaddExtraEquipmentCode(Property<String> extraEquipmentCode) Add a single extra equipment codebuild()setBuildDate(Property<Calendar> buildDate) setColourName(Property<String> colourName) setCountryCode(Property<String> countryCode) setDataQuality(Property<VehicleInformation.DataQuality> dataQuality) setDisplayUnit(Property<VehicleInformation.DisplayUnit> displayUnit) setDrive(Property<VehicleInformation.Drive> drive) setDriverSeatLocation(Property<VehicleInformation.DriverSeatLocation> driverSeatLocation) setEngineMaxTorque(Property<com.highmobility.autoapi.value.measurement.Torque> engineMaxTorque) setEngineVolume(Property<com.highmobility.autoapi.value.measurement.Volume> engineVolume) setEquipments(Property<String>[] equipments) Add an array of equipmentssetExtraEquipmentCodes(Property<String>[] extraEquipmentCodes) Add an array of extra equipment codessetFuelTankCapacity(Property<com.highmobility.autoapi.value.measurement.Volume> fuelTankCapacity) setGearbox(Property<VehicleInformation.Gearbox> gearbox) setLanguage(Property<String> language) setLastDataTransferDate(Property<Calendar> lastDataTransferDate) setLicensePlate(Property<String> licensePlate) setModelKey(Property<String> modelKey) setModelName(Property<String> modelName) setModelYear(Property<Integer> modelYear) setNumberOfDoors(Property<Integer> numberOfDoors) setNumberOfSeats(Property<Integer> numberOfSeats) setPowerInKW(Property<com.highmobility.autoapi.value.measurement.Power> powerInKW) Deprecated.removed the unit from the name.setPowertrain(Property<EngineType> powertrain) setPowertrainSecondary(Property<EngineType> powertrainSecondary) setSalesDesignation(Property<String> salesDesignation) setTimeformat(Property<VehicleInformation.Timeformat> timeformat) setTimeZone(Property<VehicleInformation.TimeZone> timeZone) setVehicleMass(Property<com.highmobility.autoapi.value.measurement.Mass> vehicleMass) 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<VehicleInformation.State.Builder>
-
setPowertrain
- Parameters:
powertrain- Type of the (primary) powertrain- Returns:
- The builder
-
setModelName
- Parameters:
modelName- The vehicle model name- Returns:
- The builder
-
setName
- Parameters:
name- The vehicle name (nickname)- Returns:
- The builder
-
setLicensePlate
- Parameters:
licensePlate- The license plate number- Returns:
- The builder
-
setSalesDesignation
- Parameters:
salesDesignation- The sales designation of the model- Returns:
- The builder
-
setModelYear
- Parameters:
modelYear- The vehicle model manufacturing year number- Returns:
- The builder
-
setColourName
- Parameters:
colourName- The colour name- Returns:
- The builder
-
setPowerInKW
@Deprecated public VehicleInformation.State.Builder setPowerInKW(Property<com.highmobility.autoapi.value.measurement.Power> powerInKW) Deprecated.removed the unit from the name. Replaced byVehicleInformation.State.getPower()- Parameters:
powerInKW- The power of the vehicle- Returns:
- The builder
-
setNumberOfDoors
- Parameters:
numberOfDoors- The number of doors- Returns:
- The builder
-
setNumberOfSeats
- Parameters:
numberOfSeats- The number of seats- Returns:
- The builder
-
setEngineVolume
public VehicleInformation.State.Builder setEngineVolume(Property<com.highmobility.autoapi.value.measurement.Volume> engineVolume) - Parameters:
engineVolume- The engine volume displacement- Returns:
- The builder
-
setEngineMaxTorque
public VehicleInformation.State.Builder setEngineMaxTorque(Property<com.highmobility.autoapi.value.measurement.Torque> engineMaxTorque) - Parameters:
engineMaxTorque- The maximum engine torque- Returns:
- The builder
-
setGearbox
- Parameters:
gearbox- The gearbox- Returns:
- The builder
-
setDisplayUnit
public VehicleInformation.State.Builder setDisplayUnit(Property<VehicleInformation.DisplayUnit> displayUnit) - Parameters:
displayUnit- The display unit- Returns:
- The builder
-
setDriverSeatLocation
public VehicleInformation.State.Builder setDriverSeatLocation(Property<VehicleInformation.DriverSeatLocation> driverSeatLocation) - Parameters:
driverSeatLocation- The driver seat location- Returns:
- The builder
-
setEquipments
Add an array of equipments- Parameters:
equipments- The equipments. Names of equipment the vehicle is equipped with- Returns:
- The builder
-
addEquipment
Add a single equipment- Parameters:
equipment- The equipment. Names of equipment the vehicle is equipped with- Returns:
- The builder
-
setPower
public VehicleInformation.State.Builder setPower(Property<com.highmobility.autoapi.value.measurement.Power> power) - Parameters:
power- The power of the vehicle- Returns:
- The builder
-
setLanguage
- Parameters:
language- The language on headunit- Returns:
- The builder
-
setTimeformat
public VehicleInformation.State.Builder setTimeformat(Property<VehicleInformation.Timeformat> timeformat) - Parameters:
timeformat- The timeformat on headunit- Returns:
- The builder
-
setDrive
- Parameters:
drive- Wheels driven by the engine- Returns:
- The builder
-
setPowertrainSecondary
public VehicleInformation.State.Builder setPowertrainSecondary(Property<EngineType> powertrainSecondary) - Parameters:
powertrainSecondary- The powertrain secondary- Returns:
- The builder
-
setFuelTankCapacity
public VehicleInformation.State.Builder setFuelTankCapacity(Property<com.highmobility.autoapi.value.measurement.Volume> fuelTankCapacity) - Parameters:
fuelTankCapacity- The fuel tank capacity measured in liters- Returns:
- The builder
-
setBuildDate
- Parameters:
buildDate- Build (construction) date of the vehicle.- Returns:
- The builder
-
setCountryCode
- Parameters:
countryCode- The country code of the vehicle.- Returns:
- The builder
-
setModelKey
- Parameters:
modelKey- The model key of the vehicle.- Returns:
- The builder
-
setDataQuality
public VehicleInformation.State.Builder setDataQuality(Property<VehicleInformation.DataQuality> dataQuality) - Parameters:
dataQuality- Evaluation of the timeliness of the available vehicle data.- Returns:
- The builder
-
setExtraEquipmentCodes
public VehicleInformation.State.Builder setExtraEquipmentCodes(Property<String>[] extraEquipmentCodes) Add an array of extra equipment codes- Parameters:
extraEquipmentCodes- The extra equipment codes. Codes of the extra equipment the vehicle has- Returns:
- The builder
-
addExtraEquipmentCode
Add a single extra equipment code- Parameters:
extraEquipmentCode- The extra equipment code. Codes of the extra equipment the vehicle has- Returns:
- The builder
-
setSeries
- Parameters:
series- The vehicle model's series- Returns:
- The builder
-
setLastDataTransferDate
public VehicleInformation.State.Builder setLastDataTransferDate(Property<Calendar> lastDataTransferDate) - Parameters:
lastDataTransferDate- The last trip date- Returns:
- The builder
-
setTimeZone
- Parameters:
timeZone- Time zone setting in the vehicle.- Returns:
- The builder
-
setVehicleMass
public VehicleInformation.State.Builder setVehicleMass(Property<com.highmobility.autoapi.value.measurement.Mass> vehicleMass) - Parameters:
vehicleMass- Vehicle mass.- Returns:
- The builder
-