Builder

class Builder

Builder used to create an instance of VehicleDimensions. 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(): VehicleDimensions

Creates a new instance of the VehicleDimensions.

Link copied to clipboard
fun vehicleAxleWeightInKg(vehicleAxleWeightInKg: Int): VehicleDimensions.Builder

Specifies the weight per axle of the vehicle in kg.

Link copied to clipboard
fun vehicleHeight(vehicleHeight: Distance): VehicleDimensions.Builder

Specifies the height of the vehicle.

Link copied to clipboard
fun vehicleLength(vehicleLength: Distance): VehicleDimensions.Builder

Specifies the length of the vehicle.

Link copied to clipboard
fun vehicleWeightInKg(vehicleWeightInKg: Int): VehicleDimensions.Builder

Specifies the weight of the vehicle in kilograms.

Link copied to clipboard
fun vehicleWidth(vehicleWidth: Distance): VehicleDimensions.Builder

Specifies the width of the vehicle.