AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPosition(const Aws::Vector<double>& value) { m_positionHasBeenSet = true; m_position = value; }
59 inline void SetPosition(Aws::Vector<double>&& value) { m_positionHasBeenSet = true; m_position = std::move(value); }
60 inline RoadSnapTracePoint& WithPosition(const Aws::Vector<double>& value) { SetPosition(value); return *this;}
61 inline RoadSnapTracePoint& WithPosition(Aws::Vector<double>&& value) { SetPosition(std::move(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 inline void SetTimestamp(const Aws::String& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
83 inline void SetTimestamp(Aws::String&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
84 inline void SetTimestamp(const char* value) { m_timestampHasBeenSet = true; m_timestamp.assign(value); }
85 inline RoadSnapTracePoint& WithTimestamp(const Aws::String& value) { SetTimestamp(value); return *this;}
86 inline RoadSnapTracePoint& WithTimestamp(Aws::String&& value) { SetTimestamp(std::move(value)); return *this;}
87 inline RoadSnapTracePoint& WithTimestamp(const char* value) { SetTimestamp(value); return *this;}
89 private:
90
91 double m_heading;
92 bool m_headingHasBeenSet = false;
93
94 Aws::Vector<double> m_position;
95 bool m_positionHasBeenSet = false;
96
97 double m_speed;
98 bool m_speedHasBeenSet = false;
99
100 Aws::String m_timestamp;
101 bool m_timestampHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace GeoRoutes
106} // namespace Aws
RoadSnapTracePoint & WithTimestamp(const Aws::String &value)
RoadSnapTracePoint & WithHeading(double value)
void SetPosition(const Aws::Vector< double > &value)
RoadSnapTracePoint & WithTimestamp(Aws::String &&value)
RoadSnapTracePoint & WithTimestamp(const char *value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< double > & GetPosition() const
RoadSnapTracePoint & WithPosition(Aws::Vector< double > &&value)
void SetTimestamp(const Aws::String &value)
RoadSnapTracePoint & WithSpeed(double value)
RoadSnapTracePoint & WithPosition(const Aws::Vector< 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)
void SetPosition(Aws::Vector< 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