AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const BatteryLevel& GetBatteryLevel() const{ return m_batteryLevel; }
57 inline bool BatteryLevelHasBeenSet() const { return m_batteryLevelHasBeenSet; }
58 inline void SetBatteryLevel(const BatteryLevel& value) { m_batteryLevelHasBeenSet = true; m_batteryLevel = value; }
59 inline void SetBatteryLevel(BatteryLevel&& value) { m_batteryLevelHasBeenSet = true; m_batteryLevel = std::move(value); }
60 inline SidewalkDeviceMetadata& WithBatteryLevel(const BatteryLevel& value) { SetBatteryLevel(value); return *this;}
61 inline SidewalkDeviceMetadata& WithBatteryLevel(BatteryLevel&& value) { SetBatteryLevel(std::move(value)); return *this;}
63
65
68 inline const Event& GetEvent() const{ return m_event; }
69 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
70 inline void SetEvent(const Event& value) { m_eventHasBeenSet = true; m_event = value; }
71 inline void SetEvent(Event&& value) { m_eventHasBeenSet = true; m_event = std::move(value); }
72 inline SidewalkDeviceMetadata& WithEvent(const Event& value) { SetEvent(value); return *this;}
73 inline SidewalkDeviceMetadata& WithEvent(Event&& value) { SetEvent(std::move(value)); return *this;}
75
77
80 inline const DeviceState& GetDeviceState() const{ return m_deviceState; }
81 inline bool DeviceStateHasBeenSet() const { return m_deviceStateHasBeenSet; }
82 inline void SetDeviceState(const DeviceState& value) { m_deviceStateHasBeenSet = true; m_deviceState = value; }
83 inline void SetDeviceState(DeviceState&& value) { m_deviceStateHasBeenSet = true; m_deviceState = std::move(value); }
84 inline SidewalkDeviceMetadata& WithDeviceState(const DeviceState& value) { SetDeviceState(value); return *this;}
85 inline SidewalkDeviceMetadata& WithDeviceState(DeviceState&& value) { SetDeviceState(std::move(value)); return *this;}
87 private:
88
89 int m_rssi;
90 bool m_rssiHasBeenSet = false;
91
92 BatteryLevel m_batteryLevel;
93 bool m_batteryLevelHasBeenSet = false;
94
95 Event m_event;
96 bool m_eventHasBeenSet = false;
97
98 DeviceState m_deviceState;
99 bool m_deviceStateHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace IoTWireless
104} // namespace Aws
SidewalkDeviceMetadata & WithDeviceState(DeviceState &&value)
AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const
SidewalkDeviceMetadata & WithEvent(const Event &value)
SidewalkDeviceMetadata & WithBatteryLevel(const BatteryLevel &value)
SidewalkDeviceMetadata & WithDeviceState(const DeviceState &value)
SidewalkDeviceMetadata & WithEvent(Event &&value)
SidewalkDeviceMetadata & WithBatteryLevel(BatteryLevel &&value)
AWS_IOTWIRELESS_API SidewalkDeviceMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTWIRELESS_API SidewalkDeviceMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue