/** * 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 OpenSearchService { namespace Model { /** *

Specifies whether the Amazon OpenSearch Service domain publishes the * OpenSearch application and slow logs to Amazon CloudWatch. For more information, * see Monitoring * OpenSearch logs with Amazon CloudWatch Logs.

After you enable * log publishing, you still have to enable the collection of slow logs using the * OpenSearch REST API.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the CloudWatch Logs group to publish logs * to.

*/ inline const Aws::String& GetCloudWatchLogsLogGroupArn() const{ return m_cloudWatchLogsLogGroupArn; } /** *

The Amazon Resource Name (ARN) of the CloudWatch Logs group to publish logs * to.

*/ inline bool CloudWatchLogsLogGroupArnHasBeenSet() const { return m_cloudWatchLogsLogGroupArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the CloudWatch Logs group to publish logs * to.

*/ inline void SetCloudWatchLogsLogGroupArn(const Aws::String& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = value; } /** *

The Amazon Resource Name (ARN) of the CloudWatch Logs group to publish logs * to.

*/ inline void SetCloudWatchLogsLogGroupArn(Aws::String&& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the CloudWatch Logs group to publish logs * to.

*/ inline void SetCloudWatchLogsLogGroupArn(const char* value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the CloudWatch Logs group to publish logs * to.

*/ inline LogPublishingOption& WithCloudWatchLogsLogGroupArn(const Aws::String& value) { SetCloudWatchLogsLogGroupArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the CloudWatch Logs group to publish logs * to.

*/ inline LogPublishingOption& WithCloudWatchLogsLogGroupArn(Aws::String&& value) { SetCloudWatchLogsLogGroupArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the CloudWatch Logs group to publish logs * to.

*/ inline LogPublishingOption& WithCloudWatchLogsLogGroupArn(const char* value) { SetCloudWatchLogsLogGroupArn(value); return *this;} /** *

Whether the log should be published.

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

Whether the log should be published.

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

Whether the log should be published.

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

Whether the log should be published.

*/ inline LogPublishingOption& WithEnabled(bool value) { SetEnabled(value); return *this;} private: Aws::String m_cloudWatchLogsLogGroupArn; bool m_cloudWatchLogsLogGroupArnHasBeenSet = false; bool m_enabled; bool m_enabledHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws