Interface RoadSnapTruckOptions.Builder

  • Method Details

    • grossWeight

      RoadSnapTruckOptions.Builder grossWeight(Long grossWeight)

      Gross weight of the vehicle including trailers, and goods at capacity.

      Unit: Kilograms

      Parameters:
      grossWeight - Gross weight of the vehicle including trailers, and goods at capacity.

      Unit: Kilograms

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hazardousCargosWithStrings

      RoadSnapTruckOptions.Builder hazardousCargosWithStrings(Collection<String> hazardousCargos)

      List of Hazardous cargos contained in the vehicle.

      Parameters:
      hazardousCargos - List of Hazardous cargos contained in the vehicle.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hazardousCargosWithStrings

      RoadSnapTruckOptions.Builder hazardousCargosWithStrings(String... hazardousCargos)

      List of Hazardous cargos contained in the vehicle.

      Parameters:
      hazardousCargos - List of Hazardous cargos contained in the vehicle.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hazardousCargos

      List of Hazardous cargos contained in the vehicle.

      Parameters:
      hazardousCargos - List of Hazardous cargos contained in the vehicle.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hazardousCargos

      RoadSnapTruckOptions.Builder hazardousCargos(RoadSnapHazardousCargoType... hazardousCargos)

      List of Hazardous cargos contained in the vehicle.

      Parameters:
      hazardousCargos - List of Hazardous cargos contained in the vehicle.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • height

      Height of the vehicle.

      Unit: centimeters

      Parameters:
      height - Height of the vehicle.

      Unit: centimeters

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • length

      Length of the vehicle.

      Unit: centimeters

      Parameters:
      length - Length of the vehicle.

      Unit: centimeters

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trailer

      Trailer options corresponding to the vehicle.

      Parameters:
      trailer - Trailer options corresponding to the vehicle.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trailer

      Trailer options corresponding to the vehicle.

      This is a convenience method that creates an instance of the RoadSnapTrailerOptions.Builder avoiding the need to create one manually via RoadSnapTrailerOptions.builder().

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

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

      RoadSnapTruckOptions.Builder tunnelRestrictionCode(String tunnelRestrictionCode)

      The tunnel restriction code.

      Tunnel categories in this list indicate the restrictions which apply to certain tunnels in Great Britain. They relate to the types of dangerous goods that can be transported through them.

      • Tunnel Category B

        • Risk Level: Limited risk

        • Restrictions: Few restrictions

      • Tunnel Category C

        • Risk Level: Medium risk

        • Restrictions: Some restrictions

      • Tunnel Category D

        • Risk Level: High risk

        • Restrictions: Many restrictions occur

      • Tunnel Category E

        • Risk Level: Very high risk

        • Restrictions: Restricted tunnel

      Parameters:
      tunnelRestrictionCode - The tunnel restriction code.

      Tunnel categories in this list indicate the restrictions which apply to certain tunnels in Great Britain. They relate to the types of dangerous goods that can be transported through them.

      • Tunnel Category B

        • Risk Level: Limited risk

        • Restrictions: Few restrictions

      • Tunnel Category C

        • Risk Level: Medium risk

        • Restrictions: Some restrictions

      • Tunnel Category D

        • Risk Level: High risk

        • Restrictions: Many restrictions occur

      • Tunnel Category E

        • Risk Level: Very high risk

        • Restrictions: Restricted tunnel

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • width

      Width of the vehicle in centimenters.

      Parameters:
      width - Width of the vehicle in centimenters.
      Returns:
      Returns a reference to this object so that method calls can be chained together.