AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LoggingConfig.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/lambda/model/LogFormat.h>
9#include <aws/lambda/model/ApplicationLogLevel.h>
10#include <aws/lambda/model/SystemLogLevel.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Lambda
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_LAMBDA_API LoggingConfig();
39 AWS_LAMBDA_API LoggingConfig(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const LogFormat& GetLogFormat() const{ return m_logFormat; }
50 inline bool LogFormatHasBeenSet() const { return m_logFormatHasBeenSet; }
51 inline void SetLogFormat(const LogFormat& value) { m_logFormatHasBeenSet = true; m_logFormat = value; }
52 inline void SetLogFormat(LogFormat&& value) { m_logFormatHasBeenSet = true; m_logFormat = std::move(value); }
53 inline LoggingConfig& WithLogFormat(const LogFormat& value) { SetLogFormat(value); return *this;}
54 inline LoggingConfig& WithLogFormat(LogFormat&& value) { SetLogFormat(std::move(value)); return *this;}
56
58
64 inline const ApplicationLogLevel& GetApplicationLogLevel() const{ return m_applicationLogLevel; }
65 inline bool ApplicationLogLevelHasBeenSet() const { return m_applicationLogLevelHasBeenSet; }
66 inline void SetApplicationLogLevel(const ApplicationLogLevel& value) { m_applicationLogLevelHasBeenSet = true; m_applicationLogLevel = value; }
67 inline void SetApplicationLogLevel(ApplicationLogLevel&& value) { m_applicationLogLevelHasBeenSet = true; m_applicationLogLevel = std::move(value); }
69 inline LoggingConfig& WithApplicationLogLevel(ApplicationLogLevel&& value) { SetApplicationLogLevel(std::move(value)); return *this;}
71
73
79 inline const SystemLogLevel& GetSystemLogLevel() const{ return m_systemLogLevel; }
80 inline bool SystemLogLevelHasBeenSet() const { return m_systemLogLevelHasBeenSet; }
81 inline void SetSystemLogLevel(const SystemLogLevel& value) { m_systemLogLevelHasBeenSet = true; m_systemLogLevel = value; }
82 inline void SetSystemLogLevel(SystemLogLevel&& value) { m_systemLogLevelHasBeenSet = true; m_systemLogLevel = std::move(value); }
83 inline LoggingConfig& WithSystemLogLevel(const SystemLogLevel& value) { SetSystemLogLevel(value); return *this;}
84 inline LoggingConfig& WithSystemLogLevel(SystemLogLevel&& value) { SetSystemLogLevel(std::move(value)); return *this;}
86
88
94 inline const Aws::String& GetLogGroup() const{ return m_logGroup; }
95 inline bool LogGroupHasBeenSet() const { return m_logGroupHasBeenSet; }
96 inline void SetLogGroup(const Aws::String& value) { m_logGroupHasBeenSet = true; m_logGroup = value; }
97 inline void SetLogGroup(Aws::String&& value) { m_logGroupHasBeenSet = true; m_logGroup = std::move(value); }
98 inline void SetLogGroup(const char* value) { m_logGroupHasBeenSet = true; m_logGroup.assign(value); }
99 inline LoggingConfig& WithLogGroup(const Aws::String& value) { SetLogGroup(value); return *this;}
100 inline LoggingConfig& WithLogGroup(Aws::String&& value) { SetLogGroup(std::move(value)); return *this;}
101 inline LoggingConfig& WithLogGroup(const char* value) { SetLogGroup(value); return *this;}
103 private:
104
105 LogFormat m_logFormat;
106 bool m_logFormatHasBeenSet = false;
107
108 ApplicationLogLevel m_applicationLogLevel;
109 bool m_applicationLogLevelHasBeenSet = false;
110
111 SystemLogLevel m_systemLogLevel;
112 bool m_systemLogLevelHasBeenSet = false;
113
114 Aws::String m_logGroup;
115 bool m_logGroupHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace Lambda
120} // namespace Aws
void SetLogGroup(Aws::String &&value)
LoggingConfig & WithLogGroup(Aws::String &&value)
void SetSystemLogLevel(const SystemLogLevel &value)
const Aws::String & GetLogGroup() const
LoggingConfig & WithLogGroup(const char *value)
void SetApplicationLogLevel(ApplicationLogLevel &&value)
AWS_LAMBDA_API LoggingConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLogGroup(const Aws::String &value)
LoggingConfig & WithApplicationLogLevel(ApplicationLogLevel &&value)
LoggingConfig & WithApplicationLogLevel(const ApplicationLogLevel &value)
const ApplicationLogLevel & GetApplicationLogLevel() const
LoggingConfig & WithLogFormat(LogFormat &&value)
const LogFormat & GetLogFormat() const
LoggingConfig & WithLogFormat(const LogFormat &value)
void SetLogFormat(const LogFormat &value)
AWS_LAMBDA_API LoggingConfig(Aws::Utils::Json::JsonView jsonValue)
void SetLogGroup(const char *value)
void SetApplicationLogLevel(const ApplicationLogLevel &value)
LoggingConfig & WithSystemLogLevel(SystemLogLevel &&value)
void SetLogFormat(LogFormat &&value)
LoggingConfig & WithLogGroup(const Aws::String &value)
const SystemLogLevel & GetSystemLogLevel() const
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
LoggingConfig & WithSystemLogLevel(const SystemLogLevel &value)
void SetSystemLogLevel(SystemLogLevel &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue