Class VehicleSpecification.ScooterBuilder
Package com.here.sdk.transport
Class VehicleSpecification.ScooterBuilder
- java.lang.Object
-
- com.here.NativeBase
-
- com.here.sdk.transport.VehicleSpecification.ScooterBuilder
-
- Enclosing class:
- VehicleSpecification
public static final class VehicleSpecification.ScooterBuilder extends NativeBase
This class constructs a
VehicleSpecificationfor a scooter.
-
-
Constructor Summary
Constructors Constructor Description ScooterBuilder()Creates a new instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VehicleSpecificationbuild()Builds theVehicleSpecificationobject forTransportMode.SCOOTERwith the specifications taken from theVehicleSpecification.ScooterBuilderobject.VehicleSpecification.ScooterBuilderwithEngineSizeInCubicCentimeters(int engineSizeInCubicCentimeters)Sets the vehicle engine size in cubic centimeters.VehicleSpecification.ScooterBuilderwithOccupancy(int occupancy)Sets the vehicle occupants number.
-
-
-
Method Detail
-
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
@NonNull public VehicleSpecification.ScooterBuilder withOccupancy(int occupancy)
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
@NonNull public VehicleSpecification build()
Builds the
VehicleSpecificationobject forTransportMode.SCOOTERwith the specifications taken from theVehicleSpecification.ScooterBuilderobject.- Returns:
The
VehicleSpecificationobject created from theVehicleSpecification.ScooterBuilderobject.
-
-