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

The destination for OpenSearch Ingestion logs sent to Amazon * CloudWatch.

See Also:

AWS * API Reference

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

The name of the CloudWatch Logs group to send pipeline logs to. You can * specify an existing log group or create a new one. For example, * /aws/OpenSearchService/IngestionService/my-pipeline.

*/ inline const Aws::String& GetLogGroup() const{ return m_logGroup; } /** *

The name of the CloudWatch Logs group to send pipeline logs to. You can * specify an existing log group or create a new one. For example, * /aws/OpenSearchService/IngestionService/my-pipeline.

*/ inline bool LogGroupHasBeenSet() const { return m_logGroupHasBeenSet; } /** *

The name of the CloudWatch Logs group to send pipeline logs to. You can * specify an existing log group or create a new one. For example, * /aws/OpenSearchService/IngestionService/my-pipeline.

*/ inline void SetLogGroup(const Aws::String& value) { m_logGroupHasBeenSet = true; m_logGroup = value; } /** *

The name of the CloudWatch Logs group to send pipeline logs to. You can * specify an existing log group or create a new one. For example, * /aws/OpenSearchService/IngestionService/my-pipeline.

*/ inline void SetLogGroup(Aws::String&& value) { m_logGroupHasBeenSet = true; m_logGroup = std::move(value); } /** *

The name of the CloudWatch Logs group to send pipeline logs to. You can * specify an existing log group or create a new one. For example, * /aws/OpenSearchService/IngestionService/my-pipeline.

*/ inline void SetLogGroup(const char* value) { m_logGroupHasBeenSet = true; m_logGroup.assign(value); } /** *

The name of the CloudWatch Logs group to send pipeline logs to. You can * specify an existing log group or create a new one. For example, * /aws/OpenSearchService/IngestionService/my-pipeline.

*/ inline CloudWatchLogDestination& WithLogGroup(const Aws::String& value) { SetLogGroup(value); return *this;} /** *

The name of the CloudWatch Logs group to send pipeline logs to. You can * specify an existing log group or create a new one. For example, * /aws/OpenSearchService/IngestionService/my-pipeline.

*/ inline CloudWatchLogDestination& WithLogGroup(Aws::String&& value) { SetLogGroup(std::move(value)); return *this;} /** *

The name of the CloudWatch Logs group to send pipeline logs to. You can * specify an existing log group or create a new one. For example, * /aws/OpenSearchService/IngestionService/my-pipeline.

*/ inline CloudWatchLogDestination& WithLogGroup(const char* value) { SetLogGroup(value); return *this;} private: Aws::String m_logGroup; bool m_logGroupHasBeenSet = false; }; } // namespace Model } // namespace OSIS } // namespace Aws