@PublicPreview("2021.06") class Builder
Builder used to create an instance of CombustionVehicleDescriptor. Once constructed, the user cannot change the field values.
Builder()
Builder used to create an instance of CombustionVehicleDescriptor. Once constructed, the user cannot change the field values. |
fun build(): CombustionVehicleDescriptor
Creates a new instance of the CombustionVehicleDescriptor. |
|
fun vehicleConsumption(vehicleConsumption: CombustionVehicleConsumption): CombustionVehicleDescriptor.Builder
Specifies the consumption model of the vehicle. |
|
fun vehicleDimensions(vehicleDimensions: VehicleDimensions): CombustionVehicleDescriptor.Builder
Specifies the dimensions of the vehicle. |
|
fun vehicleEfficiency(vehicleEfficiency: VehicleEfficiency): CombustionVehicleDescriptor.Builder
Specifies the efficiency of the vehicle. |
|
fun vehicleRestrictions(vehicleRestrictions: VehicleRestrictions): CombustionVehicleDescriptor.Builder
Specifies the restriction that this vehicle should be subjected to. |