Interface CalculateRouteTruckModeOptions.Builder

All Superinterfaces:
Buildable, CopyableBuilder<CalculateRouteTruckModeOptions.Builder,CalculateRouteTruckModeOptions>, SdkBuilder<CalculateRouteTruckModeOptions.Builder,CalculateRouteTruckModeOptions>, SdkPojo
Enclosing class:
CalculateRouteTruckModeOptions

public static interface CalculateRouteTruckModeOptions.Builder extends SdkPojo, CopyableBuilder<CalculateRouteTruckModeOptions.Builder,CalculateRouteTruckModeOptions>
  • Method Details

    • avoidFerries

      CalculateRouteTruckModeOptions.Builder avoidFerries(Boolean 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

      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 the TruckDimensions.Builder avoiding the need to create one manually via TruckDimensions.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to dimensions(TruckDimensions).

      Parameters:
      dimensions - a consumer that will call methods on TruckDimensions.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 the TruckWeight.Builder avoiding the need to create one manually via TruckWeight.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to weight(TruckWeight).

      Parameters:
      weight - a consumer that will call methods on TruckWeight.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: