AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
LogTargetConfiguration.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/model/LogLevel.h>
9#include <aws/iot/model/LogTarget.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
29 public:
30 AWS_IOT_API LogTargetConfiguration() = default;
34
36
39 inline const LogTarget& GetLogTarget() const { return m_logTarget; }
40 inline bool LogTargetHasBeenSet() const { return m_logTargetHasBeenSet; }
41 template <typename LogTargetT = LogTarget>
42 void SetLogTarget(LogTargetT&& value) {
43 m_logTargetHasBeenSet = true;
44 m_logTarget = std::forward<LogTargetT>(value);
45 }
46 template <typename LogTargetT = LogTarget>
48 SetLogTarget(std::forward<LogTargetT>(value));
49 return *this;
50 }
52
54
57 inline LogLevel GetLogLevel() const { return m_logLevel; }
58 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
59 inline void SetLogLevel(LogLevel value) {
60 m_logLevelHasBeenSet = true;
61 m_logLevel = value;
62 }
64 SetLogLevel(value);
65 return *this;
66 }
68 private:
69 LogTarget m_logTarget;
70
71 LogLevel m_logLevel{LogLevel::NOT_SET};
72 bool m_logTargetHasBeenSet = false;
73 bool m_logLevelHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace IoT
78} // namespace Aws
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API LogTargetConfiguration()=default
AWS_IOT_API LogTargetConfiguration(Aws::Utils::Json::JsonView jsonValue)
LogTargetConfiguration & WithLogTarget(LogTargetT &&value)
AWS_IOT_API LogTargetConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
LogTargetConfiguration & WithLogLevel(LogLevel value)
Aws::Utils::Json::JsonValue JsonValue