AWS SDK for C++  1.9.106
AWS SDK for C++
SidewalkDeviceMetadata.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace IoTWireless
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
45  inline int GetRssi() const{ return m_rssi; }
46 
50  inline bool RssiHasBeenSet() const { return m_rssiHasBeenSet; }
51 
55  inline void SetRssi(int value) { m_rssiHasBeenSet = true; m_rssi = value; }
56 
60  inline SidewalkDeviceMetadata& WithRssi(int value) { SetRssi(value); return *this;}
61 
62 
66  inline const BatteryLevel& GetBatteryLevel() const{ return m_batteryLevel; }
67 
71  inline bool BatteryLevelHasBeenSet() const { return m_batteryLevelHasBeenSet; }
72 
76  inline void SetBatteryLevel(const BatteryLevel& value) { m_batteryLevelHasBeenSet = true; m_batteryLevel = value; }
77 
81  inline void SetBatteryLevel(BatteryLevel&& value) { m_batteryLevelHasBeenSet = true; m_batteryLevel = std::move(value); }
82 
86  inline SidewalkDeviceMetadata& WithBatteryLevel(const BatteryLevel& value) { SetBatteryLevel(value); return *this;}
87 
91  inline SidewalkDeviceMetadata& WithBatteryLevel(BatteryLevel&& value) { SetBatteryLevel(std::move(value)); return *this;}
92 
93 
97  inline const Event& GetEvent() const{ return m_event; }
98 
102  inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
103 
107  inline void SetEvent(const Event& value) { m_eventHasBeenSet = true; m_event = value; }
108 
112  inline void SetEvent(Event&& value) { m_eventHasBeenSet = true; m_event = std::move(value); }
113 
117  inline SidewalkDeviceMetadata& WithEvent(const Event& value) { SetEvent(value); return *this;}
118 
122  inline SidewalkDeviceMetadata& WithEvent(Event&& value) { SetEvent(std::move(value)); return *this;}
123 
124 
128  inline const DeviceState& GetDeviceState() const{ return m_deviceState; }
129 
133  inline bool DeviceStateHasBeenSet() const { return m_deviceStateHasBeenSet; }
134 
138  inline void SetDeviceState(const DeviceState& value) { m_deviceStateHasBeenSet = true; m_deviceState = value; }
139 
143  inline void SetDeviceState(DeviceState&& value) { m_deviceStateHasBeenSet = true; m_deviceState = std::move(value); }
144 
148  inline SidewalkDeviceMetadata& WithDeviceState(const DeviceState& value) { SetDeviceState(value); return *this;}
149 
153  inline SidewalkDeviceMetadata& WithDeviceState(DeviceState&& value) { SetDeviceState(std::move(value)); return *this;}
154 
155  private:
156 
157  int m_rssi;
158  bool m_rssiHasBeenSet;
159 
160  BatteryLevel m_batteryLevel;
161  bool m_batteryLevelHasBeenSet;
162 
163  Event m_event;
164  bool m_eventHasBeenSet;
165 
166  DeviceState m_deviceState;
167  bool m_deviceStateHasBeenSet;
168  };
169 
170 } // namespace Model
171 } // namespace IoTWireless
172 } // namespace Aws
Aws::IoTWireless::Model::SidewalkDeviceMetadata::WithDeviceState
SidewalkDeviceMetadata & WithDeviceState(const DeviceState &value)
Definition: SidewalkDeviceMetadata.h:148
AWS_IOTWIRELESS_API
#define AWS_IOTWIRELESS_API
Definition: IoTWireless_EXPORTS.h:28
Aws::IoTWireless::Model::SidewalkDeviceMetadata::SetEvent
void SetEvent(const Event &value)
Definition: SidewalkDeviceMetadata.h:107
Aws::IoTWireless::Model::SidewalkDeviceMetadata::WithDeviceState
SidewalkDeviceMetadata & WithDeviceState(DeviceState &&value)
Definition: SidewalkDeviceMetadata.h:153
Aws::IoTWireless::Model::Event
Event
Definition: Event.h:17
Aws::IoTWireless::Model::SidewalkDeviceMetadata::EventHasBeenSet
bool EventHasBeenSet() const
Definition: SidewalkDeviceMetadata.h:102
BatteryLevel.h
Aws::IoTWireless::Model::SidewalkDeviceMetadata::SetEvent
void SetEvent(Event &&value)
Definition: SidewalkDeviceMetadata.h:112
Aws::IoTWireless::Model::SidewalkDeviceMetadata
Definition: SidewalkDeviceMetadata.h:34
Aws::IoTWireless::Model::SidewalkDeviceMetadata::GetBatteryLevel
const BatteryLevel & GetBatteryLevel() const
Definition: SidewalkDeviceMetadata.h:66
Aws::IoTWireless::Model::SidewalkDeviceMetadata::SetRssi
void SetRssi(int value)
Definition: SidewalkDeviceMetadata.h:55
Aws::IoTWireless::Model::SidewalkDeviceMetadata::WithEvent
SidewalkDeviceMetadata & WithEvent(const Event &value)
Definition: SidewalkDeviceMetadata.h:117
IoTWireless_EXPORTS.h
Aws::IoTWireless::Model::SidewalkDeviceMetadata::WithBatteryLevel
SidewalkDeviceMetadata & WithBatteryLevel(const BatteryLevel &value)
Definition: SidewalkDeviceMetadata.h:86
Aws::IoTWireless::Model::SidewalkDeviceMetadata::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTWireless::Model::SidewalkDeviceMetadata::GetDeviceState
const DeviceState & GetDeviceState() const
Definition: SidewalkDeviceMetadata.h:128
Aws::IoTWireless::Model::SidewalkDeviceMetadata::GetRssi
int GetRssi() const
Definition: SidewalkDeviceMetadata.h:45
Aws::IoTWireless::Model::BatteryLevel
BatteryLevel
Definition: BatteryLevel.h:17
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTWireless::Model::SidewalkDeviceMetadata::RssiHasBeenSet
bool RssiHasBeenSet() const
Definition: SidewalkDeviceMetadata.h:50
Aws::IoTWireless::Model::SidewalkDeviceMetadata::WithRssi
SidewalkDeviceMetadata & WithRssi(int value)
Definition: SidewalkDeviceMetadata.h:60
Aws::IoTWireless::Model::SidewalkDeviceMetadata::operator=
SidewalkDeviceMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTWireless::Model::SidewalkDeviceMetadata::SetDeviceState
void SetDeviceState(const DeviceState &value)
Definition: SidewalkDeviceMetadata.h:138
Aws::IoTWireless::Model::SidewalkDeviceMetadata::GetEvent
const Event & GetEvent() const
Definition: SidewalkDeviceMetadata.h:97
Aws::IoTWireless::Model::SidewalkDeviceMetadata::SetDeviceState
void SetDeviceState(DeviceState &&value)
Definition: SidewalkDeviceMetadata.h:143
Aws::IoTWireless::Model::SidewalkDeviceMetadata::WithEvent
SidewalkDeviceMetadata & WithEvent(Event &&value)
Definition: SidewalkDeviceMetadata.h:122
Aws::IoTWireless::Model::DeviceState
DeviceState
Definition: DeviceState.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::IoTWireless::Model::SidewalkDeviceMetadata::WithBatteryLevel
SidewalkDeviceMetadata & WithBatteryLevel(BatteryLevel &&value)
Definition: SidewalkDeviceMetadata.h:91
Aws::IoTWireless::Model::SidewalkDeviceMetadata::BatteryLevelHasBeenSet
bool BatteryLevelHasBeenSet() const
Definition: SidewalkDeviceMetadata.h:71
Event.h
DeviceState.h
Aws::IoTWireless::Model::SidewalkDeviceMetadata::SidewalkDeviceMetadata
SidewalkDeviceMetadata()
Aws::IoTWireless::Model::SidewalkDeviceMetadata::SidewalkDeviceMetadata
SidewalkDeviceMetadata(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTWireless::Model::SidewalkDeviceMetadata::SetBatteryLevel
void SetBatteryLevel(const BatteryLevel &value)
Definition: SidewalkDeviceMetadata.h:76
Aws::IoTWireless::Model::SidewalkDeviceMetadata::SetBatteryLevel
void SetBatteryLevel(BatteryLevel &&value)
Definition: SidewalkDeviceMetadata.h:81
Aws::IoTWireless::Model::SidewalkDeviceMetadata::DeviceStateHasBeenSet
bool DeviceStateHasBeenSet() const
Definition: SidewalkDeviceMetadata.h:133