AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DevicePositionUpdate.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
37 {
38 public:
39 AWS_LOCATIONSERVICE_API DevicePositionUpdate();
40 AWS_LOCATIONSERVICE_API DevicePositionUpdate(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LOCATIONSERVICE_API DevicePositionUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
50 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
51 inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
52 inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
53 inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
54 inline DevicePositionUpdate& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
55 inline DevicePositionUpdate& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
56 inline DevicePositionUpdate& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
58
60
65 inline const Aws::Utils::DateTime& GetSampleTime() const{ return m_sampleTime; }
66 inline bool SampleTimeHasBeenSet() const { return m_sampleTimeHasBeenSet; }
67 inline void SetSampleTime(const Aws::Utils::DateTime& value) { m_sampleTimeHasBeenSet = true; m_sampleTime = value; }
68 inline void SetSampleTime(Aws::Utils::DateTime&& value) { m_sampleTimeHasBeenSet = true; m_sampleTime = std::move(value); }
69 inline DevicePositionUpdate& WithSampleTime(const Aws::Utils::DateTime& value) { SetSampleTime(value); return *this;}
70 inline DevicePositionUpdate& WithSampleTime(Aws::Utils::DateTime&& value) { SetSampleTime(std::move(value)); return *this;}
72
74
79 inline const Aws::Vector<double>& GetPosition() const{ return m_position; }
80 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
81 inline void SetPosition(const Aws::Vector<double>& value) { m_positionHasBeenSet = true; m_position = value; }
82 inline void SetPosition(Aws::Vector<double>&& value) { m_positionHasBeenSet = true; m_position = std::move(value); }
83 inline DevicePositionUpdate& WithPosition(const Aws::Vector<double>& value) { SetPosition(value); return *this;}
84 inline DevicePositionUpdate& WithPosition(Aws::Vector<double>&& value) { SetPosition(std::move(value)); return *this;}
85 inline DevicePositionUpdate& AddPosition(double value) { m_positionHasBeenSet = true; m_position.push_back(value); return *this; }
87
89
92 inline const PositionalAccuracy& GetAccuracy() const{ return m_accuracy; }
93 inline bool AccuracyHasBeenSet() const { return m_accuracyHasBeenSet; }
94 inline void SetAccuracy(const PositionalAccuracy& value) { m_accuracyHasBeenSet = true; m_accuracy = value; }
95 inline void SetAccuracy(PositionalAccuracy&& value) { m_accuracyHasBeenSet = true; m_accuracy = std::move(value); }
96 inline DevicePositionUpdate& WithAccuracy(const PositionalAccuracy& value) { SetAccuracy(value); return *this;}
97 inline DevicePositionUpdate& WithAccuracy(PositionalAccuracy&& value) { SetAccuracy(std::move(value)); return *this;}
99
101
106 inline const Aws::Map<Aws::String, Aws::String>& GetPositionProperties() const{ return m_positionProperties; }
107 inline bool PositionPropertiesHasBeenSet() const { return m_positionPropertiesHasBeenSet; }
108 inline void SetPositionProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_positionPropertiesHasBeenSet = true; m_positionProperties = value; }
109 inline void SetPositionProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_positionPropertiesHasBeenSet = true; m_positionProperties = std::move(value); }
112 inline DevicePositionUpdate& AddPositionProperties(const Aws::String& key, const Aws::String& value) { m_positionPropertiesHasBeenSet = true; m_positionProperties.emplace(key, value); return *this; }
113 inline DevicePositionUpdate& AddPositionProperties(Aws::String&& key, const Aws::String& value) { m_positionPropertiesHasBeenSet = true; m_positionProperties.emplace(std::move(key), value); return *this; }
114 inline DevicePositionUpdate& AddPositionProperties(const Aws::String& key, Aws::String&& value) { m_positionPropertiesHasBeenSet = true; m_positionProperties.emplace(key, std::move(value)); return *this; }
115 inline DevicePositionUpdate& AddPositionProperties(Aws::String&& key, Aws::String&& value) { m_positionPropertiesHasBeenSet = true; m_positionProperties.emplace(std::move(key), std::move(value)); return *this; }
116 inline DevicePositionUpdate& AddPositionProperties(const char* key, Aws::String&& value) { m_positionPropertiesHasBeenSet = true; m_positionProperties.emplace(key, std::move(value)); return *this; }
117 inline DevicePositionUpdate& AddPositionProperties(Aws::String&& key, const char* value) { m_positionPropertiesHasBeenSet = true; m_positionProperties.emplace(std::move(key), value); return *this; }
118 inline DevicePositionUpdate& AddPositionProperties(const char* key, const char* value) { m_positionPropertiesHasBeenSet = true; m_positionProperties.emplace(key, value); return *this; }
120 private:
121
122 Aws::String m_deviceId;
123 bool m_deviceIdHasBeenSet = false;
124
125 Aws::Utils::DateTime m_sampleTime;
126 bool m_sampleTimeHasBeenSet = false;
127
128 Aws::Vector<double> m_position;
129 bool m_positionHasBeenSet = false;
130
131 PositionalAccuracy m_accuracy;
132 bool m_accuracyHasBeenSet = false;
133
134 Aws::Map<Aws::String, Aws::String> m_positionProperties;
135 bool m_positionPropertiesHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace LocationService
140} // namespace Aws
DevicePositionUpdate & AddPosition(double value)
DevicePositionUpdate & WithSampleTime(Aws::Utils::DateTime &&value)
void SetSampleTime(const Aws::Utils::DateTime &value)
DevicePositionUpdate & AddPositionProperties(const char *key, Aws::String &&value)
DevicePositionUpdate & AddPositionProperties(const char *key, const char *value)
void SetAccuracy(const PositionalAccuracy &value)
DevicePositionUpdate & WithAccuracy(const PositionalAccuracy &value)
DevicePositionUpdate & AddPositionProperties(const Aws::String &key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetPositionProperties() const
void SetPosition(Aws::Vector< double > &&value)
void SetPositionProperties(Aws::Map< Aws::String, Aws::String > &&value)
DevicePositionUpdate & WithDeviceId(Aws::String &&value)
const Aws::Utils::DateTime & GetSampleTime() const
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
DevicePositionUpdate & WithDeviceId(const char *value)
void SetPosition(const Aws::Vector< double > &value)
DevicePositionUpdate & AddPositionProperties(Aws::String &&key, const Aws::String &value)
AWS_LOCATIONSERVICE_API DevicePositionUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
DevicePositionUpdate & WithPosition(Aws::Vector< double > &&value)
DevicePositionUpdate & WithDeviceId(const Aws::String &value)
DevicePositionUpdate & AddPositionProperties(const Aws::String &key, const Aws::String &value)
DevicePositionUpdate & WithPositionProperties(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Vector< double > & GetPosition() const
void SetPositionProperties(const Aws::Map< Aws::String, Aws::String > &value)
AWS_LOCATIONSERVICE_API DevicePositionUpdate(Aws::Utils::Json::JsonView jsonValue)
DevicePositionUpdate & WithSampleTime(const Aws::Utils::DateTime &value)
DevicePositionUpdate & AddPositionProperties(Aws::String &&key, Aws::String &&value)
DevicePositionUpdate & WithAccuracy(PositionalAccuracy &&value)
DevicePositionUpdate & WithPosition(const Aws::Vector< double > &value)
DevicePositionUpdate & WithPositionProperties(Aws::Map< Aws::String, Aws::String > &&value)
DevicePositionUpdate & AddPositionProperties(Aws::String &&key, const char *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