/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoTWireless { namespace Model { /** *

The log options for a wireless device event and can be used to set log levels * for a specific wireless device event.

For a LoRaWAN device, possible * events for a log messsage are: Join, Rejoin, * Downlink_Data, and Uplink_Data. For a Sidewalk device, * possible events for a log message are Registration, * Downlink_Data, and Uplink_Data.

See * Also:

AWS * API Reference

*/ class WirelessDeviceEventLogOption { public: AWS_IOTWIRELESS_API WirelessDeviceEventLogOption(); AWS_IOTWIRELESS_API WirelessDeviceEventLogOption(Aws::Utils::Json::JsonView jsonValue); AWS_IOTWIRELESS_API WirelessDeviceEventLogOption& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const; inline const WirelessDeviceEvent& GetEvent() const{ return m_event; } inline bool EventHasBeenSet() const { return m_eventHasBeenSet; } inline void SetEvent(const WirelessDeviceEvent& value) { m_eventHasBeenSet = true; m_event = value; } inline void SetEvent(WirelessDeviceEvent&& value) { m_eventHasBeenSet = true; m_event = std::move(value); } inline WirelessDeviceEventLogOption& WithEvent(const WirelessDeviceEvent& value) { SetEvent(value); return *this;} inline WirelessDeviceEventLogOption& WithEvent(WirelessDeviceEvent&& value) { SetEvent(std::move(value)); return *this;} inline const LogLevel& GetLogLevel() const{ return m_logLevel; } inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; } inline void SetLogLevel(const LogLevel& value) { m_logLevelHasBeenSet = true; m_logLevel = value; } inline void SetLogLevel(LogLevel&& value) { m_logLevelHasBeenSet = true; m_logLevel = std::move(value); } inline WirelessDeviceEventLogOption& WithLogLevel(const LogLevel& value) { SetLogLevel(value); return *this;} inline WirelessDeviceEventLogOption& WithLogLevel(LogLevel&& value) { SetLogLevel(std::move(value)); return *this;} private: WirelessDeviceEvent m_event; bool m_eventHasBeenSet = false; LogLevel m_logLevel; bool m_logLevelHasBeenSet = false; }; } // namespace Model } // namespace IoTWireless } // namespace Aws