AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLineString(const Aws::Vector<Aws::Vector<double>>& value) { m_lineStringHasBeenSet = true; m_lineString = value; }
49 inline void SetLineString(Aws::Vector<Aws::Vector<double>>&& value) { m_lineStringHasBeenSet = true; m_lineString = std::move(value); }
50 inline RouteLegGeometry& WithLineString(const Aws::Vector<Aws::Vector<double>>& value) { SetLineString(value); return *this;}
51 inline RouteLegGeometry& WithLineString(Aws::Vector<Aws::Vector<double>>&& value) { SetLineString(std::move(value)); return *this;}
52 inline RouteLegGeometry& AddLineString(const Aws::Vector<double>& value) { m_lineStringHasBeenSet = true; m_lineString.push_back(value); return *this; }
53 inline RouteLegGeometry& AddLineString(Aws::Vector<double>&& value) { m_lineStringHasBeenSet = true; m_lineString.push_back(std::move(value)); return *this; }
55
57
62 inline const Aws::String& GetPolyline() const{ return m_polyline; }
63 inline bool PolylineHasBeenSet() const { return m_polylineHasBeenSet; }
64 inline void SetPolyline(const Aws::String& value) { m_polylineHasBeenSet = true; m_polyline = value; }
65 inline void SetPolyline(Aws::String&& value) { m_polylineHasBeenSet = true; m_polyline = std::move(value); }
66 inline void SetPolyline(const char* value) { m_polylineHasBeenSet = true; m_polyline.assign(value); }
67 inline RouteLegGeometry& WithPolyline(const Aws::String& value) { SetPolyline(value); return *this;}
68 inline RouteLegGeometry& WithPolyline(Aws::String&& value) { SetPolyline(std::move(value)); return *this;}
69 inline RouteLegGeometry& WithPolyline(const char* value) { SetPolyline(value); return *this;}
71 private:
72
74 bool m_lineStringHasBeenSet = false;
75
76 Aws::String m_polyline;
77 bool m_polylineHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace GeoRoutes
82} // namespace Aws
void SetLineString(Aws::Vector< Aws::Vector< double > > &&value)
void SetLineString(const Aws::Vector< Aws::Vector< double > > &value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteLegGeometry & AddLineString(const Aws::Vector< double > &value)
RouteLegGeometry & AddLineString(Aws::Vector< double > &&value)
RouteLegGeometry & WithLineString(const Aws::Vector< Aws::Vector< double > > &value)
RouteLegGeometry & WithLineString(Aws::Vector< Aws::Vector< double > > &&value)
const Aws::Vector< Aws::Vector< double > > & GetLineString() const
AWS_GEOROUTES_API RouteLegGeometry & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteLegGeometry & WithPolyline(const char *value)
RouteLegGeometry & WithPolyline(Aws::String &&value)
const Aws::String & GetPolyline() const
AWS_GEOROUTES_API RouteLegGeometry(Aws::Utils::Json::JsonView jsonValue)
RouteLegGeometry & WithPolyline(const Aws::String &value)
void SetPolyline(const Aws::String &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