sdk-routing / com.tomtom.online.sdk.routing.route.vehicle / VehicleDimensions / Builder

Builder

@Beta(2020, 12) class Builder

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

Constructors

<init>

Builder()

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

Functions

build

fun build(): VehicleDimensions

Creates a new instance of the VehicleDimensions.

vehicleAxleWeightInKg

fun vehicleAxleWeightInKg(vehicleAxleWeightInKg: Int): VehicleDimensions.Builder

Specifies the weight per axle of the vehicle in kg.

vehicleHeightInMeters

fun vehicleHeightInMeters(vehicleHeightInMeters: Double): VehicleDimensions.Builder

Specifies the height of the vehicle in meters.

vehicleLengthInMeters

fun vehicleLengthInMeters(vehicleLengthInMeters: Double): VehicleDimensions.Builder

Specifies the length of the vehicle in meters.

vehicleWeightInKg

fun vehicleWeightInKg(vehicleWeightInKg: Int): VehicleDimensions.Builder

Specifies the weight of the vehicle in kilograms.

vehicleWidthInMeters

fun vehicleWidthInMeters(vehicleWidthInMeters: Double): VehicleDimensions.Builder

Specifies the width of the vehicle in meters.