AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RouteLegGeometry.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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 GeoRoutes
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_GEOROUTES_API RouteLegGeometry() = default;
36 AWS_GEOROUTES_API RouteLegGeometry(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::Vector<Aws::Vector<double>>& GetLineString() const { return m_lineString; }
47 inline bool LineStringHasBeenSet() const { return m_lineStringHasBeenSet; }
48 template<typename LineStringT = Aws::Vector<Aws::Vector<double>>>
49 void SetLineString(LineStringT&& value) { m_lineStringHasBeenSet = true; m_lineString = std::forward<LineStringT>(value); }
50 template<typename LineStringT = Aws::Vector<Aws::Vector<double>>>
51 RouteLegGeometry& WithLineString(LineStringT&& value) { SetLineString(std::forward<LineStringT>(value)); return *this;}
52 template<typename LineStringT = Aws::Vector<double>>
53 RouteLegGeometry& AddLineString(LineStringT&& value) { m_lineStringHasBeenSet = true; m_lineString.emplace_back(std::forward<LineStringT>(value)); return *this; }
55
57
62 inline const Aws::String& GetPolyline() const { return m_polyline; }
63 inline bool PolylineHasBeenSet() const { return m_polylineHasBeenSet; }
64 template<typename PolylineT = Aws::String>
65 void SetPolyline(PolylineT&& value) { m_polylineHasBeenSet = true; m_polyline = std::forward<PolylineT>(value); }
66 template<typename PolylineT = Aws::String>
67 RouteLegGeometry& WithPolyline(PolylineT&& value) { SetPolyline(std::forward<PolylineT>(value)); return *this;}
69 private:
70
72 bool m_lineStringHasBeenSet = false;
73
74 Aws::String m_polyline;
75 bool m_polylineHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace GeoRoutes
80} // namespace Aws
AWS_GEOROUTES_API RouteLegGeometry()=default
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteLegGeometry & AddLineString(LineStringT &&value)
const Aws::Vector< Aws::Vector< double > > & GetLineString() const
AWS_GEOROUTES_API RouteLegGeometry & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteLegGeometry & WithLineString(LineStringT &&value)
const Aws::String & GetPolyline() const
void SetLineString(LineStringT &&value)
AWS_GEOROUTES_API RouteLegGeometry(Aws::Utils::Json::JsonView jsonValue)
RouteLegGeometry & WithPolyline(PolylineT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue