Interface CalculateRouteTruckModeOptions.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CalculateRouteTruckModeOptions.Builder,
,CalculateRouteTruckModeOptions> SdkBuilder<CalculateRouteTruckModeOptions.Builder,
,CalculateRouteTruckModeOptions> SdkPojo
- Enclosing class:
CalculateRouteTruckModeOptions
-
Method Summary
Modifier and TypeMethodDescriptionavoidFerries
(Boolean avoidFerries) Avoids ferries when calculating routes.avoidTolls
(Boolean avoidTolls) Avoids tolls when calculating routes.dimensions
(Consumer<TruckDimensions.Builder> dimensions) Specifies the truck's dimension specifications including length, height, width, and unit of measurement.dimensions
(TruckDimensions dimensions) Specifies the truck's dimension specifications including length, height, width, and unit of measurement.weight
(Consumer<TruckWeight.Builder> weight) Specifies the truck's weight specifications including total weight and unit of measurement.weight
(TruckWeight weight) Specifies the truck's weight specifications including total weight and unit of measurement.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, sdkFields
-
Method Details
-
avoidFerries
Avoids ferries when calculating routes.
Default Value:
false
Valid Values:
false
|true
- Parameters:
avoidFerries
- Avoids ferries when calculating routes.Default Value:
false
Valid Values:
false
|true
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
avoidTolls
Avoids tolls when calculating routes.
Default Value:
false
Valid Values:
false
|true
- Parameters:
avoidTolls
- Avoids tolls when calculating routes.Default Value:
false
Valid Values:
false
|true
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
Specifies the truck's dimension specifications including length, height, width, and unit of measurement. Used to avoid roads that can't support the truck's dimensions.
- Parameters:
dimensions
- Specifies the truck's dimension specifications including length, height, width, and unit of measurement. Used to avoid roads that can't support the truck's dimensions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
default CalculateRouteTruckModeOptions.Builder dimensions(Consumer<TruckDimensions.Builder> dimensions) Specifies the truck's dimension specifications including length, height, width, and unit of measurement. Used to avoid roads that can't support the truck's dimensions.
This is a convenience method that creates an instance of theTruckDimensions.Builder
avoiding the need to create one manually viaTruckDimensions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todimensions(TruckDimensions)
.- Parameters:
dimensions
- a consumer that will call methods onTruckDimensions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
weight
Specifies the truck's weight specifications including total weight and unit of measurement. Used to avoid roads that can't support the truck's weight.
- Parameters:
weight
- Specifies the truck's weight specifications including total weight and unit of measurement. Used to avoid roads that can't support the truck's weight.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
weight
Specifies the truck's weight specifications including total weight and unit of measurement. Used to avoid roads that can't support the truck's weight.
This is a convenience method that creates an instance of theTruckWeight.Builder
avoiding the need to create one manually viaTruckWeight.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toweight(TruckWeight)
.- Parameters:
weight
- a consumer that will call methods onTruckWeight.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-