AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeviceState.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/location/model/CellSignals.h>
13#include <aws/location/model/WiFiAccessPoint.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace LocationService
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_LOCATIONSERVICE_API DeviceState();
41 AWS_LOCATIONSERVICE_API DeviceState(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LOCATIONSERVICE_API DeviceState& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
51 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
52 inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
53 inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
54 inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
55 inline DeviceState& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
56 inline DeviceState& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
57 inline DeviceState& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
59
61
66 inline const Aws::Utils::DateTime& GetSampleTime() const{ return m_sampleTime; }
67 inline bool SampleTimeHasBeenSet() const { return m_sampleTimeHasBeenSet; }
68 inline void SetSampleTime(const Aws::Utils::DateTime& value) { m_sampleTimeHasBeenSet = true; m_sampleTime = value; }
69 inline void SetSampleTime(Aws::Utils::DateTime&& value) { m_sampleTimeHasBeenSet = true; m_sampleTime = std::move(value); }
70 inline DeviceState& WithSampleTime(const Aws::Utils::DateTime& value) { SetSampleTime(value); return *this;}
71 inline DeviceState& WithSampleTime(Aws::Utils::DateTime&& value) { SetSampleTime(std::move(value)); return *this;}
73
75
78 inline const Aws::Vector<double>& GetPosition() const{ return m_position; }
79 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
80 inline void SetPosition(const Aws::Vector<double>& value) { m_positionHasBeenSet = true; m_position = value; }
81 inline void SetPosition(Aws::Vector<double>&& value) { m_positionHasBeenSet = true; m_position = std::move(value); }
82 inline DeviceState& WithPosition(const Aws::Vector<double>& value) { SetPosition(value); return *this;}
83 inline DeviceState& WithPosition(Aws::Vector<double>&& value) { SetPosition(std::move(value)); return *this;}
84 inline DeviceState& AddPosition(double value) { m_positionHasBeenSet = true; m_position.push_back(value); return *this; }
86
88
89 inline const PositionalAccuracy& GetAccuracy() const{ return m_accuracy; }
90 inline bool AccuracyHasBeenSet() const { return m_accuracyHasBeenSet; }
91 inline void SetAccuracy(const PositionalAccuracy& value) { m_accuracyHasBeenSet = true; m_accuracy = value; }
92 inline void SetAccuracy(PositionalAccuracy&& value) { m_accuracyHasBeenSet = true; m_accuracy = std::move(value); }
93 inline DeviceState& WithAccuracy(const PositionalAccuracy& value) { SetAccuracy(value); return *this;}
94 inline DeviceState& WithAccuracy(PositionalAccuracy&& value) { SetAccuracy(std::move(value)); return *this;}
96
98
101 inline const Aws::String& GetIpv4Address() const{ return m_ipv4Address; }
102 inline bool Ipv4AddressHasBeenSet() const { return m_ipv4AddressHasBeenSet; }
103 inline void SetIpv4Address(const Aws::String& value) { m_ipv4AddressHasBeenSet = true; m_ipv4Address = value; }
104 inline void SetIpv4Address(Aws::String&& value) { m_ipv4AddressHasBeenSet = true; m_ipv4Address = std::move(value); }
105 inline void SetIpv4Address(const char* value) { m_ipv4AddressHasBeenSet = true; m_ipv4Address.assign(value); }
106 inline DeviceState& WithIpv4Address(const Aws::String& value) { SetIpv4Address(value); return *this;}
107 inline DeviceState& WithIpv4Address(Aws::String&& value) { SetIpv4Address(std::move(value)); return *this;}
108 inline DeviceState& WithIpv4Address(const char* value) { SetIpv4Address(value); return *this;}
110
112
115 inline const Aws::Vector<WiFiAccessPoint>& GetWiFiAccessPoints() const{ return m_wiFiAccessPoints; }
116 inline bool WiFiAccessPointsHasBeenSet() const { return m_wiFiAccessPointsHasBeenSet; }
117 inline void SetWiFiAccessPoints(const Aws::Vector<WiFiAccessPoint>& value) { m_wiFiAccessPointsHasBeenSet = true; m_wiFiAccessPoints = value; }
118 inline void SetWiFiAccessPoints(Aws::Vector<WiFiAccessPoint>&& value) { m_wiFiAccessPointsHasBeenSet = true; m_wiFiAccessPoints = std::move(value); }
120 inline DeviceState& WithWiFiAccessPoints(Aws::Vector<WiFiAccessPoint>&& value) { SetWiFiAccessPoints(std::move(value)); return *this;}
121 inline DeviceState& AddWiFiAccessPoints(const WiFiAccessPoint& value) { m_wiFiAccessPointsHasBeenSet = true; m_wiFiAccessPoints.push_back(value); return *this; }
122 inline DeviceState& AddWiFiAccessPoints(WiFiAccessPoint&& value) { m_wiFiAccessPointsHasBeenSet = true; m_wiFiAccessPoints.push_back(std::move(value)); return *this; }
124
126
129 inline const CellSignals& GetCellSignals() const{ return m_cellSignals; }
130 inline bool CellSignalsHasBeenSet() const { return m_cellSignalsHasBeenSet; }
131 inline void SetCellSignals(const CellSignals& value) { m_cellSignalsHasBeenSet = true; m_cellSignals = value; }
132 inline void SetCellSignals(CellSignals&& value) { m_cellSignalsHasBeenSet = true; m_cellSignals = std::move(value); }
133 inline DeviceState& WithCellSignals(const CellSignals& value) { SetCellSignals(value); return *this;}
134 inline DeviceState& WithCellSignals(CellSignals&& value) { SetCellSignals(std::move(value)); return *this;}
136 private:
137
138 Aws::String m_deviceId;
139 bool m_deviceIdHasBeenSet = false;
140
141 Aws::Utils::DateTime m_sampleTime;
142 bool m_sampleTimeHasBeenSet = false;
143
144 Aws::Vector<double> m_position;
145 bool m_positionHasBeenSet = false;
146
147 PositionalAccuracy m_accuracy;
148 bool m_accuracyHasBeenSet = false;
149
150 Aws::String m_ipv4Address;
151 bool m_ipv4AddressHasBeenSet = false;
152
153 Aws::Vector<WiFiAccessPoint> m_wiFiAccessPoints;
154 bool m_wiFiAccessPointsHasBeenSet = false;
155
156 CellSignals m_cellSignals;
157 bool m_cellSignalsHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace LocationService
162} // namespace Aws
AWS_LOCATIONSERVICE_API DeviceState()
DeviceState & WithAccuracy(PositionalAccuracy &&value)
Definition DeviceState.h:94
DeviceState & WithCellSignals(const CellSignals &value)
DeviceState & WithPosition(const Aws::Vector< double > &value)
Definition DeviceState.h:82
DeviceState & WithSampleTime(const Aws::Utils::DateTime &value)
Definition DeviceState.h:70
DeviceState & WithDeviceId(Aws::String &&value)
Definition DeviceState.h:56
void SetSampleTime(const Aws::Utils::DateTime &value)
Definition DeviceState.h:68
DeviceState & AddWiFiAccessPoints(WiFiAccessPoint &&value)
void SetSampleTime(Aws::Utils::DateTime &&value)
Definition DeviceState.h:69
const Aws::Vector< WiFiAccessPoint > & GetWiFiAccessPoints() const
void SetAccuracy(PositionalAccuracy &&value)
Definition DeviceState.h:92
const PositionalAccuracy & GetAccuracy() const
Definition DeviceState.h:89
void SetDeviceId(Aws::String &&value)
Definition DeviceState.h:53
AWS_LOCATIONSERVICE_API DeviceState(Aws::Utils::Json::JsonView jsonValue)
DeviceState & AddPosition(double value)
Definition DeviceState.h:84
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
DeviceState & WithAccuracy(const PositionalAccuracy &value)
Definition DeviceState.h:93
AWS_LOCATIONSERVICE_API DeviceState & operator=(Aws::Utils::Json::JsonView jsonValue)
const CellSignals & GetCellSignals() const
void SetIpv4Address(Aws::String &&value)
const Aws::Vector< double > & GetPosition() const
Definition DeviceState.h:78
void SetWiFiAccessPoints(Aws::Vector< WiFiAccessPoint > &&value)
DeviceState & WithWiFiAccessPoints(Aws::Vector< WiFiAccessPoint > &&value)
DeviceState & AddWiFiAccessPoints(const WiFiAccessPoint &value)
DeviceState & WithPosition(Aws::Vector< double > &&value)
Definition DeviceState.h:83
void SetIpv4Address(const char *value)
DeviceState & WithDeviceId(const char *value)
Definition DeviceState.h:57
void SetWiFiAccessPoints(const Aws::Vector< WiFiAccessPoint > &value)
DeviceState & WithIpv4Address(const char *value)
void SetCellSignals(const CellSignals &value)
const Aws::String & GetDeviceId() const
Definition DeviceState.h:50
void SetPosition(const Aws::Vector< double > &value)
Definition DeviceState.h:80
void SetDeviceId(const char *value)
Definition DeviceState.h:54
void SetPosition(Aws::Vector< double > &&value)
Definition DeviceState.h:81
DeviceState & WithWiFiAccessPoints(const Aws::Vector< WiFiAccessPoint > &value)
DeviceState & WithCellSignals(CellSignals &&value)
DeviceState & WithIpv4Address(const Aws::String &value)
void SetDeviceId(const Aws::String &value)
Definition DeviceState.h:52
void SetIpv4Address(const Aws::String &value)
void SetAccuracy(const PositionalAccuracy &value)
Definition DeviceState.h:91
void SetCellSignals(CellSignals &&value)
DeviceState & WithIpv4Address(Aws::String &&value)
DeviceState & WithSampleTime(Aws::Utils::DateTime &&value)
Definition DeviceState.h:71
const Aws::Utils::DateTime & GetSampleTime() const
Definition DeviceState.h:66
DeviceState & WithDeviceId(const Aws::String &value)
Definition DeviceState.h:55
const Aws::String & GetIpv4Address() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue