AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
LoggingConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lambda-web/LambdaWeb_EXPORTS.h>
9#include <aws/lambda-web/model/ApplicationLogLevel.h>
10#include <aws/lambda-web/model/SystemLogLevel.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LambdaWeb {
22namespace Model {
23
31 public:
32 AWS_LAMBDAWEB_API LoggingConfig() = default;
33 AWS_LAMBDAWEB_API LoggingConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LAMBDAWEB_API LoggingConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LAMBDAWEB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline const Aws::String& GetLogGroup() const { return m_logGroup; }
45 inline bool LogGroupHasBeenSet() const { return m_logGroupHasBeenSet; }
46 template <typename LogGroupT = Aws::String>
47 void SetLogGroup(LogGroupT&& value) {
48 m_logGroupHasBeenSet = true;
49 m_logGroup = std::forward<LogGroupT>(value);
50 }
51 template <typename LogGroupT = Aws::String>
52 LoggingConfig& WithLogGroup(LogGroupT&& value) {
53 SetLogGroup(std::forward<LogGroupT>(value));
54 return *this;
55 }
57
59
64 inline ApplicationLogLevel GetApplicationLogLevel() const { return m_applicationLogLevel; }
65 inline bool ApplicationLogLevelHasBeenSet() const { return m_applicationLogLevelHasBeenSet; }
67 m_applicationLogLevelHasBeenSet = true;
68 m_applicationLogLevel = value;
69 }
72 return *this;
73 }
75
77
82 inline SystemLogLevel GetSystemLogLevel() const { return m_systemLogLevel; }
83 inline bool SystemLogLevelHasBeenSet() const { return m_systemLogLevelHasBeenSet; }
84 inline void SetSystemLogLevel(SystemLogLevel value) {
85 m_systemLogLevelHasBeenSet = true;
86 m_systemLogLevel = value;
87 }
89 SetSystemLogLevel(value);
90 return *this;
91 }
93 private:
94 Aws::String m_logGroup;
95
97
99 bool m_logGroupHasBeenSet = false;
100 bool m_applicationLogLevelHasBeenSet = false;
101 bool m_systemLogLevelHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace LambdaWeb
106} // namespace Aws
AWS_LAMBDAWEB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetLogGroup() const
SystemLogLevel GetSystemLogLevel() const
void SetApplicationLogLevel(ApplicationLogLevel value)
AWS_LAMBDAWEB_API LoggingConfig()=default
void SetSystemLogLevel(SystemLogLevel value)
LoggingConfig & WithSystemLogLevel(SystemLogLevel value)
ApplicationLogLevel GetApplicationLogLevel() const
AWS_LAMBDAWEB_API LoggingConfig(Aws::Utils::Json::JsonView jsonValue)
void SetLogGroup(LogGroupT &&value)
LoggingConfig & WithApplicationLogLevel(ApplicationLogLevel value)
AWS_LAMBDAWEB_API LoggingConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
LoggingConfig & WithLogGroup(LogGroupT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue