AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
ModuleLoggingConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mwaa/MWAA_EXPORTS.h>
9#include <aws/mwaa/model/LoggingLevel.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MWAA {
21namespace Model {
22
30 public:
31 AWS_MWAA_API ModuleLoggingConfiguration() = default;
35
37
41 inline bool GetEnabled() const { return m_enabled; }
42 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
43 inline void SetEnabled(bool value) {
44 m_enabledHasBeenSet = true;
45 m_enabled = value;
46 }
48 SetEnabled(value);
49 return *this;
50 }
52
54
58 inline LoggingLevel GetLogLevel() const { return m_logLevel; }
59 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
60 inline void SetLogLevel(LoggingLevel value) {
61 m_logLevelHasBeenSet = true;
62 m_logLevel = value;
63 }
65 SetLogLevel(value);
66 return *this;
67 }
69
71
77 inline const Aws::String& GetCloudWatchLogGroupArn() const { return m_cloudWatchLogGroupArn; }
78 inline bool CloudWatchLogGroupArnHasBeenSet() const { return m_cloudWatchLogGroupArnHasBeenSet; }
79 template <typename CloudWatchLogGroupArnT = Aws::String>
80 void SetCloudWatchLogGroupArn(CloudWatchLogGroupArnT&& value) {
81 m_cloudWatchLogGroupArnHasBeenSet = true;
82 m_cloudWatchLogGroupArn = std::forward<CloudWatchLogGroupArnT>(value);
83 }
84 template <typename CloudWatchLogGroupArnT = Aws::String>
85 ModuleLoggingConfiguration& WithCloudWatchLogGroupArn(CloudWatchLogGroupArnT&& value) {
86 SetCloudWatchLogGroupArn(std::forward<CloudWatchLogGroupArnT>(value));
87 return *this;
88 }
90 private:
91 bool m_enabled{false};
92
94
95 Aws::String m_cloudWatchLogGroupArn;
96 bool m_enabledHasBeenSet = false;
97 bool m_logLevelHasBeenSet = false;
98 bool m_cloudWatchLogGroupArnHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace MWAA
103} // 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