AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GeoRoutes
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_GEOROUTES_API RouteTravelModeOptions() = default;
41 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const RouteCarOptions& GetCar() const { return m_car; }
49 inline bool CarHasBeenSet() const { return m_carHasBeenSet; }
50 template<typename CarT = RouteCarOptions>
51 void SetCar(CarT&& value) { m_carHasBeenSet = true; m_car = std::forward<CarT>(value); }
52 template<typename CarT = RouteCarOptions>
53 RouteTravelModeOptions& WithCar(CarT&& value) { SetCar(std::forward<CarT>(value)); return *this;}
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) { m_pedestrianHasBeenSet = true; m_pedestrian = std::forward<PedestrianT>(value); }
64 template<typename PedestrianT = RoutePedestrianOptions>
65 RouteTravelModeOptions& WithPedestrian(PedestrianT&& value) { SetPedestrian(std::forward<PedestrianT>(value)); return *this;}
67
69
75 inline const RouteScooterOptions& GetScooter() const { return m_scooter; }
76 inline bool ScooterHasBeenSet() const { return m_scooterHasBeenSet; }
77 template<typename ScooterT = RouteScooterOptions>
78 void SetScooter(ScooterT&& value) { m_scooterHasBeenSet = true; m_scooter = std::forward<ScooterT>(value); }
79 template<typename ScooterT = RouteScooterOptions>
80 RouteTravelModeOptions& WithScooter(ScooterT&& value) { SetScooter(std::forward<ScooterT>(value)); return *this;}
82
84
87 inline const RouteTruckOptions& GetTruck() const { return m_truck; }
88 inline bool TruckHasBeenSet() const { return m_truckHasBeenSet; }
89 template<typename TruckT = RouteTruckOptions>
90 void SetTruck(TruckT&& value) { m_truckHasBeenSet = true; m_truck = std::forward<TruckT>(value); }
91 template<typename TruckT = RouteTruckOptions>
92 RouteTravelModeOptions& WithTruck(TruckT&& value) { SetTruck(std::forward<TruckT>(value)); return *this;}
94 private:
95
96 RouteCarOptions m_car;
97 bool m_carHasBeenSet = false;
98
99 RoutePedestrianOptions m_pedestrian;
100 bool m_pedestrianHasBeenSet = false;
101
102 RouteScooterOptions m_scooter;
103 bool m_scooterHasBeenSet = false;
104
105 RouteTruckOptions m_truck;
106 bool m_truckHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace GeoRoutes
111} // 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