AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
WirelessGatewayLogOption.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/WirelessGatewayEventLogOption.h>
11#include <aws/iotwireless/model/WirelessGatewayType.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 WirelessGatewayLogOption() = default;
36 AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
40 inline WirelessGatewayType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 inline void SetType(WirelessGatewayType value) {
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
47 SetType(value);
48 return *this;
49 }
51
53
54 inline LogLevel GetLogLevel() const { return m_logLevel; }
55 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
56 inline void SetLogLevel(LogLevel value) {
57 m_logLevelHasBeenSet = true;
58 m_logLevel = value;
59 }
61 SetLogLevel(value);
62 return *this;
63 }
65
67
68 inline const Aws::Vector<WirelessGatewayEventLogOption>& GetEvents() const { return m_events; }
69 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
70 template <typename EventsT = Aws::Vector<WirelessGatewayEventLogOption>>
71 void SetEvents(EventsT&& value) {
72 m_eventsHasBeenSet = true;
73 m_events = std::forward<EventsT>(value);
74 }
75 template <typename EventsT = Aws::Vector<WirelessGatewayEventLogOption>>
77 SetEvents(std::forward<EventsT>(value));
78 return *this;
79 }
80 template <typename EventsT = WirelessGatewayEventLogOption>
82 m_eventsHasBeenSet = true;
83 m_events.emplace_back(std::forward<EventsT>(value));
84 return *this;
85 }
87 private:
89
90 LogLevel m_logLevel{LogLevel::NOT_SET};
91
93 bool m_typeHasBeenSet = false;
94 bool m_logLevelHasBeenSet = false;
95 bool m_eventsHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace IoTWireless
100} // 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