AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
EnableIoTLoggingParams.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9#include <aws/iot/model/LogLevel.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
30 public:
31 AWS_IOT_API EnableIoTLoggingParams() = default;
35
37
40 inline const Aws::String& GetRoleArnForLogging() const { return m_roleArnForLogging; }
41 inline bool RoleArnForLoggingHasBeenSet() const { return m_roleArnForLoggingHasBeenSet; }
42 template <typename RoleArnForLoggingT = Aws::String>
43 void SetRoleArnForLogging(RoleArnForLoggingT&& value) {
44 m_roleArnForLoggingHasBeenSet = true;
45 m_roleArnForLogging = std::forward<RoleArnForLoggingT>(value);
46 }
47 template <typename RoleArnForLoggingT = Aws::String>
48 EnableIoTLoggingParams& WithRoleArnForLogging(RoleArnForLoggingT&& value) {
49 SetRoleArnForLogging(std::forward<RoleArnForLoggingT>(value));
50 return *this;
51 }
53
55
58 inline LogLevel GetLogLevel() const { return m_logLevel; }
59 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
60 inline void SetLogLevel(LogLevel value) {
61 m_logLevelHasBeenSet = true;
62 m_logLevel = value;
63 }
65 SetLogLevel(value);
66 return *this;
67 }
69 private:
70 Aws::String m_roleArnForLogging;
71
72 LogLevel m_logLevel{LogLevel::NOT_SET};
73 bool m_roleArnForLoggingHasBeenSet = false;
74 bool m_logLevelHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace IoT
79} // 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