AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
RouteLegGeometry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GeoRoutes {
21namespace Model {
22
29 public:
30 AWS_GEOROUTES_API RouteLegGeometry() = default;
31 AWS_GEOROUTES_API RouteLegGeometry(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::Vector<Aws::Vector<double>>& GetLineString() const { return m_lineString; }
41 inline bool LineStringHasBeenSet() const { return m_lineStringHasBeenSet; }
42 template <typename LineStringT = Aws::Vector<Aws::Vector<double>>>
43 void SetLineString(LineStringT&& value) {
44 m_lineStringHasBeenSet = true;
45 m_lineString = std::forward<LineStringT>(value);
46 }
47 template <typename LineStringT = Aws::Vector<Aws::Vector<double>>>
48 RouteLegGeometry& WithLineString(LineStringT&& value) {
49 SetLineString(std::forward<LineStringT>(value));
50 return *this;
51 }
52 template <typename LineStringT = Aws::Vector<double>>
53 RouteLegGeometry& AddLineString(LineStringT&& value) {
54 m_lineStringHasBeenSet = true;
55 m_lineString.emplace_back(std::forward<LineStringT>(value));
56 return *this;
57 }
59
61
66 inline const Aws::String& GetPolyline() const { return m_polyline; }
67 inline bool PolylineHasBeenSet() const { return m_polylineHasBeenSet; }
68 template <typename PolylineT = Aws::String>
69 void SetPolyline(PolylineT&& value) {
70 m_polylineHasBeenSet = true;
71 m_polyline = std::forward<PolylineT>(value);
72 }
73 template <typename PolylineT = Aws::String>
74 RouteLegGeometry& WithPolyline(PolylineT&& value) {
75 SetPolyline(std::forward<PolylineT>(value));
76 return *this;
77 }
79 private:
81
82 Aws::String m_polyline;
83 bool m_lineStringHasBeenSet = false;
84 bool m_polylineHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace GeoRoutes
89} // 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