AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FuotaTaskLogOption.h
1
6#pragma once
7#include <aws/iotwireless/IoTWireless_EXPORTS.h>
8#include <aws/iotwireless/model/FuotaTaskType.h>
9#include <aws/iotwireless/model/LogLevel.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iotwireless/model/FuotaTaskEventLogOption.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 FuotaTaskLogOption() = default;
39 AWS_IOTWIRELESS_API FuotaTaskLogOption(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline FuotaTaskType GetType() const { return m_type; }
49 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 inline void SetType(FuotaTaskType value) { m_typeHasBeenSet = true; m_type = value; }
51 inline FuotaTaskLogOption& WithType(FuotaTaskType 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 FuotaTaskLogOption& WithLogLevel(LogLevel value) { SetLogLevel(value); return *this;}
61
63
64 inline const Aws::Vector<FuotaTaskEventLogOption>& GetEvents() const { return m_events; }
65 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
66 template<typename EventsT = Aws::Vector<FuotaTaskEventLogOption>>
67 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
68 template<typename EventsT = Aws::Vector<FuotaTaskEventLogOption>>
69 FuotaTaskLogOption& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
70 template<typename EventsT = FuotaTaskEventLogOption>
71 FuotaTaskLogOption& 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
FuotaTaskLogOption & WithLogLevel(LogLevel value)
const Aws::Vector< FuotaTaskEventLogOption > & GetEvents() const
AWS_IOTWIRELESS_API FuotaTaskLogOption & operator=(Aws::Utils::Json::JsonView jsonValue)
FuotaTaskLogOption & WithEvents(EventsT &&value)
FuotaTaskLogOption & WithType(FuotaTaskType value)
AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const
FuotaTaskLogOption & AddEvents(EventsT &&value)
AWS_IOTWIRELESS_API FuotaTaskLogOption()=default
AWS_IOTWIRELESS_API FuotaTaskLogOption(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue