AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ForecastGeofenceEventsDeviceState.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LocationService
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_LOCATIONSERVICE_API ForecastGeofenceEventsDeviceState() = default;
38 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
46 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
47 template<typename PositionT = Aws::Vector<double>>
48 void SetPosition(PositionT&& value) { m_positionHasBeenSet = true; m_position = std::forward<PositionT>(value); }
49 template<typename PositionT = Aws::Vector<double>>
50 ForecastGeofenceEventsDeviceState& WithPosition(PositionT&& value) { SetPosition(std::forward<PositionT>(value)); return *this;}
51 inline ForecastGeofenceEventsDeviceState& AddPosition(double value) { m_positionHasBeenSet = true; m_position.push_back(value); return *this; }
53
55
58 inline double GetSpeed() const { return m_speed; }
59 inline bool SpeedHasBeenSet() const { return m_speedHasBeenSet; }
60 inline void SetSpeed(double value) { m_speedHasBeenSet = true; m_speed = value; }
61 inline ForecastGeofenceEventsDeviceState& WithSpeed(double value) { SetSpeed(value); return *this;}
63 private:
64
65 Aws::Vector<double> m_position;
66 bool m_positionHasBeenSet = false;
67
68 double m_speed{0.0};
69 bool m_speedHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace LocationService
74} // namespace Aws
AWS_LOCATIONSERVICE_API ForecastGeofenceEventsDeviceState(Aws::Utils::Json::JsonView jsonValue)
ForecastGeofenceEventsDeviceState & WithPosition(PositionT &&value)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LOCATIONSERVICE_API ForecastGeofenceEventsDeviceState & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LOCATIONSERVICE_API ForecastGeofenceEventsDeviceState()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue