AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
WirelessGatewayLogOption.h
1
6#pragma once
7#include <aws/iotwireless/IoTWireless_EXPORTS.h>
8#include <aws/iotwireless/model/WirelessGatewayType.h>
9#include <aws/iotwireless/model/LogLevel.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iotwireless/model/WirelessGatewayEventLogOption.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 WirelessGatewayLogOption() = default;
41 AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
46 inline WirelessGatewayType GetType() const { return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(WirelessGatewayType value) { m_typeHasBeenSet = true; m_type = value; }
49 inline WirelessGatewayLogOption& WithType(WirelessGatewayType value) { SetType(value); return *this;}
51
53
54 inline LogLevel GetLogLevel() const { return m_logLevel; }
55 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
56 inline void SetLogLevel(LogLevel value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
57 inline WirelessGatewayLogOption& WithLogLevel(LogLevel value) { SetLogLevel(value); return *this;}
59
61
62 inline const Aws::Vector<WirelessGatewayEventLogOption>& GetEvents() const { return m_events; }
63 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
64 template<typename EventsT = Aws::Vector<WirelessGatewayEventLogOption>>
65 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
66 template<typename EventsT = Aws::Vector<WirelessGatewayEventLogOption>>
67 WirelessGatewayLogOption& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
68 template<typename EventsT = WirelessGatewayEventLogOption>
69 WirelessGatewayLogOption& AddEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events.emplace_back(std::forward<EventsT>(value)); return *this; }
71 private:
72
74 bool m_typeHasBeenSet = false;
75
76 LogLevel m_logLevel{LogLevel::NOT_SET};
77 bool m_logLevelHasBeenSet = false;
78
80 bool m_eventsHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace IoTWireless
85} // namespace Aws
WirelessGatewayLogOption & WithEvents(EventsT &&value)
const Aws::Vector< WirelessGatewayEventLogOption > & GetEvents() const
WirelessGatewayLogOption & WithType(WirelessGatewayType value)
WirelessGatewayLogOption & AddEvents(EventsT &&value)
AWS_IOTWIRELESS_API WirelessGatewayLogOption(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTWIRELESS_API WirelessGatewayLogOption & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTWIRELESS_API WirelessGatewayLogOption()=default
AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const
WirelessGatewayLogOption & WithLogLevel(LogLevel value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue