/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains details about additional route preferences for requests that specify
* TravelMode
as Truck
.See Also:
AWS
* API Reference
Avoids ferries when calculating routes.
Default Value:
* false
Valid Values: false
| true
*
Avoids ferries when calculating routes.
Default Value:
* false
Valid Values: false
| true
*
Avoids ferries when calculating routes.
Default Value:
* false
Valid Values: false
| true
*
Avoids ferries when calculating routes.
Default Value:
* false
Valid Values: false
| true
*
Avoids tolls when calculating routes.
Default Value:
* false
Valid Values: false
| true
*
Avoids tolls when calculating routes.
Default Value:
* false
Valid Values: false
| true
*
Avoids tolls when calculating routes.
Default Value:
* false
Valid Values: false
| true
*
Avoids tolls when calculating routes.
Default Value:
* false
Valid Values: false
| true
*
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.
*/ inline const TruckDimensions& GetDimensions() const{ return m_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.
*/ inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; } /** *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.
*/ inline void SetDimensions(const TruckDimensions& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; } /** *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.
*/ inline void SetDimensions(TruckDimensions&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); } /** *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.
*/ inline CalculateRouteTruckModeOptions& WithDimensions(const TruckDimensions& value) { SetDimensions(value); return *this;} /** *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.
*/ inline CalculateRouteTruckModeOptions& WithDimensions(TruckDimensions&& value) { SetDimensions(std::move(value)); return *this;} /** *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.
*/ inline const TruckWeight& GetWeight() const{ return m_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.
*/ inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; } /** *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.
*/ inline void SetWeight(const TruckWeight& value) { m_weightHasBeenSet = true; m_weight = value; } /** *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.
*/ inline void SetWeight(TruckWeight&& value) { m_weightHasBeenSet = true; m_weight = std::move(value); } /** *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.
*/ inline CalculateRouteTruckModeOptions& WithWeight(const TruckWeight& value) { SetWeight(value); return *this;} /** *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.
*/ inline CalculateRouteTruckModeOptions& WithWeight(TruckWeight&& value) { SetWeight(std::move(value)); return *this;} private: bool m_avoidFerries; bool m_avoidFerriesHasBeenSet = false; bool m_avoidTolls; bool m_avoidTollsHasBeenSet = false; TruckDimensions m_dimensions; bool m_dimensionsHasBeenSet = false; TruckWeight m_weight; bool m_weightHasBeenSet = false; }; } // namespace Model } // namespace LocationService } // namespace Aws