Interface RouteScooterOptions.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RouteScooterOptions.Builder,RouteScooterOptions>,SdkBuilder<RouteScooterOptions.Builder,RouteScooterOptions>,SdkPojo
- Enclosing class:
- RouteScooterOptions
public static interface RouteScooterOptions.Builder extends SdkPojo, CopyableBuilder<RouteScooterOptions.Builder,RouteScooterOptions>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RouteScooterOptions.BuilderengineType(String engineType)Engine type of the vehicle.RouteScooterOptions.BuilderengineType(RouteEngineType engineType)Engine type of the vehicle.default RouteScooterOptions.BuilderlicensePlate(Consumer<RouteVehicleLicensePlate.Builder> licensePlate)The vehicle License Plate.RouteScooterOptions.BuilderlicensePlate(RouteVehicleLicensePlate licensePlate)The vehicle License Plate.RouteScooterOptions.BuildermaxSpeed(Double maxSpeed)Maximum speedRouteScooterOptions.Builderoccupancy(Integer occupancy)The number of occupants in the vehicle.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
engineType
RouteScooterOptions.Builder engineType(String engineType)
Engine type of the vehicle.
- Parameters:
engineType- Engine type of the vehicle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RouteEngineType,RouteEngineType
-
engineType
RouteScooterOptions.Builder engineType(RouteEngineType engineType)
Engine type of the vehicle.
- Parameters:
engineType- Engine type of the vehicle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RouteEngineType,RouteEngineType
-
licensePlate
RouteScooterOptions.Builder licensePlate(RouteVehicleLicensePlate licensePlate)
The vehicle License Plate.
- Parameters:
licensePlate- The vehicle License Plate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
licensePlate
default RouteScooterOptions.Builder licensePlate(Consumer<RouteVehicleLicensePlate.Builder> licensePlate)
The vehicle License Plate.
This is a convenience method that creates an instance of theRouteVehicleLicensePlate.Builderavoiding the need to create one manually viaRouteVehicleLicensePlate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolicensePlate(RouteVehicleLicensePlate).- Parameters:
licensePlate- a consumer that will call methods onRouteVehicleLicensePlate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
licensePlate(RouteVehicleLicensePlate)
-
maxSpeed
RouteScooterOptions.Builder maxSpeed(Double maxSpeed)
Maximum speed
Unit:
KilometersPerHour- Parameters:
maxSpeed- Maximum speedUnit:
KilometersPerHour- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
occupancy
RouteScooterOptions.Builder occupancy(Integer occupancy)
The number of occupants in the vehicle.
Default Value:
1- Parameters:
occupancy- The number of occupants in the vehicle.Default Value:
1- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-