AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
LoggingConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lambda/Lambda_EXPORTS.h>
9#include <aws/lambda/model/ApplicationLogLevel.h>
10#include <aws/lambda/model/LogFormat.h>
11#include <aws/lambda/model/SystemLogLevel.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lambda {
23namespace Model {
24
32 public:
33 AWS_LAMBDA_API LoggingConfig() = default;
34 AWS_LAMBDA_API LoggingConfig(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline LogFormat GetLogFormat() const { return m_logFormat; }
44 inline bool LogFormatHasBeenSet() const { return m_logFormatHasBeenSet; }
45 inline void SetLogFormat(LogFormat value) {
46 m_logFormatHasBeenSet = true;
47 m_logFormat = value;
48 }
50 SetLogFormat(value);
51 return *this;
52 }
54
56
62 inline ApplicationLogLevel GetApplicationLogLevel() const { return m_applicationLogLevel; }
63 inline bool ApplicationLogLevelHasBeenSet() const { return m_applicationLogLevelHasBeenSet; }
65 m_applicationLogLevelHasBeenSet = true;
66 m_applicationLogLevel = value;
67 }
70 return *this;
71 }
73
75
81 inline SystemLogLevel GetSystemLogLevel() const { return m_systemLogLevel; }
82 inline bool SystemLogLevelHasBeenSet() const { return m_systemLogLevelHasBeenSet; }
83 inline void SetSystemLogLevel(SystemLogLevel value) {
84 m_systemLogLevelHasBeenSet = true;
85 m_systemLogLevel = value;
86 }
88 SetSystemLogLevel(value);
89 return *this;
90 }
92
94
100 inline const Aws::String& GetLogGroup() const { return m_logGroup; }
101 inline bool LogGroupHasBeenSet() const { return m_logGroupHasBeenSet; }
102 template <typename LogGroupT = Aws::String>
103 void SetLogGroup(LogGroupT&& value) {
104 m_logGroupHasBeenSet = true;
105 m_logGroup = std::forward<LogGroupT>(value);
106 }
107 template <typename LogGroupT = Aws::String>
108 LoggingConfig& WithLogGroup(LogGroupT&& value) {
109 SetLogGroup(std::forward<LogGroupT>(value));
110 return *this;
111 }
113 private:
114 LogFormat m_logFormat{LogFormat::NOT_SET};
115 bool m_logFormatHasBeenSet = false;
116
118 bool m_applicationLogLevelHasBeenSet = false;
119
120 SystemLogLevel m_systemLogLevel{SystemLogLevel::NOT_SET};
121 bool m_systemLogLevelHasBeenSet = false;
122
123 Aws::String m_logGroup;
124 bool m_logGroupHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace Lambda
129} // namespace Aws
LoggingConfig & WithLogGroup(LogGroupT &&value)
const Aws::String & GetLogGroup() const
LoggingConfig & WithSystemLogLevel(SystemLogLevel value)
AWS_LAMBDA_API LoggingConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ApplicationLogLevel GetApplicationLogLevel() const
void SetSystemLogLevel(SystemLogLevel value)
LoggingConfig & WithApplicationLogLevel(ApplicationLogLevel value)
AWS_LAMBDA_API LoggingConfig()=default
void SetApplicationLogLevel(ApplicationLogLevel value)
SystemLogLevel GetSystemLogLevel() const
void SetLogGroup(LogGroupT &&value)
AWS_LAMBDA_API LoggingConfig(Aws::Utils::Json::JsonView jsonValue)
LoggingConfig & WithLogFormat(LogFormat value)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLogFormat(LogFormat value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue