AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetDevicePositionResult.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{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace LocationService
28{
29namespace Model
30{
32 {
33 public:
34 AWS_LOCATIONSERVICE_API GetDevicePositionResult();
37
38
40
43 inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
44 inline void SetDeviceId(const Aws::String& value) { m_deviceId = value; }
45 inline void SetDeviceId(Aws::String&& value) { m_deviceId = std::move(value); }
46 inline void SetDeviceId(const char* value) { m_deviceId.assign(value); }
47 inline GetDevicePositionResult& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
48 inline GetDevicePositionResult& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
49 inline GetDevicePositionResult& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
51
53
58 inline const Aws::Utils::DateTime& GetSampleTime() const{ return m_sampleTime; }
59 inline void SetSampleTime(const Aws::Utils::DateTime& value) { m_sampleTime = value; }
60 inline void SetSampleTime(Aws::Utils::DateTime&& value) { m_sampleTime = std::move(value); }
61 inline GetDevicePositionResult& WithSampleTime(const Aws::Utils::DateTime& value) { SetSampleTime(value); return *this;}
62 inline GetDevicePositionResult& WithSampleTime(Aws::Utils::DateTime&& value) { SetSampleTime(std::move(value)); return *this;}
64
66
71 inline const Aws::Utils::DateTime& GetReceivedTime() const{ return m_receivedTime; }
72 inline void SetReceivedTime(const Aws::Utils::DateTime& value) { m_receivedTime = value; }
73 inline void SetReceivedTime(Aws::Utils::DateTime&& value) { m_receivedTime = std::move(value); }
75 inline GetDevicePositionResult& WithReceivedTime(Aws::Utils::DateTime&& value) { SetReceivedTime(std::move(value)); return *this;}
77
79
82 inline const Aws::Vector<double>& GetPosition() const{ return m_position; }
83 inline void SetPosition(const Aws::Vector<double>& value) { m_position = value; }
84 inline void SetPosition(Aws::Vector<double>&& value) { m_position = std::move(value); }
85 inline GetDevicePositionResult& WithPosition(const Aws::Vector<double>& value) { SetPosition(value); return *this;}
86 inline GetDevicePositionResult& WithPosition(Aws::Vector<double>&& value) { SetPosition(std::move(value)); return *this;}
87 inline GetDevicePositionResult& AddPosition(double value) { m_position.push_back(value); return *this; }
89
91
94 inline const PositionalAccuracy& GetAccuracy() const{ return m_accuracy; }
95 inline void SetAccuracy(const PositionalAccuracy& value) { m_accuracy = value; }
96 inline void SetAccuracy(PositionalAccuracy&& value) { m_accuracy = std::move(value); }
97 inline GetDevicePositionResult& WithAccuracy(const PositionalAccuracy& value) { SetAccuracy(value); return *this;}
98 inline GetDevicePositionResult& WithAccuracy(PositionalAccuracy&& value) { SetAccuracy(std::move(value)); return *this;}
100
102
105 inline const Aws::Map<Aws::String, Aws::String>& GetPositionProperties() const{ return m_positionProperties; }
106 inline void SetPositionProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_positionProperties = value; }
107 inline void SetPositionProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_positionProperties = std::move(value); }
110 inline GetDevicePositionResult& AddPositionProperties(const Aws::String& key, const Aws::String& value) { m_positionProperties.emplace(key, value); return *this; }
111 inline GetDevicePositionResult& AddPositionProperties(Aws::String&& key, const Aws::String& value) { m_positionProperties.emplace(std::move(key), value); return *this; }
112 inline GetDevicePositionResult& AddPositionProperties(const Aws::String& key, Aws::String&& value) { m_positionProperties.emplace(key, std::move(value)); return *this; }
113 inline GetDevicePositionResult& AddPositionProperties(Aws::String&& key, Aws::String&& value) { m_positionProperties.emplace(std::move(key), std::move(value)); return *this; }
114 inline GetDevicePositionResult& AddPositionProperties(const char* key, Aws::String&& value) { m_positionProperties.emplace(key, std::move(value)); return *this; }
115 inline GetDevicePositionResult& AddPositionProperties(Aws::String&& key, const char* value) { m_positionProperties.emplace(std::move(key), value); return *this; }
116 inline GetDevicePositionResult& AddPositionProperties(const char* key, const char* value) { m_positionProperties.emplace(key, value); return *this; }
118
120
121 inline const Aws::String& GetRequestId() const{ return m_requestId; }
122 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
123 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
124 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
125 inline GetDevicePositionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
126 inline GetDevicePositionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
127 inline GetDevicePositionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
129 private:
130
131 Aws::String m_deviceId;
132
133 Aws::Utils::DateTime m_sampleTime;
134
135 Aws::Utils::DateTime m_receivedTime;
136
137 Aws::Vector<double> m_position;
138
139 PositionalAccuracy m_accuracy;
140
141 Aws::Map<Aws::String, Aws::String> m_positionProperties;
142
143 Aws::String m_requestId;
144 };
145
146} // namespace Model
147} // namespace LocationService
148} // namespace Aws
GetDevicePositionResult & AddPosition(double value)
GetDevicePositionResult & AddPositionProperties(const char *key, Aws::String &&value)
GetDevicePositionResult & WithSampleTime(Aws::Utils::DateTime &&value)
GetDevicePositionResult & AddPositionProperties(const Aws::String &key, Aws::String &&value)
GetDevicePositionResult & WithPosition(Aws::Vector< double > &&value)
void SetPositionProperties(Aws::Map< Aws::String, Aws::String > &&value)
GetDevicePositionResult & WithRequestId(const Aws::String &value)
GetDevicePositionResult & WithPosition(const Aws::Vector< double > &value)
void SetReceivedTime(const Aws::Utils::DateTime &value)
GetDevicePositionResult & WithDeviceId(const char *value)
void SetSampleTime(const Aws::Utils::DateTime &value)
const Aws::Map< Aws::String, Aws::String > & GetPositionProperties() const
GetDevicePositionResult & AddPositionProperties(Aws::String &&key, const Aws::String &value)
GetDevicePositionResult & WithReceivedTime(const Aws::Utils::DateTime &value)
GetDevicePositionResult & WithAccuracy(PositionalAccuracy &&value)
GetDevicePositionResult & WithSampleTime(const Aws::Utils::DateTime &value)
GetDevicePositionResult & WithRequestId(const char *value)
GetDevicePositionResult & AddPositionProperties(Aws::String &&key, const char *value)
GetDevicePositionResult & WithRequestId(Aws::String &&value)
GetDevicePositionResult & WithPositionProperties(const Aws::Map< Aws::String, Aws::String > &value)
GetDevicePositionResult & WithDeviceId(Aws::String &&value)
GetDevicePositionResult & WithPositionProperties(Aws::Map< Aws::String, Aws::String > &&value)
AWS_LOCATIONSERVICE_API GetDevicePositionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetPositionProperties(const Aws::Map< Aws::String, Aws::String > &value)
void SetPosition(const Aws::Vector< double > &value)
GetDevicePositionResult & WithDeviceId(const Aws::String &value)
GetDevicePositionResult & AddPositionProperties(Aws::String &&key, Aws::String &&value)
GetDevicePositionResult & WithAccuracy(const PositionalAccuracy &value)
AWS_LOCATIONSERVICE_API GetDevicePositionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDevicePositionResult & AddPositionProperties(const char *key, const char *value)
GetDevicePositionResult & AddPositionProperties(const Aws::String &key, const Aws::String &value)
GetDevicePositionResult & WithReceivedTime(Aws::Utils::DateTime &&value)
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