AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
SidewalkDeviceMetadata.h
1
6#pragma once
7#include <aws/iotwireless/IoTWireless_EXPORTS.h>
8#include <aws/iotwireless/model/BatteryLevel.h>
9#include <aws/iotwireless/model/DeviceState.h>
10#include <aws/iotwireless/model/Event.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoTWireless {
22namespace Model {
23
30 public:
31 AWS_IOTWIRELESS_API SidewalkDeviceMetadata() = default;
32 AWS_IOTWIRELESS_API SidewalkDeviceMetadata(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline int GetRssi() const { return m_rssi; }
41 inline bool RssiHasBeenSet() const { return m_rssiHasBeenSet; }
42 inline void SetRssi(int value) {
43 m_rssiHasBeenSet = true;
44 m_rssi = value;
45 }
46 inline SidewalkDeviceMetadata& WithRssi(int value) {
47 SetRssi(value);
48 return *this;
49 }
51
53
56 inline BatteryLevel GetBatteryLevel() const { return m_batteryLevel; }
57 inline bool BatteryLevelHasBeenSet() const { return m_batteryLevelHasBeenSet; }
58 inline void SetBatteryLevel(BatteryLevel value) {
59 m_batteryLevelHasBeenSet = true;
60 m_batteryLevel = value;
61 }
63 SetBatteryLevel(value);
64 return *this;
65 }
67
69
72 inline Event GetEvent() const { return m_event; }
73 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
74 inline void SetEvent(Event value) {
75 m_eventHasBeenSet = true;
76 m_event = value;
77 }
79 SetEvent(value);
80 return *this;
81 }
83
85
88 inline DeviceState GetDeviceState() const { return m_deviceState; }
89 inline bool DeviceStateHasBeenSet() const { return m_deviceStateHasBeenSet; }
90 inline void SetDeviceState(DeviceState value) {
91 m_deviceStateHasBeenSet = true;
92 m_deviceState = value;
93 }
95 SetDeviceState(value);
96 return *this;
97 }
99 private:
100 int m_rssi{0};
101
102 BatteryLevel m_batteryLevel{BatteryLevel::NOT_SET};
103
104 Event m_event{Event::NOT_SET};
105
106 DeviceState m_deviceState{DeviceState::NOT_SET};
107 bool m_rssiHasBeenSet = false;
108 bool m_batteryLevelHasBeenSet = false;
109 bool m_eventHasBeenSet = false;
110 bool m_deviceStateHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace IoTWireless
115} // namespace Aws
AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const
SidewalkDeviceMetadata & WithDeviceState(DeviceState value)
SidewalkDeviceMetadata & WithEvent(Event value)
AWS_IOTWIRELESS_API SidewalkDeviceMetadata(Aws::Utils::Json::JsonView jsonValue)
SidewalkDeviceMetadata & WithBatteryLevel(BatteryLevel value)
AWS_IOTWIRELESS_API SidewalkDeviceMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTWIRELESS_API SidewalkDeviceMetadata()=default
Aws::Utils::Json::JsonValue JsonValue