/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace ElastiCache { namespace Model { /** *

Configuration details of either a CloudWatch Logs destination or Kinesis Data * Firehose destination.

See Also:

AWS * API Reference

*/ class DestinationDetails { public: AWS_ELASTICACHE_API DestinationDetails(); AWS_ELASTICACHE_API DestinationDetails(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICACHE_API DestinationDetails& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The configuration details of the CloudWatch Logs destination.

*/ inline const CloudWatchLogsDestinationDetails& GetCloudWatchLogsDetails() const{ return m_cloudWatchLogsDetails; } /** *

The configuration details of the CloudWatch Logs destination.

*/ inline bool CloudWatchLogsDetailsHasBeenSet() const { return m_cloudWatchLogsDetailsHasBeenSet; } /** *

The configuration details of the CloudWatch Logs destination.

*/ inline void SetCloudWatchLogsDetails(const CloudWatchLogsDestinationDetails& value) { m_cloudWatchLogsDetailsHasBeenSet = true; m_cloudWatchLogsDetails = value; } /** *

The configuration details of the CloudWatch Logs destination.

*/ inline void SetCloudWatchLogsDetails(CloudWatchLogsDestinationDetails&& value) { m_cloudWatchLogsDetailsHasBeenSet = true; m_cloudWatchLogsDetails = std::move(value); } /** *

The configuration details of the CloudWatch Logs destination.

*/ inline DestinationDetails& WithCloudWatchLogsDetails(const CloudWatchLogsDestinationDetails& value) { SetCloudWatchLogsDetails(value); return *this;} /** *

The configuration details of the CloudWatch Logs destination.

*/ inline DestinationDetails& WithCloudWatchLogsDetails(CloudWatchLogsDestinationDetails&& value) { SetCloudWatchLogsDetails(std::move(value)); return *this;} /** *

The configuration details of the Kinesis Data Firehose destination.

*/ inline const KinesisFirehoseDestinationDetails& GetKinesisFirehoseDetails() const{ return m_kinesisFirehoseDetails; } /** *

The configuration details of the Kinesis Data Firehose destination.

*/ inline bool KinesisFirehoseDetailsHasBeenSet() const { return m_kinesisFirehoseDetailsHasBeenSet; } /** *

The configuration details of the Kinesis Data Firehose destination.

*/ inline void SetKinesisFirehoseDetails(const KinesisFirehoseDestinationDetails& value) { m_kinesisFirehoseDetailsHasBeenSet = true; m_kinesisFirehoseDetails = value; } /** *

The configuration details of the Kinesis Data Firehose destination.

*/ inline void SetKinesisFirehoseDetails(KinesisFirehoseDestinationDetails&& value) { m_kinesisFirehoseDetailsHasBeenSet = true; m_kinesisFirehoseDetails = std::move(value); } /** *

The configuration details of the Kinesis Data Firehose destination.

*/ inline DestinationDetails& WithKinesisFirehoseDetails(const KinesisFirehoseDestinationDetails& value) { SetKinesisFirehoseDetails(value); return *this;} /** *

The configuration details of the Kinesis Data Firehose destination.

*/ inline DestinationDetails& WithKinesisFirehoseDetails(KinesisFirehoseDestinationDetails&& value) { SetKinesisFirehoseDetails(std::move(value)); return *this;} private: CloudWatchLogsDestinationDetails m_cloudWatchLogsDetails; bool m_cloudWatchLogsDetailsHasBeenSet = false; KinesisFirehoseDestinationDetails m_kinesisFirehoseDetails; bool m_kinesisFirehoseDetailsHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws