AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SetV2LoggingLevelRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/model/LogTarget.h>
10#include <aws/iot/model/LogLevel.h>
11#include <utility>
12
13namespace Aws
14{
15namespace IoT
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_IOT_API SetV2LoggingLevelRequest() = default;
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_IOT_API Aws::String SerializePayload() const override;
34
35
37
40 inline const LogTarget& GetLogTarget() const { return m_logTarget; }
41 inline bool LogTargetHasBeenSet() const { return m_logTargetHasBeenSet; }
42 template<typename LogTargetT = LogTarget>
43 void SetLogTarget(LogTargetT&& value) { m_logTargetHasBeenSet = true; m_logTarget = std::forward<LogTargetT>(value); }
44 template<typename LogTargetT = LogTarget>
45 SetV2LoggingLevelRequest& WithLogTarget(LogTargetT&& value) { SetLogTarget(std::forward<LogTargetT>(value)); return *this;}
47
49
52 inline LogLevel GetLogLevel() const { return m_logLevel; }
53 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
54 inline void SetLogLevel(LogLevel value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
55 inline SetV2LoggingLevelRequest& WithLogLevel(LogLevel value) { SetLogLevel(value); return *this;}
57 private:
58
59 LogTarget m_logTarget;
60 bool m_logTargetHasBeenSet = false;
61
62 LogLevel m_logLevel{LogLevel::NOT_SET};
63 bool m_logLevelHasBeenSet = false;
64 };
65
66} // namespace Model
67} // namespace IoT
68} // 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