AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
WirelessDeviceLogOption.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/iotwireless/IoTWireless_EXPORTS.h>
9#include <aws/iotwireless/model/LogLevel.h>
10#include <aws/iotwireless/model/WirelessDeviceEventLogOption.h>
11#include <aws/iotwireless/model/WirelessDeviceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTWireless {
23namespace Model {
24
32 public:
33 AWS_IOTWIRELESS_API WirelessDeviceLogOption() = default;
36 AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline WirelessDeviceType GetType() const { return m_type; }
43 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
44 inline void SetType(WirelessDeviceType value) {
45 m_typeHasBeenSet = true;
46 m_type = value;
47 }
49 SetType(value);
50 return *this;
51 }
53
55
56 inline LogLevel GetLogLevel() const { return m_logLevel; }
57 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
58 inline void SetLogLevel(LogLevel value) {
59 m_logLevelHasBeenSet = true;
60 m_logLevel = value;
61 }
63 SetLogLevel(value);
64 return *this;
65 }
67
69
70 inline const Aws::Vector<WirelessDeviceEventLogOption>& GetEvents() const { return m_events; }
71 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
72 template <typename EventsT = Aws::Vector<WirelessDeviceEventLogOption>>
73 void SetEvents(EventsT&& value) {
74 m_eventsHasBeenSet = true;
75 m_events = std::forward<EventsT>(value);
76 }
77 template <typename EventsT = Aws::Vector<WirelessDeviceEventLogOption>>
79 SetEvents(std::forward<EventsT>(value));
80 return *this;
81 }
82 template <typename EventsT = WirelessDeviceEventLogOption>
84 m_eventsHasBeenSet = true;
85 m_events.emplace_back(std::forward<EventsT>(value));
86 return *this;
87 }
89 private:
91
92 LogLevel m_logLevel{LogLevel::NOT_SET};
93
95 bool m_typeHasBeenSet = false;
96 bool m_logLevelHasBeenSet = false;
97 bool m_eventsHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace IoTWireless
102} // 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