AWS SDK for C++  1.9.123
AWS SDK for C++
SetV2LoggingLevelRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
10 #include <aws/iot/model/LogLevel.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace IoT
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "SetV2LoggingLevel"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const LogTarget& GetLogTarget() const{ return m_logTarget; }
40 
44  inline bool LogTargetHasBeenSet() const { return m_logTargetHasBeenSet; }
45 
49  inline void SetLogTarget(const LogTarget& value) { m_logTargetHasBeenSet = true; m_logTarget = value; }
50 
54  inline void SetLogTarget(LogTarget&& value) { m_logTargetHasBeenSet = true; m_logTarget = std::move(value); }
55 
59  inline SetV2LoggingLevelRequest& WithLogTarget(const LogTarget& value) { SetLogTarget(value); return *this;}
60 
64  inline SetV2LoggingLevelRequest& WithLogTarget(LogTarget&& value) { SetLogTarget(std::move(value)); return *this;}
65 
66 
70  inline const LogLevel& GetLogLevel() const{ return m_logLevel; }
71 
75  inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
76 
80  inline void SetLogLevel(const LogLevel& value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
81 
85  inline void SetLogLevel(LogLevel&& value) { m_logLevelHasBeenSet = true; m_logLevel = std::move(value); }
86 
90  inline SetV2LoggingLevelRequest& WithLogLevel(const LogLevel& value) { SetLogLevel(value); return *this;}
91 
95  inline SetV2LoggingLevelRequest& WithLogLevel(LogLevel&& value) { SetLogLevel(std::move(value)); return *this;}
96 
97  private:
98 
99  LogTarget m_logTarget;
100  bool m_logTargetHasBeenSet;
101 
102  LogLevel m_logLevel;
103  bool m_logLevelHasBeenSet;
104  };
105 
106 } // namespace Model
107 } // namespace IoT
108 } // namespace Aws
Aws::IoT::Model::LogLevel
LogLevel
Definition: LogLevel.h:17
Aws::IoT::Model::SetV2LoggingLevelRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SetV2LoggingLevelRequest.h:31
LogLevel.h
Aws::IoT::Model::SetV2LoggingLevelRequest::SetLogLevel
void SetLogLevel(LogLevel &&value)
Definition: SetV2LoggingLevelRequest.h:85
Aws::IoT::Model::SetV2LoggingLevelRequest::GetLogLevel
const LogLevel & GetLogLevel() const
Definition: SetV2LoggingLevelRequest.h:70
Aws::IoT::Model::SetV2LoggingLevelRequest::SetLogTarget
void SetLogTarget(LogTarget &&value)
Definition: SetV2LoggingLevelRequest.h:54
LogTarget.h
Aws::IoT::Model::SetV2LoggingLevelRequest::LogTargetHasBeenSet
bool LogTargetHasBeenSet() const
Definition: SetV2LoggingLevelRequest.h:44
Aws::IoT::Model::SetV2LoggingLevelRequest::SetLogTarget
void SetLogTarget(const LogTarget &value)
Definition: SetV2LoggingLevelRequest.h:49
Aws::IoT::Model::SetV2LoggingLevelRequest
Definition: SetV2LoggingLevelRequest.h:23
Aws::IoT::Model::SetV2LoggingLevelRequest::WithLogTarget
SetV2LoggingLevelRequest & WithLogTarget(LogTarget &&value)
Definition: SetV2LoggingLevelRequest.h:64
Aws::IoT::Model::LogTarget
Definition: LogTarget.h:33
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::SetV2LoggingLevelRequest::WithLogLevel
SetV2LoggingLevelRequest & WithLogLevel(const LogLevel &value)
Definition: SetV2LoggingLevelRequest.h:90
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::SetV2LoggingLevelRequest::SetLogLevel
void SetLogLevel(const LogLevel &value)
Definition: SetV2LoggingLevelRequest.h:80
Aws::IoT::Model::SetV2LoggingLevelRequest::LogLevelHasBeenSet
bool LogLevelHasBeenSet() const
Definition: SetV2LoggingLevelRequest.h:75
Aws::IoT::Model::SetV2LoggingLevelRequest::GetLogTarget
const LogTarget & GetLogTarget() const
Definition: SetV2LoggingLevelRequest.h:39
Aws::IoT::Model::SetV2LoggingLevelRequest::WithLogLevel
SetV2LoggingLevelRequest & WithLogLevel(LogLevel &&value)
Definition: SetV2LoggingLevelRequest.h:95
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::SetV2LoggingLevelRequest::WithLogTarget
SetV2LoggingLevelRequest & WithLogTarget(const LogTarget &value)
Definition: SetV2LoggingLevelRequest.h:59
Aws::IoT::Model::SetV2LoggingLevelRequest::SerializePayload
Aws::String SerializePayload() const override
IoTRequest.h
Aws::IoT::Model::SetV2LoggingLevelRequest::SetV2LoggingLevelRequest
SetV2LoggingLevelRequest()
IoT_EXPORTS.h