AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
WirelessDeviceLogOption.h
1
6#pragma once
7#include <aws/iotwireless/IoTWireless_EXPORTS.h>
8#include <aws/iotwireless/model/WirelessDeviceType.h>
9#include <aws/iotwireless/model/LogLevel.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iotwireless/model/WirelessDeviceEventLogOption.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoTWireless
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_IOTWIRELESS_API WirelessDeviceLogOption() = default;
41 AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline WirelessDeviceType GetType() const { return m_type; }
49 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 inline void SetType(WirelessDeviceType value) { m_typeHasBeenSet = true; m_type = value; }
51 inline WirelessDeviceLogOption& WithType(WirelessDeviceType value) { SetType(value); return *this;}
53
55
56 inline LogLevel GetLogLevel() const { return m_logLevel; }
57 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
58 inline void SetLogLevel(LogLevel value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
59 inline WirelessDeviceLogOption& WithLogLevel(LogLevel value) { SetLogLevel(value); return *this;}
61
63
64 inline const Aws::Vector<WirelessDeviceEventLogOption>& GetEvents() const { return m_events; }
65 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
66 template<typename EventsT = Aws::Vector<WirelessDeviceEventLogOption>>
67 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
68 template<typename EventsT = Aws::Vector<WirelessDeviceEventLogOption>>
69 WirelessDeviceLogOption& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
70 template<typename EventsT = WirelessDeviceEventLogOption>
71 WirelessDeviceLogOption& AddEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events.emplace_back(std::forward<EventsT>(value)); return *this; }
73 private:
74
76 bool m_typeHasBeenSet = false;
77
78 LogLevel m_logLevel{LogLevel::NOT_SET};
79 bool m_logLevelHasBeenSet = false;
80
82 bool m_eventsHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace IoTWireless
87} // namespace Aws
WirelessDeviceLogOption & AddEvents(EventsT &&value)
WirelessDeviceLogOption & WithType(WirelessDeviceType value)
WirelessDeviceLogOption & WithLogLevel(LogLevel value)
AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTWIRELESS_API WirelessDeviceLogOption & operator=(Aws::Utils::Json::JsonView jsonValue)
WirelessDeviceLogOption & WithEvents(EventsT &&value)
AWS_IOTWIRELESS_API WirelessDeviceLogOption(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< WirelessDeviceEventLogOption > & GetEvents() const
AWS_IOTWIRELESS_API WirelessDeviceLogOption()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue