AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CalculateRouteTruckModeOptions.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/location/model/TruckDimensions.h>
9#include <aws/location/model/TruckWeight.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LocationService {
21namespace Model {
22
30 public:
31 AWS_LOCATIONSERVICE_API CalculateRouteTruckModeOptions() = default;
34 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline bool GetAvoidFerries() const { return m_avoidFerries; }
43 inline bool AvoidFerriesHasBeenSet() const { return m_avoidFerriesHasBeenSet; }
44 inline void SetAvoidFerries(bool value) {
45 m_avoidFerriesHasBeenSet = true;
46 m_avoidFerries = value;
47 }
49 SetAvoidFerries(value);
50 return *this;
51 }
53
55
60 inline bool GetAvoidTolls() const { return m_avoidTolls; }
61 inline bool AvoidTollsHasBeenSet() const { return m_avoidTollsHasBeenSet; }
62 inline void SetAvoidTolls(bool value) {
63 m_avoidTollsHasBeenSet = true;
64 m_avoidTolls = value;
65 }
67 SetAvoidTolls(value);
68 return *this;
69 }
71
73
78 inline const TruckDimensions& GetDimensions() const { return m_dimensions; }
79 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
80 template <typename DimensionsT = TruckDimensions>
81 void SetDimensions(DimensionsT&& value) {
82 m_dimensionsHasBeenSet = true;
83 m_dimensions = std::forward<DimensionsT>(value);
84 }
85 template <typename DimensionsT = TruckDimensions>
87 SetDimensions(std::forward<DimensionsT>(value));
88 return *this;
89 }
91
93
97 inline const TruckWeight& GetWeight() const { return m_weight; }
98 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
99 template <typename WeightT = TruckWeight>
100 void SetWeight(WeightT&& value) {
101 m_weightHasBeenSet = true;
102 m_weight = std::forward<WeightT>(value);
103 }
104 template <typename WeightT = TruckWeight>
106 SetWeight(std::forward<WeightT>(value));
107 return *this;
108 }
110 private:
111 bool m_avoidFerries{false};
112
113 bool m_avoidTolls{false};
114
115 TruckDimensions m_dimensions;
116
117 TruckWeight m_weight;
118 bool m_avoidFerriesHasBeenSet = false;
119 bool m_avoidTollsHasBeenSet = false;
120 bool m_dimensionsHasBeenSet = false;
121 bool m_weightHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace LocationService
126} // namespace Aws
AWS_LOCATIONSERVICE_API CalculateRouteTruckModeOptions()=default
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
CalculateRouteTruckModeOptions & WithDimensions(DimensionsT &&value)
AWS_LOCATIONSERVICE_API CalculateRouteTruckModeOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LOCATIONSERVICE_API CalculateRouteTruckModeOptions(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue