AWS SDK for C++

AWS SDK for C++ Version 1.11.771

Loading...
Searching...
No Matches
RoutePedestrianPlace.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#include <aws/geo-routes/model/RouteSideOfStreet.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GeoRoutes {
22namespace Model {
23
31 public:
32 AWS_GEOROUTES_API RoutePedestrianPlace() = default;
35 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<double>& GetOriginalPosition() const { return m_originalPosition; }
60 inline bool OriginalPositionHasBeenSet() const { return m_originalPositionHasBeenSet; }
61 template <typename OriginalPositionT = Aws::Vector<double>>
62 void SetOriginalPosition(OriginalPositionT&& value) {
63 m_originalPositionHasBeenSet = true;
64 m_originalPosition = std::forward<OriginalPositionT>(value);
65 }
66 template <typename OriginalPositionT = Aws::Vector<double>>
67 RoutePedestrianPlace& WithOriginalPosition(OriginalPositionT&& value) {
68 SetOriginalPosition(std::forward<OriginalPositionT>(value));
69 return *this;
70 }
72 m_originalPositionHasBeenSet = true;
73 m_originalPosition.push_back(value);
74 return *this;
75 }
77
79
82 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
83 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
84 template <typename PositionT = Aws::Vector<double>>
85 void SetPosition(PositionT&& value) {
86 m_positionHasBeenSet = true;
87 m_position = std::forward<PositionT>(value);
88 }
89 template <typename PositionT = Aws::Vector<double>>
90 RoutePedestrianPlace& WithPosition(PositionT&& value) {
91 SetPosition(std::forward<PositionT>(value));
92 return *this;
93 }
94 inline RoutePedestrianPlace& AddPosition(double value) {
95 m_positionHasBeenSet = true;
96 m_position.push_back(value);
97 return *this;
98 }
100
102
106 inline RouteSideOfStreet GetSideOfStreet() const { return m_sideOfStreet; }
107 inline bool SideOfStreetHasBeenSet() const { return m_sideOfStreetHasBeenSet; }
109 m_sideOfStreetHasBeenSet = true;
110 m_sideOfStreet = value;
111 }
113 SetSideOfStreet(value);
114 return *this;
115 }
117
119
122 inline int GetWaypointIndex() const { return m_waypointIndex; }
123 inline bool WaypointIndexHasBeenSet() const { return m_waypointIndexHasBeenSet; }
124 inline void SetWaypointIndex(int value) {
125 m_waypointIndexHasBeenSet = true;
126 m_waypointIndex = value;
127 }
129 SetWaypointIndex(value);
130 return *this;
131 }
133 private:
134 Aws::String m_name;
135
136 Aws::Vector<double> m_originalPosition;
137
138 Aws::Vector<double> m_position;
139
141
142 int m_waypointIndex{0};
143 bool m_nameHasBeenSet = false;
144 bool m_originalPositionHasBeenSet = false;
145 bool m_positionHasBeenSet = false;
146 bool m_sideOfStreetHasBeenSet = false;
147 bool m_waypointIndexHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace GeoRoutes
152} // namespace Aws
RoutePedestrianPlace & WithWaypointIndex(int value)
AWS_GEOROUTES_API RoutePedestrianPlace & operator=(Aws::Utils::Json::JsonView jsonValue)
RoutePedestrianPlace & WithOriginalPosition(OriginalPositionT &&value)
RoutePedestrianPlace & WithPosition(PositionT &&value)
AWS_GEOROUTES_API RoutePedestrianPlace(Aws::Utils::Json::JsonView jsonValue)
RoutePedestrianPlace & WithSideOfStreet(RouteSideOfStreet value)
const Aws::Vector< double > & GetPosition() const
AWS_GEOROUTES_API RoutePedestrianPlace()=default
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOriginalPosition(OriginalPositionT &&value)
RoutePedestrianPlace & WithName(NameT &&value)
RoutePedestrianPlace & AddOriginalPosition(double value)
const Aws::Vector< double > & GetOriginalPosition() const
RoutePedestrianPlace & AddPosition(double 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