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

The configured log publishing options for the domain and their current * status.

See Also:

AWS * API Reference

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

The log publishing options configured for the domain.

*/ inline const Aws::Map& GetOptions() const{ return m_options; } /** *

The log publishing options configured for the domain.

*/ inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; } /** *

The log publishing options configured for the domain.

*/ inline void SetOptions(const Aws::Map& value) { m_optionsHasBeenSet = true; m_options = value; } /** *

The log publishing options configured for the domain.

*/ inline void SetOptions(Aws::Map&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); } /** *

The log publishing options configured for the domain.

*/ inline LogPublishingOptionsStatus& WithOptions(const Aws::Map& value) { SetOptions(value); return *this;} /** *

The log publishing options configured for the domain.

*/ inline LogPublishingOptionsStatus& WithOptions(Aws::Map&& value) { SetOptions(std::move(value)); return *this;} /** *

The log publishing options configured for the domain.

*/ inline LogPublishingOptionsStatus& AddOptions(const LogType& key, const LogPublishingOption& value) { m_optionsHasBeenSet = true; m_options.emplace(key, value); return *this; } /** *

The log publishing options configured for the domain.

*/ inline LogPublishingOptionsStatus& AddOptions(LogType&& key, const LogPublishingOption& value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), value); return *this; } /** *

The log publishing options configured for the domain.

*/ inline LogPublishingOptionsStatus& AddOptions(const LogType& key, LogPublishingOption&& value) { m_optionsHasBeenSet = true; m_options.emplace(key, std::move(value)); return *this; } /** *

The log publishing options configured for the domain.

*/ inline LogPublishingOptionsStatus& AddOptions(LogType&& key, LogPublishingOption&& value) { m_optionsHasBeenSet = true; m_options.emplace(std::move(key), std::move(value)); return *this; } /** *

The status of the log publishing options for the domain.

*/ inline const OptionStatus& GetStatus() const{ return m_status; } /** *

The status of the log publishing options for the domain.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the log publishing options for the domain.

*/ inline void SetStatus(const OptionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the log publishing options for the domain.

*/ inline void SetStatus(OptionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the log publishing options for the domain.

*/ inline LogPublishingOptionsStatus& WithStatus(const OptionStatus& value) { SetStatus(value); return *this;} /** *

The status of the log publishing options for the domain.

*/ inline LogPublishingOptionsStatus& WithStatus(OptionStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::Map m_options; bool m_optionsHasBeenSet = false; OptionStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws