AWS SDK for C++  1.9.132
AWS SDK for C++
LogTargetConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoT
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const LogTarget& GetLogTarget() const{ return m_logTarget; }
45 
49  inline bool LogTargetHasBeenSet() const { return m_logTargetHasBeenSet; }
50 
54  inline void SetLogTarget(const LogTarget& value) { m_logTargetHasBeenSet = true; m_logTarget = value; }
55 
59  inline void SetLogTarget(LogTarget&& value) { m_logTargetHasBeenSet = true; m_logTarget = std::move(value); }
60 
64  inline LogTargetConfiguration& WithLogTarget(const LogTarget& value) { SetLogTarget(value); return *this;}
65 
69  inline LogTargetConfiguration& WithLogTarget(LogTarget&& value) { SetLogTarget(std::move(value)); return *this;}
70 
71 
75  inline const LogLevel& GetLogLevel() const{ return m_logLevel; }
76 
80  inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
81 
85  inline void SetLogLevel(const LogLevel& value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
86 
90  inline void SetLogLevel(LogLevel&& value) { m_logLevelHasBeenSet = true; m_logLevel = std::move(value); }
91 
95  inline LogTargetConfiguration& WithLogLevel(const LogLevel& value) { SetLogLevel(value); return *this;}
96 
100  inline LogTargetConfiguration& WithLogLevel(LogLevel&& value) { SetLogLevel(std::move(value)); return *this;}
101 
102  private:
103 
104  LogTarget m_logTarget;
105  bool m_logTargetHasBeenSet;
106 
107  LogLevel m_logLevel;
108  bool m_logLevelHasBeenSet;
109  };
110 
111 } // namespace Model
112 } // namespace IoT
113 } // namespace Aws
Aws::IoT::Model::LogTargetConfiguration::GetLogTarget
const LogTarget & GetLogTarget() const
Definition: LogTargetConfiguration.h:44
Aws::IoT::Model::LogTargetConfiguration::LogLevelHasBeenSet
bool LogLevelHasBeenSet() const
Definition: LogTargetConfiguration.h:80
Aws::IoT::Model::LogLevel
LogLevel
Definition: LogLevel.h:17
LogLevel.h
Aws::IoT::Model::LogTargetConfiguration::WithLogLevel
LogTargetConfiguration & WithLogLevel(LogLevel &&value)
Definition: LogTargetConfiguration.h:100
Aws::IoT::Model::LogTargetConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
LogTarget.h
Aws::IoT::Model::LogTargetConfiguration::WithLogTarget
LogTargetConfiguration & WithLogTarget(const LogTarget &value)
Definition: LogTargetConfiguration.h:64
Aws::IoT::Model::LogTargetConfiguration::LogTargetHasBeenSet
bool LogTargetHasBeenSet() const
Definition: LogTargetConfiguration.h:49
Aws::IoT::Model::LogTargetConfiguration::SetLogTarget
void SetLogTarget(LogTarget &&value)
Definition: LogTargetConfiguration.h:59
Aws::IoT::Model::LogTargetConfiguration
Definition: LogTargetConfiguration.h:33
Aws::IoT::Model::LogTargetConfiguration::GetLogLevel
const LogLevel & GetLogLevel() const
Definition: LogTargetConfiguration.h:75
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::LogTargetConfiguration::operator=
LogTargetConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::LogTarget
Definition: LogTarget.h:33
Aws::IoT::Model::LogTargetConfiguration::SetLogTarget
void SetLogTarget(const LogTarget &value)
Definition: LogTargetConfiguration.h:54
Aws::IoT::Model::LogTargetConfiguration::LogTargetConfiguration
LogTargetConfiguration()
Aws::IoT::Model::LogTargetConfiguration::SetLogLevel
void SetLogLevel(const LogLevel &value)
Definition: LogTargetConfiguration.h:85
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::LogTargetConfiguration::WithLogTarget
LogTargetConfiguration & WithLogTarget(LogTarget &&value)
Definition: LogTargetConfiguration.h:69
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::LogTargetConfiguration::SetLogLevel
void SetLogLevel(LogLevel &&value)
Definition: LogTargetConfiguration.h:90
Aws::IoT::Model::LogTargetConfiguration::WithLogLevel
LogTargetConfiguration & WithLogLevel(const LogLevel &value)
Definition: LogTargetConfiguration.h:95
IoT_EXPORTS.h
Aws::IoT::Model::LogTargetConfiguration::LogTargetConfiguration
LogTargetConfiguration(Aws::Utils::Json::JsonView jsonValue)