AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LocationService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LOCATIONSERVICE_API CalculateRouteTruckModeOptions() = default;
39 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline bool GetAvoidFerries() const { return m_avoidFerries; }
49 inline bool AvoidFerriesHasBeenSet() const { return m_avoidFerriesHasBeenSet; }
50 inline void SetAvoidFerries(bool value) { m_avoidFerriesHasBeenSet = true; m_avoidFerries = value; }
51 inline CalculateRouteTruckModeOptions& WithAvoidFerries(bool value) { SetAvoidFerries(value); return *this;}
53
55
60 inline bool GetAvoidTolls() const { return m_avoidTolls; }
61 inline bool AvoidTollsHasBeenSet() const { return m_avoidTollsHasBeenSet; }
62 inline void SetAvoidTolls(bool value) { m_avoidTollsHasBeenSet = true; m_avoidTolls = value; }
63 inline CalculateRouteTruckModeOptions& WithAvoidTolls(bool value) { SetAvoidTolls(value); return *this;}
65
67
72 inline const TruckDimensions& GetDimensions() const { return m_dimensions; }
73 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
74 template<typename DimensionsT = TruckDimensions>
75 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::forward<DimensionsT>(value); }
76 template<typename DimensionsT = TruckDimensions>
77 CalculateRouteTruckModeOptions& WithDimensions(DimensionsT&& value) { SetDimensions(std::forward<DimensionsT>(value)); return *this;}
79
81
85 inline const TruckWeight& GetWeight() const { return m_weight; }
86 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
87 template<typename WeightT = TruckWeight>
88 void SetWeight(WeightT&& value) { m_weightHasBeenSet = true; m_weight = std::forward<WeightT>(value); }
89 template<typename WeightT = TruckWeight>
90 CalculateRouteTruckModeOptions& WithWeight(WeightT&& value) { SetWeight(std::forward<WeightT>(value)); return *this;}
92 private:
93
94 bool m_avoidFerries{false};
95 bool m_avoidFerriesHasBeenSet = false;
96
97 bool m_avoidTolls{false};
98 bool m_avoidTollsHasBeenSet = false;
99
100 TruckDimensions m_dimensions;
101 bool m_dimensionsHasBeenSet = false;
102
103 TruckWeight m_weight;
104 bool m_weightHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace LocationService
109} // namespace Aws
AWS_LOCATIONSERVICE_API CalculateRouteTruckModeOptions()=default
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
CalculateRouteTruckModeOptions & WithWeight(WeightT &&value)
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