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

Workers can send worker logs to different destination types. This * configuration specifies the details of these destinations.

See * Also:

AWS * API Reference

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

Details about delivering logs to Amazon CloudWatch Logs.

*/ inline const CloudWatchLogsLogDeliveryDescription& GetCloudWatchLogs() const{ return m_cloudWatchLogs; } /** *

Details about delivering logs to Amazon CloudWatch Logs.

*/ inline bool CloudWatchLogsHasBeenSet() const { return m_cloudWatchLogsHasBeenSet; } /** *

Details about delivering logs to Amazon CloudWatch Logs.

*/ inline void SetCloudWatchLogs(const CloudWatchLogsLogDeliveryDescription& value) { m_cloudWatchLogsHasBeenSet = true; m_cloudWatchLogs = value; } /** *

Details about delivering logs to Amazon CloudWatch Logs.

*/ inline void SetCloudWatchLogs(CloudWatchLogsLogDeliveryDescription&& value) { m_cloudWatchLogsHasBeenSet = true; m_cloudWatchLogs = std::move(value); } /** *

Details about delivering logs to Amazon CloudWatch Logs.

*/ inline WorkerLogDeliveryDescription& WithCloudWatchLogs(const CloudWatchLogsLogDeliveryDescription& value) { SetCloudWatchLogs(value); return *this;} /** *

Details about delivering logs to Amazon CloudWatch Logs.

*/ inline WorkerLogDeliveryDescription& WithCloudWatchLogs(CloudWatchLogsLogDeliveryDescription&& value) { SetCloudWatchLogs(std::move(value)); return *this;} /** *

Details about delivering logs to Amazon Kinesis Data Firehose.

*/ inline const FirehoseLogDeliveryDescription& GetFirehose() const{ return m_firehose; } /** *

Details about delivering logs to Amazon Kinesis Data Firehose.

*/ inline bool FirehoseHasBeenSet() const { return m_firehoseHasBeenSet; } /** *

Details about delivering logs to Amazon Kinesis Data Firehose.

*/ inline void SetFirehose(const FirehoseLogDeliveryDescription& value) { m_firehoseHasBeenSet = true; m_firehose = value; } /** *

Details about delivering logs to Amazon Kinesis Data Firehose.

*/ inline void SetFirehose(FirehoseLogDeliveryDescription&& value) { m_firehoseHasBeenSet = true; m_firehose = std::move(value); } /** *

Details about delivering logs to Amazon Kinesis Data Firehose.

*/ inline WorkerLogDeliveryDescription& WithFirehose(const FirehoseLogDeliveryDescription& value) { SetFirehose(value); return *this;} /** *

Details about delivering logs to Amazon Kinesis Data Firehose.

*/ inline WorkerLogDeliveryDescription& WithFirehose(FirehoseLogDeliveryDescription&& value) { SetFirehose(std::move(value)); return *this;} /** *

Details about delivering logs to Amazon S3.

*/ inline const S3LogDeliveryDescription& GetS3() const{ return m_s3; } /** *

Details about delivering logs to Amazon S3.

*/ inline bool S3HasBeenSet() const { return m_s3HasBeenSet; } /** *

Details about delivering logs to Amazon S3.

*/ inline void SetS3(const S3LogDeliveryDescription& value) { m_s3HasBeenSet = true; m_s3 = value; } /** *

Details about delivering logs to Amazon S3.

*/ inline void SetS3(S3LogDeliveryDescription&& value) { m_s3HasBeenSet = true; m_s3 = std::move(value); } /** *

Details about delivering logs to Amazon S3.

*/ inline WorkerLogDeliveryDescription& WithS3(const S3LogDeliveryDescription& value) { SetS3(value); return *this;} /** *

Details about delivering logs to Amazon S3.

*/ inline WorkerLogDeliveryDescription& WithS3(S3LogDeliveryDescription&& value) { SetS3(std::move(value)); return *this;} private: CloudWatchLogsLogDeliveryDescription m_cloudWatchLogs; bool m_cloudWatchLogsHasBeenSet = false; FirehoseLogDeliveryDescription m_firehose; bool m_firehoseHasBeenSet = false; S3LogDeliveryDescription m_s3; bool m_s3HasBeenSet = false; }; } // namespace Model } // namespace KafkaConnect } // namespace Aws