AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RouteLeg.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/RouteFerryLegDetails.h>
9#include <aws/geo-routes/model/RouteLegGeometry.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/geo-routes/model/RoutePedestrianLegDetails.h>
12#include <aws/geo-routes/model/RouteLegTravelMode.h>
13#include <aws/geo-routes/model/RouteLegType.h>
14#include <aws/geo-routes/model/RouteVehicleLegDetails.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace GeoRoutes
28{
29namespace Model
30{
31
42 {
43 public:
44 AWS_GEOROUTES_API RouteLeg();
45 AWS_GEOROUTES_API RouteLeg(Aws::Utils::Json::JsonView jsonValue);
46 AWS_GEOROUTES_API RouteLeg& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline const RouteFerryLegDetails& GetFerryLegDetails() const{ return m_ferryLegDetails; }
56 inline bool FerryLegDetailsHasBeenSet() const { return m_ferryLegDetailsHasBeenSet; }
57 inline void SetFerryLegDetails(const RouteFerryLegDetails& value) { m_ferryLegDetailsHasBeenSet = true; m_ferryLegDetails = value; }
58 inline void SetFerryLegDetails(RouteFerryLegDetails&& value) { m_ferryLegDetailsHasBeenSet = true; m_ferryLegDetails = std::move(value); }
59 inline RouteLeg& WithFerryLegDetails(const RouteFerryLegDetails& value) { SetFerryLegDetails(value); return *this;}
60 inline RouteLeg& WithFerryLegDetails(RouteFerryLegDetails&& value) { SetFerryLegDetails(std::move(value)); return *this;}
62
64
67 inline const RouteLegGeometry& GetGeometry() const{ return m_geometry; }
68 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
69 inline void SetGeometry(const RouteLegGeometry& value) { m_geometryHasBeenSet = true; m_geometry = value; }
70 inline void SetGeometry(RouteLegGeometry&& value) { m_geometryHasBeenSet = true; m_geometry = std::move(value); }
71 inline RouteLeg& WithGeometry(const RouteLegGeometry& value) { SetGeometry(value); return *this;}
72 inline RouteLeg& WithGeometry(RouteLegGeometry&& value) { SetGeometry(std::move(value)); return *this;}
74
76
79 inline const Aws::String& GetLanguage() const{ return m_language; }
80 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
81 inline void SetLanguage(const Aws::String& value) { m_languageHasBeenSet = true; m_language = value; }
82 inline void SetLanguage(Aws::String&& value) { m_languageHasBeenSet = true; m_language = std::move(value); }
83 inline void SetLanguage(const char* value) { m_languageHasBeenSet = true; m_language.assign(value); }
84 inline RouteLeg& WithLanguage(const Aws::String& value) { SetLanguage(value); return *this;}
85 inline RouteLeg& WithLanguage(Aws::String&& value) { SetLanguage(std::move(value)); return *this;}
86 inline RouteLeg& WithLanguage(const char* value) { SetLanguage(value); return *this;}
88
90
93 inline const RoutePedestrianLegDetails& GetPedestrianLegDetails() const{ return m_pedestrianLegDetails; }
94 inline bool PedestrianLegDetailsHasBeenSet() const { return m_pedestrianLegDetailsHasBeenSet; }
95 inline void SetPedestrianLegDetails(const RoutePedestrianLegDetails& value) { m_pedestrianLegDetailsHasBeenSet = true; m_pedestrianLegDetails = value; }
96 inline void SetPedestrianLegDetails(RoutePedestrianLegDetails&& value) { m_pedestrianLegDetailsHasBeenSet = true; m_pedestrianLegDetails = std::move(value); }
98 inline RouteLeg& WithPedestrianLegDetails(RoutePedestrianLegDetails&& value) { SetPedestrianLegDetails(std::move(value)); return *this;}
100
102
107 inline const RouteLegTravelMode& GetTravelMode() const{ return m_travelMode; }
108 inline bool TravelModeHasBeenSet() const { return m_travelModeHasBeenSet; }
109 inline void SetTravelMode(const RouteLegTravelMode& value) { m_travelModeHasBeenSet = true; m_travelMode = value; }
110 inline void SetTravelMode(RouteLegTravelMode&& value) { m_travelModeHasBeenSet = true; m_travelMode = std::move(value); }
111 inline RouteLeg& WithTravelMode(const RouteLegTravelMode& value) { SetTravelMode(value); return *this;}
112 inline RouteLeg& WithTravelMode(RouteLegTravelMode&& value) { SetTravelMode(std::move(value)); return *this;}
114
116
119 inline const RouteLegType& GetType() const{ return m_type; }
120 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
121 inline void SetType(const RouteLegType& value) { m_typeHasBeenSet = true; m_type = value; }
122 inline void SetType(RouteLegType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
123 inline RouteLeg& WithType(const RouteLegType& value) { SetType(value); return *this;}
124 inline RouteLeg& WithType(RouteLegType&& value) { SetType(std::move(value)); return *this;}
126
128
131 inline const RouteVehicleLegDetails& GetVehicleLegDetails() const{ return m_vehicleLegDetails; }
132 inline bool VehicleLegDetailsHasBeenSet() const { return m_vehicleLegDetailsHasBeenSet; }
133 inline void SetVehicleLegDetails(const RouteVehicleLegDetails& value) { m_vehicleLegDetailsHasBeenSet = true; m_vehicleLegDetails = value; }
134 inline void SetVehicleLegDetails(RouteVehicleLegDetails&& value) { m_vehicleLegDetailsHasBeenSet = true; m_vehicleLegDetails = std::move(value); }
135 inline RouteLeg& WithVehicleLegDetails(const RouteVehicleLegDetails& value) { SetVehicleLegDetails(value); return *this;}
136 inline RouteLeg& WithVehicleLegDetails(RouteVehicleLegDetails&& value) { SetVehicleLegDetails(std::move(value)); return *this;}
138 private:
139
140 RouteFerryLegDetails m_ferryLegDetails;
141 bool m_ferryLegDetailsHasBeenSet = false;
142
143 RouteLegGeometry m_geometry;
144 bool m_geometryHasBeenSet = false;
145
146 Aws::String m_language;
147 bool m_languageHasBeenSet = false;
148
149 RoutePedestrianLegDetails m_pedestrianLegDetails;
150 bool m_pedestrianLegDetailsHasBeenSet = false;
151
152 RouteLegTravelMode m_travelMode;
153 bool m_travelModeHasBeenSet = false;
154
155 RouteLegType m_type;
156 bool m_typeHasBeenSet = false;
157
158 RouteVehicleLegDetails m_vehicleLegDetails;
159 bool m_vehicleLegDetailsHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace GeoRoutes
164} // namespace Aws
RouteLeg & WithGeometry(const RouteLegGeometry &value)
Definition RouteLeg.h:71
void SetVehicleLegDetails(const RouteVehicleLegDetails &value)
Definition RouteLeg.h:133
const RouteLegType & GetType() const
Definition RouteLeg.h:119
RouteLeg & WithTravelMode(const RouteLegTravelMode &value)
Definition RouteLeg.h:111
bool VehicleLegDetailsHasBeenSet() const
Definition RouteLeg.h:132
AWS_GEOROUTES_API RouteLeg()
void SetPedestrianLegDetails(const RoutePedestrianLegDetails &value)
Definition RouteLeg.h:95
RouteLeg & WithType(RouteLegType &&value)
Definition RouteLeg.h:124
RouteLeg & WithLanguage(const Aws::String &value)
Definition RouteLeg.h:84
void SetFerryLegDetails(const RouteFerryLegDetails &value)
Definition RouteLeg.h:57
void SetGeometry(const RouteLegGeometry &value)
Definition RouteLeg.h:69
AWS_GEOROUTES_API RouteLeg & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLanguage(const Aws::String &value)
Definition RouteLeg.h:81
bool PedestrianLegDetailsHasBeenSet() const
Definition RouteLeg.h:94
void SetType(const RouteLegType &value)
Definition RouteLeg.h:121
void SetLanguage(const char *value)
Definition RouteLeg.h:83
void SetPedestrianLegDetails(RoutePedestrianLegDetails &&value)
Definition RouteLeg.h:96
void SetLanguage(Aws::String &&value)
Definition RouteLeg.h:82
RouteLeg & WithFerryLegDetails(const RouteFerryLegDetails &value)
Definition RouteLeg.h:59
RouteLeg & WithFerryLegDetails(RouteFerryLegDetails &&value)
Definition RouteLeg.h:60
const RouteLegGeometry & GetGeometry() const
Definition RouteLeg.h:67
const RouteFerryLegDetails & GetFerryLegDetails() const
Definition RouteLeg.h:55
RouteLeg & WithPedestrianLegDetails(RoutePedestrianLegDetails &&value)
Definition RouteLeg.h:98
RouteLeg & WithPedestrianLegDetails(const RoutePedestrianLegDetails &value)
Definition RouteLeg.h:97
RouteLeg & WithType(const RouteLegType &value)
Definition RouteLeg.h:123
void SetGeometry(RouteLegGeometry &&value)
Definition RouteLeg.h:70
void SetVehicleLegDetails(RouteVehicleLegDetails &&value)
Definition RouteLeg.h:134
AWS_GEOROUTES_API RouteLeg(Aws::Utils::Json::JsonView jsonValue)
bool FerryLegDetailsHasBeenSet() const
Definition RouteLeg.h:56
const RoutePedestrianLegDetails & GetPedestrianLegDetails() const
Definition RouteLeg.h:93
RouteLeg & WithGeometry(RouteLegGeometry &&value)
Definition RouteLeg.h:72
const RouteVehicleLegDetails & GetVehicleLegDetails() const
Definition RouteLeg.h:131
void SetFerryLegDetails(RouteFerryLegDetails &&value)
Definition RouteLeg.h:58
const Aws::String & GetLanguage() const
Definition RouteLeg.h:79
RouteLeg & WithVehicleLegDetails(RouteVehicleLegDetails &&value)
Definition RouteLeg.h:136
RouteLeg & WithTravelMode(RouteLegTravelMode &&value)
Definition RouteLeg.h:112
void SetType(RouteLegType &&value)
Definition RouteLeg.h:122
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteLeg & WithLanguage(const char *value)
Definition RouteLeg.h:86
RouteLeg & WithVehicleLegDetails(const RouteVehicleLegDetails &value)
Definition RouteLeg.h:135
void SetTravelMode(const RouteLegTravelMode &value)
Definition RouteLeg.h:109
const RouteLegTravelMode & GetTravelMode() const
Definition RouteLeg.h:107
void SetTravelMode(RouteLegTravelMode &&value)
Definition RouteLeg.h:110
RouteLeg & WithLanguage(Aws::String &&value)
Definition RouteLeg.h:85
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue