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

The configuration setting for the log types to be enabled for export to * Amazon CloudWatch Logs for a specific instance or cluster.

The * EnableLogTypes and DisableLogTypes arrays determine * which logs are exported (or not exported) to CloudWatch Logs. The values within * these arrays depend on the engine that is being used.

See Also:

* AWS * API Reference

*/ class CloudwatchLogsExportConfiguration { public: AWS_DOCDB_API CloudwatchLogsExportConfiguration(); AWS_DOCDB_API CloudwatchLogsExportConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_DOCDB_API CloudwatchLogsExportConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_DOCDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The list of log types to enable.

*/ inline const Aws::Vector& GetEnableLogTypes() const{ return m_enableLogTypes; } /** *

The list of log types to enable.

*/ inline bool EnableLogTypesHasBeenSet() const { return m_enableLogTypesHasBeenSet; } /** *

The list of log types to enable.

*/ inline void SetEnableLogTypes(const Aws::Vector& value) { m_enableLogTypesHasBeenSet = true; m_enableLogTypes = value; } /** *

The list of log types to enable.

*/ inline void SetEnableLogTypes(Aws::Vector&& value) { m_enableLogTypesHasBeenSet = true; m_enableLogTypes = std::move(value); } /** *

The list of log types to enable.

*/ inline CloudwatchLogsExportConfiguration& WithEnableLogTypes(const Aws::Vector& value) { SetEnableLogTypes(value); return *this;} /** *

The list of log types to enable.

*/ inline CloudwatchLogsExportConfiguration& WithEnableLogTypes(Aws::Vector&& value) { SetEnableLogTypes(std::move(value)); return *this;} /** *

The list of log types to enable.

*/ inline CloudwatchLogsExportConfiguration& AddEnableLogTypes(const Aws::String& value) { m_enableLogTypesHasBeenSet = true; m_enableLogTypes.push_back(value); return *this; } /** *

The list of log types to enable.

*/ inline CloudwatchLogsExportConfiguration& AddEnableLogTypes(Aws::String&& value) { m_enableLogTypesHasBeenSet = true; m_enableLogTypes.push_back(std::move(value)); return *this; } /** *

The list of log types to enable.

*/ inline CloudwatchLogsExportConfiguration& AddEnableLogTypes(const char* value) { m_enableLogTypesHasBeenSet = true; m_enableLogTypes.push_back(value); return *this; } /** *

The list of log types to disable.

*/ inline const Aws::Vector& GetDisableLogTypes() const{ return m_disableLogTypes; } /** *

The list of log types to disable.

*/ inline bool DisableLogTypesHasBeenSet() const { return m_disableLogTypesHasBeenSet; } /** *

The list of log types to disable.

*/ inline void SetDisableLogTypes(const Aws::Vector& value) { m_disableLogTypesHasBeenSet = true; m_disableLogTypes = value; } /** *

The list of log types to disable.

*/ inline void SetDisableLogTypes(Aws::Vector&& value) { m_disableLogTypesHasBeenSet = true; m_disableLogTypes = std::move(value); } /** *

The list of log types to disable.

*/ inline CloudwatchLogsExportConfiguration& WithDisableLogTypes(const Aws::Vector& value) { SetDisableLogTypes(value); return *this;} /** *

The list of log types to disable.

*/ inline CloudwatchLogsExportConfiguration& WithDisableLogTypes(Aws::Vector&& value) { SetDisableLogTypes(std::move(value)); return *this;} /** *

The list of log types to disable.

*/ inline CloudwatchLogsExportConfiguration& AddDisableLogTypes(const Aws::String& value) { m_disableLogTypesHasBeenSet = true; m_disableLogTypes.push_back(value); return *this; } /** *

The list of log types to disable.

*/ inline CloudwatchLogsExportConfiguration& AddDisableLogTypes(Aws::String&& value) { m_disableLogTypesHasBeenSet = true; m_disableLogTypes.push_back(std::move(value)); return *this; } /** *

The list of log types to disable.

*/ inline CloudwatchLogsExportConfiguration& AddDisableLogTypes(const char* value) { m_disableLogTypesHasBeenSet = true; m_disableLogTypes.push_back(value); return *this; } private: Aws::Vector m_enableLogTypes; bool m_enableLogTypesHasBeenSet = false; Aws::Vector m_disableLogTypes; bool m_disableLogTypesHasBeenSet = false; }; } // namespace Model } // namespace DocDB } // namespace Aws