AWS SDK for C++

AWS SDK for C++ Version 1.11.770

Loading...
Searching...
No Matches
RouteTravelModeOptions.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/RouteCarOptions.h>
9#include <aws/geo-routes/model/RoutePedestrianOptions.h>
10#include <aws/geo-routes/model/RouteScooterOptions.h>
11#include <aws/geo-routes/model/RouteTruckOptions.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GeoRoutes {
23namespace Model {
24
32 public:
33 AWS_GEOROUTES_API RouteTravelModeOptions() = default;
36 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const RouteCarOptions& GetCar() const { return m_car; }
43 inline bool CarHasBeenSet() const { return m_carHasBeenSet; }
44 template <typename CarT = RouteCarOptions>
45 void SetCar(CarT&& value) {
46 m_carHasBeenSet = true;
47 m_car = std::forward<CarT>(value);
48 }
49 template <typename CarT = RouteCarOptions>
51 SetCar(std::forward<CarT>(value));
52 return *this;
53 }
55
57
60 inline const RoutePedestrianOptions& GetPedestrian() const { return m_pedestrian; }
61 inline bool PedestrianHasBeenSet() const { return m_pedestrianHasBeenSet; }
62 template <typename PedestrianT = RoutePedestrianOptions>
63 void SetPedestrian(PedestrianT&& value) {
64 m_pedestrianHasBeenSet = true;
65 m_pedestrian = std::forward<PedestrianT>(value);
66 }
67 template <typename PedestrianT = RoutePedestrianOptions>
68 RouteTravelModeOptions& WithPedestrian(PedestrianT&& value) {
69 SetPedestrian(std::forward<PedestrianT>(value));
70 return *this;
71 }
73
75
81 inline const RouteScooterOptions& GetScooter() const { return m_scooter; }
82 inline bool ScooterHasBeenSet() const { return m_scooterHasBeenSet; }
83 template <typename ScooterT = RouteScooterOptions>
84 void SetScooter(ScooterT&& value) {
85 m_scooterHasBeenSet = true;
86 m_scooter = std::forward<ScooterT>(value);
87 }
88 template <typename ScooterT = RouteScooterOptions>
90 SetScooter(std::forward<ScooterT>(value));
91 return *this;
92 }
94
96
99 inline const RouteTruckOptions& GetTruck() const { return m_truck; }
100 inline bool TruckHasBeenSet() const { return m_truckHasBeenSet; }
101 template <typename TruckT = RouteTruckOptions>
102 void SetTruck(TruckT&& value) {
103 m_truckHasBeenSet = true;
104 m_truck = std::forward<TruckT>(value);
105 }
106 template <typename TruckT = RouteTruckOptions>
108 SetTruck(std::forward<TruckT>(value));
109 return *this;
110 }
112 private:
113 RouteCarOptions m_car;
114
115 RoutePedestrianOptions m_pedestrian;
116
117 RouteScooterOptions m_scooter;
118
119 RouteTruckOptions m_truck;
120 bool m_carHasBeenSet = false;
121 bool m_pedestrianHasBeenSet = false;
122 bool m_scooterHasBeenSet = false;
123 bool m_truckHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace GeoRoutes
128} // namespace Aws
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOROUTES_API RouteTravelModeOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteTravelModeOptions & WithCar(CarT &&value)
AWS_GEOROUTES_API RouteTravelModeOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteTravelModeOptions()=default
const RoutePedestrianOptions & GetPedestrian() const
RouteTravelModeOptions & WithPedestrian(PedestrianT &&value)
const RouteScooterOptions & GetScooter() const
RouteTravelModeOptions & WithTruck(TruckT &&value)
RouteTravelModeOptions & WithScooter(ScooterT &&value)
Aws::Utils::Json::JsonValue JsonValue