AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDimensions(const TruckDimensions& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
75 inline void SetDimensions(TruckDimensions&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
76 inline CalculateRouteTruckModeOptions& WithDimensions(const TruckDimensions& value) { SetDimensions(value); return *this;}
77 inline CalculateRouteTruckModeOptions& WithDimensions(TruckDimensions&& value) { SetDimensions(std::move(value)); return *this;}
79
81
85 inline const TruckWeight& GetWeight() const{ return m_weight; }
86 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
87 inline void SetWeight(const TruckWeight& value) { m_weightHasBeenSet = true; m_weight = value; }
88 inline void SetWeight(TruckWeight&& value) { m_weightHasBeenSet = true; m_weight = std::move(value); }
89 inline CalculateRouteTruckModeOptions& WithWeight(const TruckWeight& value) { SetWeight(value); return *this;}
90 inline CalculateRouteTruckModeOptions& WithWeight(TruckWeight&& value) { SetWeight(std::move(value)); return *this;}
92 private:
93
94 bool m_avoidFerries;
95 bool m_avoidFerriesHasBeenSet = false;
96
97 bool m_avoidTolls;
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
CalculateRouteTruckModeOptions & WithDimensions(const TruckDimensions &value)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
CalculateRouteTruckModeOptions & WithWeight(TruckWeight &&value)
AWS_LOCATIONSERVICE_API CalculateRouteTruckModeOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
CalculateRouteTruckModeOptions & WithWeight(const TruckWeight &value)
CalculateRouteTruckModeOptions & WithDimensions(TruckDimensions &&value)
AWS_LOCATIONSERVICE_API CalculateRouteTruckModeOptions(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue