sdk-routing / com.tomtom.online.sdk.routing.route / CombustionVehicleDescriptor / Builder

Builder

@Beta(2020, 12) class Builder

Builder used to create an instance of CombustionVehicleDescriptor. Once constructed, the user cannot change the field values.

Constructors

<init>

Builder()

Builder used to create an instance of CombustionVehicleDescriptor. Once constructed, the user cannot change the field values.

Functions

build

fun build(): CombustionVehicleDescriptor

Creates a new instance of the CombustionVehicleDescriptor.

vehicleConsumption

fun vehicleConsumption(vehicleConsumption: CombustionVehicleConsumption): CombustionVehicleDescriptor.Builder

Specifies the consumption model of the vehicle.

vehicleDimensions

fun vehicleDimensions(vehicleDimensions: VehicleDimensions): CombustionVehicleDescriptor.Builder

Specifies the dimensions of the vehicle.

vehicleEfficiency

fun vehicleEfficiency(vehicleEfficiency: VehicleEfficiency): CombustionVehicleDescriptor.Builder

Specifies the efficiency of the vehicle.

vehicleRestrictions

fun vehicleRestrictions(vehicleRestrictions: VehicleRestrictions): CombustionVehicleDescriptor.Builder

Specifies the restriction that this vehicle should be subjected to.