AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
LogEventConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9#include <aws/iot/model/LogLevel.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
31 public:
32 AWS_IOT_API LogEventConfiguration() = default;
36
38
42 inline const Aws::String& GetEventType() const { return m_eventType; }
43 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
44 template <typename EventTypeT = Aws::String>
45 void SetEventType(EventTypeT&& value) {
46 m_eventTypeHasBeenSet = true;
47 m_eventType = std::forward<EventTypeT>(value);
48 }
49 template <typename EventTypeT = Aws::String>
50 LogEventConfiguration& WithEventType(EventTypeT&& value) {
51 SetEventType(std::forward<EventTypeT>(value));
52 return *this;
53 }
55
57
61 inline LogLevel GetLogLevel() const { return m_logLevel; }
62 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
63 inline void SetLogLevel(LogLevel value) {
64 m_logLevelHasBeenSet = true;
65 m_logLevel = value;
66 }
68 SetLogLevel(value);
69 return *this;
70 }
72
74
80 inline const Aws::String& GetLogDestination() const { return m_logDestination; }
81 inline bool LogDestinationHasBeenSet() const { return m_logDestinationHasBeenSet; }
82 template <typename LogDestinationT = Aws::String>
83 void SetLogDestination(LogDestinationT&& value) {
84 m_logDestinationHasBeenSet = true;
85 m_logDestination = std::forward<LogDestinationT>(value);
86 }
87 template <typename LogDestinationT = Aws::String>
88 LogEventConfiguration& WithLogDestination(LogDestinationT&& value) {
89 SetLogDestination(std::forward<LogDestinationT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_eventType;
95
96 LogLevel m_logLevel{LogLevel::NOT_SET};
97
98 Aws::String m_logDestination;
99 bool m_eventTypeHasBeenSet = false;
100 bool m_logLevelHasBeenSet = false;
101 bool m_logDestinationHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace IoT
106} // namespace Aws
void SetLogDestination(LogDestinationT &&value)
AWS_IOT_API LogEventConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
LogEventConfiguration & WithEventType(EventTypeT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API LogEventConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLogDestination() const
LogEventConfiguration & WithLogLevel(LogLevel value)
AWS_IOT_API LogEventConfiguration()=default
LogEventConfiguration & WithLogDestination(LogDestinationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue