Builder

class Builder

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

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
fun Builder()

Functions

Link copied to clipboard
fun build(): CombustionVehicleDescriptor

Creates a new instance of the CombustionVehicleDescriptor.

Link copied to clipboard
fun vehicleConsumption(vehicleConsumption: CombustionVehicleConsumption): CombustionVehicleDescriptor.Builder

Specifies the consumption model of the vehicle.

Link copied to clipboard
fun vehicleDimensions(vehicleDimensions: VehicleDimensions): CombustionVehicleDescriptor.Builder

Specifies the dimensions of the vehicle.

Link copied to clipboard
fun vehicleEfficiency(vehicleEfficiency: VehicleEfficiency): CombustionVehicleDescriptor.Builder

Specifies the efficiency of the vehicle.

Link copied to clipboard
fun vehicleRestrictions(vehicleRestrictions: VehicleRestrictions): CombustionVehicleDescriptor.Builder

Specifies the restriction that this vehicle should be subjected to.