AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LogTargetConfiguration.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/model/LogTarget.h>
9#include <aws/iot/model/LogLevel.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoT
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_IOT_API LogTargetConfiguration() = default;
39
40
42
45 inline const LogTarget& GetLogTarget() const { return m_logTarget; }
46 inline bool LogTargetHasBeenSet() const { return m_logTargetHasBeenSet; }
47 template<typename LogTargetT = LogTarget>
48 void SetLogTarget(LogTargetT&& value) { m_logTargetHasBeenSet = true; m_logTarget = std::forward<LogTargetT>(value); }
49 template<typename LogTargetT = LogTarget>
50 LogTargetConfiguration& WithLogTarget(LogTargetT&& value) { SetLogTarget(std::forward<LogTargetT>(value)); return *this;}
52
54
57 inline LogLevel GetLogLevel() const { return m_logLevel; }
58 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
59 inline void SetLogLevel(LogLevel value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
60 inline LogTargetConfiguration& WithLogLevel(LogLevel value) { SetLogLevel(value); return *this;}
62 private:
63
64 LogTarget m_logTarget;
65 bool m_logTargetHasBeenSet = false;
66
67 LogLevel m_logLevel{LogLevel::NOT_SET};
68 bool m_logLevelHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace IoT
73} // 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