TransportSpecification.ScooterBuilder (API Reference)
Package com.here.sdk.transport
Class TransportSpecification.ScooterBuilder
java.lang.Object
com.here.NativeBase
com.here.sdk.transport.TransportSpecification.ScooterBuilder
- Enclosing class:
- TransportSpecification
This class constructs a TransportSpecification for a scooter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theTransportSpecificationobject for a scooter with the specifications taken from theTransportSpecification.ScooterBuilderobject.withScooterSpecification(ScooterSpecification scooterSpecification) Sets the scooter specification.withVehicleSpecification(VehicleSpecification vehicleSpecification) Sets the vehicle specification.
-
Constructor Details
-
ScooterBuilder
public ScooterBuilder()Creates a new instance of this class.
-
-
Method Details
-
withScooterSpecification
@NonNull public TransportSpecification.ScooterBuilder withScooterSpecification(@NonNull ScooterSpecification scooterSpecification) Sets the scooter specification.
- Parameters:
scooterSpecification-The scooter specification.
- Returns:
The
TransportSpecification.ScooterBuilderobject with the scooter specification set to the new value.
-
withVehicleSpecification
@NonNull public TransportSpecification.ScooterBuilder withVehicleSpecification(@NonNull VehicleSpecification vehicleSpecification) Sets the vehicle specification.
- Parameters:
vehicleSpecification-The vehicle specification.
- Returns:
The
TransportSpecification.ScooterBuilderobject with the vehicle specification set to the new value.
-
build
Builds the
TransportSpecificationobject for a scooter with the specifications taken from theTransportSpecification.ScooterBuilderobject.- Returns:
The
TransportSpecificationobject created from theTransportSpecification.ScooterBuilderobject.
-