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

Builder

@PublicPreview("2021.06") 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.