AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ModuleLoggingConfiguration.h
1
6#pragma once
7#include <aws/mwaa/MWAA_EXPORTS.h>
8#include <aws/mwaa/model/LoggingLevel.h>
9#include <aws/core/utils/memory/stl/AWSString.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 MWAA
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_MWAA_API ModuleLoggingConfiguration() = default;
40
41
43
47 inline bool GetEnabled() const { return m_enabled; }
48 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
49 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
50 inline ModuleLoggingConfiguration& WithEnabled(bool value) { SetEnabled(value); return *this;}
52
54
58 inline LoggingLevel GetLogLevel() const { return m_logLevel; }
59 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
60 inline void SetLogLevel(LoggingLevel value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
61 inline ModuleLoggingConfiguration& WithLogLevel(LoggingLevel value) { SetLogLevel(value); return *this;}
63
65
71 inline const Aws::String& GetCloudWatchLogGroupArn() const { return m_cloudWatchLogGroupArn; }
72 inline bool CloudWatchLogGroupArnHasBeenSet() const { return m_cloudWatchLogGroupArnHasBeenSet; }
73 template<typename CloudWatchLogGroupArnT = Aws::String>
74 void SetCloudWatchLogGroupArn(CloudWatchLogGroupArnT&& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = std::forward<CloudWatchLogGroupArnT>(value); }
75 template<typename CloudWatchLogGroupArnT = Aws::String>
76 ModuleLoggingConfiguration& WithCloudWatchLogGroupArn(CloudWatchLogGroupArnT&& value) { SetCloudWatchLogGroupArn(std::forward<CloudWatchLogGroupArnT>(value)); return *this;}
78 private:
79
80 bool m_enabled{false};
81 bool m_enabledHasBeenSet = false;
82
84 bool m_logLevelHasBeenSet = false;
85
86 Aws::String m_cloudWatchLogGroupArn;
87 bool m_cloudWatchLogGroupArnHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace MWAA
92} // namespace Aws
AWS_MWAA_API ModuleLoggingConfiguration()=default
ModuleLoggingConfiguration & WithEnabled(bool value)
ModuleLoggingConfiguration & WithCloudWatchLogGroupArn(CloudWatchLogGroupArnT &&value)
AWS_MWAA_API ModuleLoggingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ModuleLoggingConfiguration & WithLogLevel(LoggingLevel value)
AWS_MWAA_API ModuleLoggingConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetCloudWatchLogGroupArn(CloudWatchLogGroupArnT &&value)
AWS_MWAA_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue