AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
FuotaTaskLogOption.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/FuotaTaskEventLogOption.h>
10#include <aws/iotwireless/model/FuotaTaskType.h>
11#include <aws/iotwireless/model/LogLevel.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 FuotaTaskLogOption() = default;
34 AWS_IOTWIRELESS_API FuotaTaskLogOption(Aws::Utils::Json::JsonView jsonValue);
36 AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline FuotaTaskType GetType() const { return m_type; }
43 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
44 inline void SetType(FuotaTaskType 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<FuotaTaskEventLogOption>& GetEvents() const { return m_events; }
71 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
72 template <typename EventsT = Aws::Vector<FuotaTaskEventLogOption>>
73 void SetEvents(EventsT&& value) {
74 m_eventsHasBeenSet = true;
75 m_events = std::forward<EventsT>(value);
76 }
77 template <typename EventsT = Aws::Vector<FuotaTaskEventLogOption>>
78 FuotaTaskLogOption& WithEvents(EventsT&& value) {
79 SetEvents(std::forward<EventsT>(value));
80 return *this;
81 }
82 template <typename EventsT = FuotaTaskEventLogOption>
83 FuotaTaskLogOption& AddEvents(EventsT&& value) {
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
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