/** * 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 { /** *

Describes the Apache Airflow log types that are published to CloudWatch * Logs.

See Also:

AWS * API Reference

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

The Airflow DAG processing logs published to CloudWatch Logs and the log * level.

*/ inline const ModuleLoggingConfiguration& GetDagProcessingLogs() const{ return m_dagProcessingLogs; } /** *

The Airflow DAG processing logs published to CloudWatch Logs and the log * level.

*/ inline bool DagProcessingLogsHasBeenSet() const { return m_dagProcessingLogsHasBeenSet; } /** *

The Airflow DAG processing logs published to CloudWatch Logs and the log * level.

*/ inline void SetDagProcessingLogs(const ModuleLoggingConfiguration& value) { m_dagProcessingLogsHasBeenSet = true; m_dagProcessingLogs = value; } /** *

The Airflow DAG processing logs published to CloudWatch Logs and the log * level.

*/ inline void SetDagProcessingLogs(ModuleLoggingConfiguration&& value) { m_dagProcessingLogsHasBeenSet = true; m_dagProcessingLogs = std::move(value); } /** *

The Airflow DAG processing logs published to CloudWatch Logs and the log * level.

*/ inline LoggingConfiguration& WithDagProcessingLogs(const ModuleLoggingConfiguration& value) { SetDagProcessingLogs(value); return *this;} /** *

The Airflow DAG processing logs published to CloudWatch Logs and the log * level.

*/ inline LoggingConfiguration& WithDagProcessingLogs(ModuleLoggingConfiguration&& value) { SetDagProcessingLogs(std::move(value)); return *this;} /** *

The Airflow scheduler logs published to CloudWatch Logs and the log * level.

*/ inline const ModuleLoggingConfiguration& GetSchedulerLogs() const{ return m_schedulerLogs; } /** *

The Airflow scheduler logs published to CloudWatch Logs and the log * level.

*/ inline bool SchedulerLogsHasBeenSet() const { return m_schedulerLogsHasBeenSet; } /** *

The Airflow scheduler logs published to CloudWatch Logs and the log * level.

*/ inline void SetSchedulerLogs(const ModuleLoggingConfiguration& value) { m_schedulerLogsHasBeenSet = true; m_schedulerLogs = value; } /** *

The Airflow scheduler logs published to CloudWatch Logs and the log * level.

*/ inline void SetSchedulerLogs(ModuleLoggingConfiguration&& value) { m_schedulerLogsHasBeenSet = true; m_schedulerLogs = std::move(value); } /** *

The Airflow scheduler logs published to CloudWatch Logs and the log * level.

*/ inline LoggingConfiguration& WithSchedulerLogs(const ModuleLoggingConfiguration& value) { SetSchedulerLogs(value); return *this;} /** *

The Airflow scheduler logs published to CloudWatch Logs and the log * level.

*/ inline LoggingConfiguration& WithSchedulerLogs(ModuleLoggingConfiguration&& value) { SetSchedulerLogs(std::move(value)); return *this;} /** *

The Airflow task logs published to CloudWatch Logs and the log level.

*/ inline const ModuleLoggingConfiguration& GetTaskLogs() const{ return m_taskLogs; } /** *

The Airflow task logs published to CloudWatch Logs and the log level.

*/ inline bool TaskLogsHasBeenSet() const { return m_taskLogsHasBeenSet; } /** *

The Airflow task logs published to CloudWatch Logs and the log level.

*/ inline void SetTaskLogs(const ModuleLoggingConfiguration& value) { m_taskLogsHasBeenSet = true; m_taskLogs = value; } /** *

The Airflow task logs published to CloudWatch Logs and the log level.

*/ inline void SetTaskLogs(ModuleLoggingConfiguration&& value) { m_taskLogsHasBeenSet = true; m_taskLogs = std::move(value); } /** *

The Airflow task logs published to CloudWatch Logs and the log level.

*/ inline LoggingConfiguration& WithTaskLogs(const ModuleLoggingConfiguration& value) { SetTaskLogs(value); return *this;} /** *

The Airflow task logs published to CloudWatch Logs and the log level.

*/ inline LoggingConfiguration& WithTaskLogs(ModuleLoggingConfiguration&& value) { SetTaskLogs(std::move(value)); return *this;} /** *

The Airflow web server logs published to CloudWatch Logs and the log * level.

*/ inline const ModuleLoggingConfiguration& GetWebserverLogs() const{ return m_webserverLogs; } /** *

The Airflow web server logs published to CloudWatch Logs and the log * level.

*/ inline bool WebserverLogsHasBeenSet() const { return m_webserverLogsHasBeenSet; } /** *

The Airflow web server logs published to CloudWatch Logs and the log * level.

*/ inline void SetWebserverLogs(const ModuleLoggingConfiguration& value) { m_webserverLogsHasBeenSet = true; m_webserverLogs = value; } /** *

The Airflow web server logs published to CloudWatch Logs and the log * level.

*/ inline void SetWebserverLogs(ModuleLoggingConfiguration&& value) { m_webserverLogsHasBeenSet = true; m_webserverLogs = std::move(value); } /** *

The Airflow web server logs published to CloudWatch Logs and the log * level.

*/ inline LoggingConfiguration& WithWebserverLogs(const ModuleLoggingConfiguration& value) { SetWebserverLogs(value); return *this;} /** *

The Airflow web server logs published to CloudWatch Logs and the log * level.

*/ inline LoggingConfiguration& WithWebserverLogs(ModuleLoggingConfiguration&& value) { SetWebserverLogs(std::move(value)); return *this;} /** *

The Airflow worker logs published to CloudWatch Logs and the log level.

*/ inline const ModuleLoggingConfiguration& GetWorkerLogs() const{ return m_workerLogs; } /** *

The Airflow worker logs published to CloudWatch Logs and the log level.

*/ inline bool WorkerLogsHasBeenSet() const { return m_workerLogsHasBeenSet; } /** *

The Airflow worker logs published to CloudWatch Logs and the log level.

*/ inline void SetWorkerLogs(const ModuleLoggingConfiguration& value) { m_workerLogsHasBeenSet = true; m_workerLogs = value; } /** *

The Airflow worker logs published to CloudWatch Logs and the log level.

*/ inline void SetWorkerLogs(ModuleLoggingConfiguration&& value) { m_workerLogsHasBeenSet = true; m_workerLogs = std::move(value); } /** *

The Airflow worker logs published to CloudWatch Logs and the log level.

*/ inline LoggingConfiguration& WithWorkerLogs(const ModuleLoggingConfiguration& value) { SetWorkerLogs(value); return *this;} /** *

The Airflow worker logs published to CloudWatch Logs and the log level.

*/ inline LoggingConfiguration& WithWorkerLogs(ModuleLoggingConfiguration&& value) { SetWorkerLogs(std::move(value)); return *this;} private: ModuleLoggingConfiguration m_dagProcessingLogs; bool m_dagProcessingLogsHasBeenSet = false; ModuleLoggingConfiguration m_schedulerLogs; bool m_schedulerLogsHasBeenSet = false; ModuleLoggingConfiguration m_taskLogs; bool m_taskLogsHasBeenSet = false; ModuleLoggingConfiguration m_webserverLogs; bool m_webserverLogsHasBeenSet = false; ModuleLoggingConfiguration m_workerLogs; bool m_workerLogsHasBeenSet = false; }; } // namespace Model } // namespace MWAA } // namespace Aws