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

The configuration details of the CloudWatch Logs destination.

See * Also:

AWS * API Reference

*/ class CloudWatchLogsDestinationDetails { public: AWS_ELASTICACHE_API CloudWatchLogsDestinationDetails(); AWS_ELASTICACHE_API CloudWatchLogsDestinationDetails(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICACHE_API CloudWatchLogsDestinationDetails& 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 name of the CloudWatch Logs log group.

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

The name of the CloudWatch Logs log group.

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

The name of the CloudWatch Logs log group.

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

The name of the CloudWatch Logs log group.

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

The name of the CloudWatch Logs log group.

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

The name of the CloudWatch Logs log group.

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

The name of the CloudWatch Logs log group.

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

The name of the CloudWatch Logs log group.

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