AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/Event.h>
10#include <aws/iotwireless/model/DeviceState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoTWireless
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_IOTWIRELESS_API SidewalkDeviceMetadata() = default;
37 AWS_IOTWIRELESS_API SidewalkDeviceMetadata(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline int GetRssi() const { return m_rssi; }
47 inline bool RssiHasBeenSet() const { return m_rssiHasBeenSet; }
48 inline void SetRssi(int value) { m_rssiHasBeenSet = true; m_rssi = value; }
49 inline SidewalkDeviceMetadata& WithRssi(int value) { SetRssi(value); return *this;}
51
53
56 inline BatteryLevel GetBatteryLevel() const { return m_batteryLevel; }
57 inline bool BatteryLevelHasBeenSet() const { return m_batteryLevelHasBeenSet; }
58 inline void SetBatteryLevel(BatteryLevel value) { m_batteryLevelHasBeenSet = true; m_batteryLevel = value; }
61
63
66 inline Event GetEvent() const { return m_event; }
67 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
68 inline void SetEvent(Event value) { m_eventHasBeenSet = true; m_event = value; }
69 inline SidewalkDeviceMetadata& WithEvent(Event value) { SetEvent(value); return *this;}
71
73
76 inline DeviceState GetDeviceState() const { return m_deviceState; }
77 inline bool DeviceStateHasBeenSet() const { return m_deviceStateHasBeenSet; }
78 inline void SetDeviceState(DeviceState value) { m_deviceStateHasBeenSet = true; m_deviceState = value; }
79 inline SidewalkDeviceMetadata& WithDeviceState(DeviceState value) { SetDeviceState(value); return *this;}
81 private:
82
83 int m_rssi{0};
84 bool m_rssiHasBeenSet = false;
85
86 BatteryLevel m_batteryLevel{BatteryLevel::NOT_SET};
87 bool m_batteryLevelHasBeenSet = false;
88
89 Event m_event{Event::NOT_SET};
90 bool m_eventHasBeenSet = false;
91
92 DeviceState m_deviceState{DeviceState::NOT_SET};
93 bool m_deviceStateHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace IoTWireless
98} // 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