/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include configures the CloudWatch Logs to publish for the Elasticsearch
* domain.See Also:
AWS
* API Reference
Configures the OpenSearch index logs publishing.
*/ inline const AwsElasticsearchDomainLogPublishingOptionsLogConfig& GetIndexSlowLogs() const{ return m_indexSlowLogs; } /** *Configures the OpenSearch index logs publishing.
*/ inline bool IndexSlowLogsHasBeenSet() const { return m_indexSlowLogsHasBeenSet; } /** *Configures the OpenSearch index logs publishing.
*/ inline void SetIndexSlowLogs(const AwsElasticsearchDomainLogPublishingOptionsLogConfig& value) { m_indexSlowLogsHasBeenSet = true; m_indexSlowLogs = value; } /** *Configures the OpenSearch index logs publishing.
*/ inline void SetIndexSlowLogs(AwsElasticsearchDomainLogPublishingOptionsLogConfig&& value) { m_indexSlowLogsHasBeenSet = true; m_indexSlowLogs = std::move(value); } /** *Configures the OpenSearch index logs publishing.
*/ inline AwsElasticsearchDomainLogPublishingOptions& WithIndexSlowLogs(const AwsElasticsearchDomainLogPublishingOptionsLogConfig& value) { SetIndexSlowLogs(value); return *this;} /** *Configures the OpenSearch index logs publishing.
*/ inline AwsElasticsearchDomainLogPublishingOptions& WithIndexSlowLogs(AwsElasticsearchDomainLogPublishingOptionsLogConfig&& value) { SetIndexSlowLogs(std::move(value)); return *this;} /** *Configures the OpenSearch search slow log publishing.
*/ inline const AwsElasticsearchDomainLogPublishingOptionsLogConfig& GetSearchSlowLogs() const{ return m_searchSlowLogs; } /** *Configures the OpenSearch search slow log publishing.
*/ inline bool SearchSlowLogsHasBeenSet() const { return m_searchSlowLogsHasBeenSet; } /** *Configures the OpenSearch search slow log publishing.
*/ inline void SetSearchSlowLogs(const AwsElasticsearchDomainLogPublishingOptionsLogConfig& value) { m_searchSlowLogsHasBeenSet = true; m_searchSlowLogs = value; } /** *Configures the OpenSearch search slow log publishing.
*/ inline void SetSearchSlowLogs(AwsElasticsearchDomainLogPublishingOptionsLogConfig&& value) { m_searchSlowLogsHasBeenSet = true; m_searchSlowLogs = std::move(value); } /** *Configures the OpenSearch search slow log publishing.
*/ inline AwsElasticsearchDomainLogPublishingOptions& WithSearchSlowLogs(const AwsElasticsearchDomainLogPublishingOptionsLogConfig& value) { SetSearchSlowLogs(value); return *this;} /** *Configures the OpenSearch search slow log publishing.
*/ inline AwsElasticsearchDomainLogPublishingOptions& WithSearchSlowLogs(AwsElasticsearchDomainLogPublishingOptionsLogConfig&& value) { SetSearchSlowLogs(std::move(value)); return *this;} inline const AwsElasticsearchDomainLogPublishingOptionsLogConfig& GetAuditLogs() const{ return m_auditLogs; } inline bool AuditLogsHasBeenSet() const { return m_auditLogsHasBeenSet; } inline void SetAuditLogs(const AwsElasticsearchDomainLogPublishingOptionsLogConfig& value) { m_auditLogsHasBeenSet = true; m_auditLogs = value; } inline void SetAuditLogs(AwsElasticsearchDomainLogPublishingOptionsLogConfig&& value) { m_auditLogsHasBeenSet = true; m_auditLogs = std::move(value); } inline AwsElasticsearchDomainLogPublishingOptions& WithAuditLogs(const AwsElasticsearchDomainLogPublishingOptionsLogConfig& value) { SetAuditLogs(value); return *this;} inline AwsElasticsearchDomainLogPublishingOptions& WithAuditLogs(AwsElasticsearchDomainLogPublishingOptionsLogConfig&& value) { SetAuditLogs(std::move(value)); return *this;} private: AwsElasticsearchDomainLogPublishingOptionsLogConfig m_indexSlowLogs; bool m_indexSlowLogsHasBeenSet = false; AwsElasticsearchDomainLogPublishingOptionsLogConfig m_searchSlowLogs; bool m_searchSlowLogsHasBeenSet = false; AwsElasticsearchDomainLogPublishingOptionsLogConfig m_auditLogs; bool m_auditLogsHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws