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

The settings for delivering connector logs to Amazon CloudWatch * Logs.

See Also:

AWS * API Reference

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

Whether log delivery to Amazon CloudWatch Logs is enabled.

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

Whether log delivery to Amazon CloudWatch Logs is enabled.

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

Whether log delivery to Amazon CloudWatch Logs is enabled.

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

Whether log delivery to Amazon CloudWatch Logs is enabled.

*/ inline CloudWatchLogsLogDelivery& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

The name of the CloudWatch log group that is the destination for log * delivery.

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

The name of the CloudWatch log group that is the destination for log * delivery.

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

The name of the CloudWatch log group that is the destination for log * delivery.

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

The name of the CloudWatch log group that is the destination for log * delivery.

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

The name of the CloudWatch log group that is the destination for log * delivery.

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

The name of the CloudWatch log group that is the destination for log * delivery.

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

The name of the CloudWatch log group that is the destination for log * delivery.

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

The name of the CloudWatch log group that is the destination for log * delivery.

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