AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DevicePosition.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/location/model/PositionalAccuracy.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace LocationService
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_LOCATIONSERVICE_API DevicePosition();
39 AWS_LOCATIONSERVICE_API DevicePosition(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LOCATIONSERVICE_API DevicePosition& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
49 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
50 inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
51 inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
52 inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
53 inline DevicePosition& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
54 inline DevicePosition& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
55 inline DevicePosition& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
57
59
64 inline const Aws::Utils::DateTime& GetSampleTime() const{ return m_sampleTime; }
65 inline bool SampleTimeHasBeenSet() const { return m_sampleTimeHasBeenSet; }
66 inline void SetSampleTime(const Aws::Utils::DateTime& value) { m_sampleTimeHasBeenSet = true; m_sampleTime = value; }
67 inline void SetSampleTime(Aws::Utils::DateTime&& value) { m_sampleTimeHasBeenSet = true; m_sampleTime = std::move(value); }
68 inline DevicePosition& WithSampleTime(const Aws::Utils::DateTime& value) { SetSampleTime(value); return *this;}
69 inline DevicePosition& WithSampleTime(Aws::Utils::DateTime&& value) { SetSampleTime(std::move(value)); return *this;}
71
73
78 inline const Aws::Utils::DateTime& GetReceivedTime() const{ return m_receivedTime; }
79 inline bool ReceivedTimeHasBeenSet() const { return m_receivedTimeHasBeenSet; }
80 inline void SetReceivedTime(const Aws::Utils::DateTime& value) { m_receivedTimeHasBeenSet = true; m_receivedTime = value; }
81 inline void SetReceivedTime(Aws::Utils::DateTime&& value) { m_receivedTimeHasBeenSet = true; m_receivedTime = std::move(value); }
82 inline DevicePosition& WithReceivedTime(const Aws::Utils::DateTime& value) { SetReceivedTime(value); return *this;}
83 inline DevicePosition& WithReceivedTime(Aws::Utils::DateTime&& value) { SetReceivedTime(std::move(value)); return *this;}
85
87
90 inline const Aws::Vector<double>& GetPosition() const{ return m_position; }
91 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
92 inline void SetPosition(const Aws::Vector<double>& value) { m_positionHasBeenSet = true; m_position = value; }
93 inline void SetPosition(Aws::Vector<double>&& value) { m_positionHasBeenSet = true; m_position = std::move(value); }
94 inline DevicePosition& WithPosition(const Aws::Vector<double>& value) { SetPosition(value); return *this;}
95 inline DevicePosition& WithPosition(Aws::Vector<double>&& value) { SetPosition(std::move(value)); return *this;}
96 inline DevicePosition& AddPosition(double value) { m_positionHasBeenSet = true; m_position.push_back(value); return *this; }
98
100
103 inline const PositionalAccuracy& GetAccuracy() const{ return m_accuracy; }
104 inline bool AccuracyHasBeenSet() const { return m_accuracyHasBeenSet; }
105 inline void SetAccuracy(const PositionalAccuracy& value) { m_accuracyHasBeenSet = true; m_accuracy = value; }
106 inline void SetAccuracy(PositionalAccuracy&& value) { m_accuracyHasBeenSet = true; m_accuracy = std::move(value); }
107 inline DevicePosition& WithAccuracy(const PositionalAccuracy& value) { SetAccuracy(value); return *this;}
108 inline DevicePosition& WithAccuracy(PositionalAccuracy&& value) { SetAccuracy(std::move(value)); return *this;}
110
112
115 inline const Aws::Map<Aws::String, Aws::String>& GetPositionProperties() const{ return m_positionProperties; }
116 inline bool PositionPropertiesHasBeenSet() const { return m_positionPropertiesHasBeenSet; }
117 inline void SetPositionProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_positionPropertiesHasBeenSet = true; m_positionProperties = value; }
118 inline void SetPositionProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_positionPropertiesHasBeenSet = true; m_positionProperties = std::move(value); }
121 inline DevicePosition& AddPositionProperties(const Aws::String& key, const Aws::String& value) { m_positionPropertiesHasBeenSet = true; m_positionProperties.emplace(key, value); return *this; }
122 inline DevicePosition& AddPositionProperties(Aws::String&& key, const Aws::String& value) { m_positionPropertiesHasBeenSet = true; m_positionProperties.emplace(std::move(key), value); return *this; }
123 inline DevicePosition& AddPositionProperties(const Aws::String& key, Aws::String&& value) { m_positionPropertiesHasBeenSet = true; m_positionProperties.emplace(key, std::move(value)); return *this; }
124 inline DevicePosition& AddPositionProperties(Aws::String&& key, Aws::String&& value) { m_positionPropertiesHasBeenSet = true; m_positionProperties.emplace(std::move(key), std::move(value)); return *this; }
125 inline DevicePosition& AddPositionProperties(const char* key, Aws::String&& value) { m_positionPropertiesHasBeenSet = true; m_positionProperties.emplace(key, std::move(value)); return *this; }
126 inline DevicePosition& AddPositionProperties(Aws::String&& key, const char* value) { m_positionPropertiesHasBeenSet = true; m_positionProperties.emplace(std::move(key), value); return *this; }
127 inline DevicePosition& AddPositionProperties(const char* key, const char* value) { m_positionPropertiesHasBeenSet = true; m_positionProperties.emplace(key, value); return *this; }
129 private:
130
131 Aws::String m_deviceId;
132 bool m_deviceIdHasBeenSet = false;
133
134 Aws::Utils::DateTime m_sampleTime;
135 bool m_sampleTimeHasBeenSet = false;
136
137 Aws::Utils::DateTime m_receivedTime;
138 bool m_receivedTimeHasBeenSet = false;
139
140 Aws::Vector<double> m_position;
141 bool m_positionHasBeenSet = false;
142
143 PositionalAccuracy m_accuracy;
144 bool m_accuracyHasBeenSet = false;
145
146 Aws::Map<Aws::String, Aws::String> m_positionProperties;
147 bool m_positionPropertiesHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace LocationService
152} // namespace Aws
DevicePosition & WithAccuracy(const PositionalAccuracy &value)
DevicePosition & WithReceivedTime(const Aws::Utils::DateTime &value)
DevicePosition & WithPosition(const Aws::Vector< double > &value)
DevicePosition & WithDeviceId(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetPositionProperties() const
DevicePosition & AddPositionProperties(Aws::String &&key, Aws::String &&value)
DevicePosition & AddPositionProperties(Aws::String &&key, const Aws::String &value)
DevicePosition & AddPositionProperties(const char *key, Aws::String &&value)
AWS_LOCATIONSERVICE_API DevicePosition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAccuracy(const PositionalAccuracy &value)
DevicePosition & AddPositionProperties(const Aws::String &key, Aws::String &&value)
DevicePosition & AddPositionProperties(const char *key, const char *value)
DevicePosition & WithPositionProperties(const Aws::Map< Aws::String, Aws::String > &value)
void SetPosition(const Aws::Vector< double > &value)
AWS_LOCATIONSERVICE_API DevicePosition()
AWS_LOCATIONSERVICE_API DevicePosition(Aws::Utils::Json::JsonView jsonValue)
DevicePosition & WithAccuracy(PositionalAccuracy &&value)
const Aws::Vector< double > & GetPosition() const
void SetDeviceId(const Aws::String &value)
void SetPositionProperties(Aws::Map< Aws::String, Aws::String > &&value)
DevicePosition & AddPositionProperties(Aws::String &&key, const char *value)
DevicePosition & WithPositionProperties(Aws::Map< Aws::String, Aws::String > &&value)
DevicePosition & WithPosition(Aws::Vector< double > &&value)
DevicePosition & AddPosition(double value)
DevicePosition & WithDeviceId(Aws::String &&value)
void SetPositionProperties(const Aws::Map< Aws::String, Aws::String > &value)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetReceivedTime() const
void SetSampleTime(const Aws::Utils::DateTime &value)
const PositionalAccuracy & GetAccuracy() const
void SetPosition(Aws::Vector< double > &&value)
void SetAccuracy(PositionalAccuracy &&value)
DevicePosition & WithSampleTime(const Aws::Utils::DateTime &value)
DevicePosition & AddPositionProperties(const Aws::String &key, const Aws::String &value)
void SetReceivedTime(const Aws::Utils::DateTime &value)
const Aws::String & GetDeviceId() const
DevicePosition & WithSampleTime(Aws::Utils::DateTime &&value)
void SetSampleTime(Aws::Utils::DateTime &&value)
DevicePosition & WithReceivedTime(Aws::Utils::DateTime &&value)
void SetReceivedTime(Aws::Utils::DateTime &&value)
DevicePosition & WithDeviceId(const char *value)
const Aws::Utils::DateTime & GetSampleTime() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue