AWS SDK for C++

AWS SDK for C++ Version 1.11.793

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
61 inline const RoutePedestrianOptions& GetPedestrian() const { return m_pedestrian; }
62 inline bool PedestrianHasBeenSet() const { return m_pedestrianHasBeenSet; }
63 template <typename PedestrianT = RoutePedestrianOptions>
64 void SetPedestrian(PedestrianT&& value) {
65 m_pedestrianHasBeenSet = true;
66 m_pedestrian = std::forward<PedestrianT>(value);
67 }
68 template <typename PedestrianT = RoutePedestrianOptions>
69 RouteTravelModeOptions& WithPedestrian(PedestrianT&& value) {
70 SetPedestrian(std::forward<PedestrianT>(value));
71 return *this;
72 }
74
76
82 inline const RouteScooterOptions& GetScooter() const { return m_scooter; }
83 inline bool ScooterHasBeenSet() const { return m_scooterHasBeenSet; }
84 template <typename ScooterT = RouteScooterOptions>
85 void SetScooter(ScooterT&& value) {
86 m_scooterHasBeenSet = true;
87 m_scooter = std::forward<ScooterT>(value);
88 }
89 template <typename ScooterT = RouteScooterOptions>
91 SetScooter(std::forward<ScooterT>(value));
92 return *this;
93 }
95
97
100 inline const RouteTruckOptions& GetTruck() const { return m_truck; }
101 inline bool TruckHasBeenSet() const { return m_truckHasBeenSet; }
102 template <typename TruckT = RouteTruckOptions>
103 void SetTruck(TruckT&& value) {
104 m_truckHasBeenSet = true;
105 m_truck = std::forward<TruckT>(value);
106 }
107 template <typename TruckT = RouteTruckOptions>
109 SetTruck(std::forward<TruckT>(value));
110 return *this;
111 }
113 private:
114 RouteCarOptions m_car;
115
116 RoutePedestrianOptions m_pedestrian;
117
118 RouteScooterOptions m_scooter;
119
120 RouteTruckOptions m_truck;
121 bool m_carHasBeenSet = false;
122 bool m_pedestrianHasBeenSet = false;
123 bool m_scooterHasBeenSet = false;
124 bool m_truckHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace GeoRoutes
129} // 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