AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
SetV2LoggingLevelRequest.h
1
6#pragma once
7#include <aws/iot/IoTRequest.h>
8#include <aws/iot/IoT_EXPORTS.h>
9#include <aws/iot/model/LogLevel.h>
10#include <aws/iot/model/LogTarget.h>
11
12#include <utility>
13
14namespace Aws {
15namespace IoT {
16namespace Model {
17
21 public:
22 AWS_IOT_API SetV2LoggingLevelRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "SetV2LoggingLevel"; }
29
30 AWS_IOT_API Aws::String SerializePayload() const override;
31
33
36 inline const LogTarget& GetLogTarget() const { return m_logTarget; }
37 inline bool LogTargetHasBeenSet() const { return m_logTargetHasBeenSet; }
38 template <typename LogTargetT = LogTarget>
39 void SetLogTarget(LogTargetT&& value) {
40 m_logTargetHasBeenSet = true;
41 m_logTarget = std::forward<LogTargetT>(value);
42 }
43 template <typename LogTargetT = LogTarget>
45 SetLogTarget(std::forward<LogTargetT>(value));
46 return *this;
47 }
49
51
54 inline LogLevel GetLogLevel() const { return m_logLevel; }
55 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
56 inline void SetLogLevel(LogLevel value) {
57 m_logLevelHasBeenSet = true;
58 m_logLevel = value;
59 }
61 SetLogLevel(value);
62 return *this;
63 }
65 private:
66 LogTarget m_logTarget;
67
68 LogLevel m_logLevel{LogLevel::NOT_SET};
69 bool m_logTargetHasBeenSet = false;
70 bool m_logLevelHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace IoT
75} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_IOT_API SetV2LoggingLevelRequest()=default
SetV2LoggingLevelRequest & WithLogTarget(LogTargetT &&value)
AWS_IOT_API Aws::String SerializePayload() const override
SetV2LoggingLevelRequest & WithLogLevel(LogLevel value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String