/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace MWAA { namespace Model { /** *

Enables the Apache Airflow log type (e.g. DagProcessingLogs) and * defines the log level to send to CloudWatch Logs (e.g. * INFO).

See Also:

AWS * API Reference

*/ class ModuleLoggingConfigurationInput { public: AWS_MWAA_API ModuleLoggingConfigurationInput(); AWS_MWAA_API ModuleLoggingConfigurationInput(Aws::Utils::Json::JsonView jsonValue); AWS_MWAA_API ModuleLoggingConfigurationInput& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MWAA_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Indicates whether to enable the Apache Airflow log type (e.g. * DagProcessingLogs).

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

Indicates whether to enable the Apache Airflow log type (e.g. * DagProcessingLogs).

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

Indicates whether to enable the Apache Airflow log type (e.g. * DagProcessingLogs).

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

Indicates whether to enable the Apache Airflow log type (e.g. * DagProcessingLogs).

*/ inline ModuleLoggingConfigurationInput& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

Defines the Apache Airflow log level (e.g. INFO) to send to * CloudWatch Logs.

*/ inline const LoggingLevel& GetLogLevel() const{ return m_logLevel; } /** *

Defines the Apache Airflow log level (e.g. INFO) to send to * CloudWatch Logs.

*/ inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; } /** *

Defines the Apache Airflow log level (e.g. INFO) to send to * CloudWatch Logs.

*/ inline void SetLogLevel(const LoggingLevel& value) { m_logLevelHasBeenSet = true; m_logLevel = value; } /** *

Defines the Apache Airflow log level (e.g. INFO) to send to * CloudWatch Logs.

*/ inline void SetLogLevel(LoggingLevel&& value) { m_logLevelHasBeenSet = true; m_logLevel = std::move(value); } /** *

Defines the Apache Airflow log level (e.g. INFO) to send to * CloudWatch Logs.

*/ inline ModuleLoggingConfigurationInput& WithLogLevel(const LoggingLevel& value) { SetLogLevel(value); return *this;} /** *

Defines the Apache Airflow log level (e.g. INFO) to send to * CloudWatch Logs.

*/ inline ModuleLoggingConfigurationInput& WithLogLevel(LoggingLevel&& value) { SetLogLevel(std::move(value)); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; LoggingLevel m_logLevel; bool m_logLevelHasBeenSet = false; }; } // namespace Model } // namespace MWAA } // namespace Aws