VehicleSpecification.ScooterBuilder (API Reference)
Package com.here.sdk.transport
Class VehicleSpecification.ScooterBuilder
java.lang.Object
com.here.NativeBase
com.here.sdk.transport.VehicleSpecification.ScooterBuilder
- Enclosing class:
- VehicleSpecification
This class constructs a VehicleSpecification for a scooter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theVehicleSpecificationobject forTransportMode.SCOOTERwith the specifications taken from theVehicleSpecification.ScooterBuilderobject.withEngineSizeInCubicCentimeters(int engineSizeInCubicCentimeters) Sets the vehicle engine size in cubic centimeters.withOccupancy(int occupancy) Sets the vehicle occupants number.
-
Constructor Details
-
ScooterBuilder
public ScooterBuilder()Creates a new instance of this class.
-
-
Method Details
-
withEngineSizeInCubicCentimeters
@NonNull public VehicleSpecification.ScooterBuilder withEngineSizeInCubicCentimeters(int engineSizeInCubicCentimeters) Sets the vehicle engine size in cubic centimeters.
- Parameters:
engineSizeInCubicCentimeters-The vehicle engine size in cubic centimeters.
- Returns:
The
VehicleSpecification.ScooterBuilderobject with the engine size set to the new value.
-
withOccupancy
Sets the vehicle occupants number.
- Parameters:
occupancy-The vehicle occupants number.
- Returns:
The
VehicleSpecification.ScooterBuilderobject with the vehicle occupants number set to the new value.
-
build
Builds the
VehicleSpecificationobject forTransportMode.SCOOTERwith the specifications taken from theVehicleSpecification.ScooterBuilderobject.- Returns:
The
VehicleSpecificationobject created from theVehicleSpecification.ScooterBuilderobject.
-