AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RoadSnapTracePoint.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
34 {
35 public:
36 AWS_GEOROUTES_API RoadSnapTracePoint() = default;
37 AWS_GEOROUTES_API RoadSnapTracePoint(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline double GetHeading() const { return m_heading; }
47 inline bool HeadingHasBeenSet() const { return m_headingHasBeenSet; }
48 inline void SetHeading(double value) { m_headingHasBeenSet = true; m_heading = value; }
49 inline RoadSnapTracePoint& WithHeading(double value) { SetHeading(value); return *this;}
51
53
56 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
57 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
58 template<typename PositionT = Aws::Vector<double>>
59 void SetPosition(PositionT&& value) { m_positionHasBeenSet = true; m_position = std::forward<PositionT>(value); }
60 template<typename PositionT = Aws::Vector<double>>
61 RoadSnapTracePoint& WithPosition(PositionT&& value) { SetPosition(std::forward<PositionT>(value)); return *this;}
62 inline RoadSnapTracePoint& AddPosition(double value) { m_positionHasBeenSet = true; m_position.push_back(value); return *this; }
64
66
70 inline double GetSpeed() const { return m_speed; }
71 inline bool SpeedHasBeenSet() const { return m_speedHasBeenSet; }
72 inline void SetSpeed(double value) { m_speedHasBeenSet = true; m_speed = value; }
73 inline RoadSnapTracePoint& WithSpeed(double value) { SetSpeed(value); return *this;}
75
77
80 inline const Aws::String& GetTimestamp() const { return m_timestamp; }
81 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
82 template<typename TimestampT = Aws::String>
83 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
84 template<typename TimestampT = Aws::String>
85 RoadSnapTracePoint& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
87 private:
88
89 double m_heading{0.0};
90 bool m_headingHasBeenSet = false;
91
92 Aws::Vector<double> m_position;
93 bool m_positionHasBeenSet = false;
94
95 double m_speed{0.0};
96 bool m_speedHasBeenSet = false;
97
98 Aws::String m_timestamp;
99 bool m_timestampHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace GeoRoutes
104} // namespace Aws
RoadSnapTracePoint & WithHeading(double value)
AWS_GEOROUTES_API RoadSnapTracePoint()=default
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< double > & GetPosition() const
RoadSnapTracePoint & WithPosition(PositionT &&value)
RoadSnapTracePoint & WithTimestamp(TimestampT &&value)
RoadSnapTracePoint & WithSpeed(double value)
AWS_GEOROUTES_API RoadSnapTracePoint(Aws::Utils::Json::JsonView jsonValue)
RoadSnapTracePoint & AddPosition(double value)
AWS_GEOROUTES_API RoadSnapTracePoint & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue