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.BuilderlicensePlate(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.Builderavoiding the need to create one manually viaRouteMatrixVehicleLicensePlate.builder().When the
Consumercompletes,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.
-