AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
EnableIoTLoggingParams.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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
34 {
35 public:
36 AWS_IOT_API EnableIoTLoggingParams() = default;
40
41
43
46 inline const Aws::String& GetRoleArnForLogging() const { return m_roleArnForLogging; }
47 inline bool RoleArnForLoggingHasBeenSet() const { return m_roleArnForLoggingHasBeenSet; }
48 template<typename RoleArnForLoggingT = Aws::String>
49 void SetRoleArnForLogging(RoleArnForLoggingT&& value) { m_roleArnForLoggingHasBeenSet = true; m_roleArnForLogging = std::forward<RoleArnForLoggingT>(value); }
50 template<typename RoleArnForLoggingT = Aws::String>
51 EnableIoTLoggingParams& WithRoleArnForLogging(RoleArnForLoggingT&& value) { SetRoleArnForLogging(std::forward<RoleArnForLoggingT>(value)); return *this;}
53
55
58 inline LogLevel GetLogLevel() const { return m_logLevel; }
59 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
60 inline void SetLogLevel(LogLevel value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
61 inline EnableIoTLoggingParams& WithLogLevel(LogLevel value) { SetLogLevel(value); return *this;}
63 private:
64
65 Aws::String m_roleArnForLogging;
66 bool m_roleArnForLoggingHasBeenSet = false;
67
68 LogLevel m_logLevel{LogLevel::NOT_SET};
69 bool m_logLevelHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace IoT
74} // namespace Aws
AWS_IOT_API EnableIoTLoggingParams(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API EnableIoTLoggingParams()=default
EnableIoTLoggingParams & WithLogLevel(LogLevel value)
void SetRoleArnForLogging(RoleArnForLoggingT &&value)
EnableIoTLoggingParams & WithRoleArnForLogging(RoleArnForLoggingT &&value)
AWS_IOT_API EnableIoTLoggingParams & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRoleArnForLogging() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue