Interface RouteMatrixCarOptions.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RouteMatrixCarOptions.Builder,
,RouteMatrixCarOptions> SdkBuilder<RouteMatrixCarOptions.Builder,
,RouteMatrixCarOptions> SdkPojo
- Enclosing class:
RouteMatrixCarOptions
@Mutable
@NotThreadSafe
public static interface RouteMatrixCarOptions.Builder
extends SdkPojo, CopyableBuilder<RouteMatrixCarOptions.Builder,RouteMatrixCarOptions>
-
Method Summary
Modifier and TypeMethodDescriptiondefault RouteMatrixCarOptions.Builder
licensePlate
(Consumer<RouteMatrixVehicleLicensePlate.Builder> licensePlate) The vehicle License Plate.licensePlate
(RouteMatrixVehicleLicensePlate licensePlate) The vehicle License Plate.Maximum speedThe 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 Details
-
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 RouteMatrixCarOptions.Builder licensePlate(Consumer<RouteMatrixVehicleLicensePlate.Builder> licensePlate) The vehicle License Plate.
This is a convenience method that creates an instance of theRouteMatrixVehicleLicensePlate.Builder
avoiding the need to create one manually viaRouteMatrixVehicleLicensePlate.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolicensePlate(RouteMatrixVehicleLicensePlate)
.- Parameters:
licensePlate
- a consumer that will call methods onRouteMatrixVehicleLicensePlate.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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.
-