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

A container for enabling Amazon CloudWatch publishing for S3 Storage Lens * metrics.

For more information about publishing S3 Storage Lens metrics to * CloudWatch, see Monitor * S3 Storage Lens metrics in CloudWatch in the Amazon S3 User * Guide.

See Also:

AWS * API Reference

*/ class CloudWatchMetrics { public: AWS_S3CONTROL_API CloudWatchMetrics(); AWS_S3CONTROL_API CloudWatchMetrics(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3CONTROL_API CloudWatchMetrics& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

A container that indicates whether CloudWatch publishing for S3 Storage Lens * metrics is enabled. A value of true indicates that CloudWatch * publishing for S3 Storage Lens metrics is enabled.

*/ inline bool GetIsEnabled() const{ return m_isEnabled; } /** *

A container that indicates whether CloudWatch publishing for S3 Storage Lens * metrics is enabled. A value of true indicates that CloudWatch * publishing for S3 Storage Lens metrics is enabled.

*/ inline bool IsEnabledHasBeenSet() const { return m_isEnabledHasBeenSet; } /** *

A container that indicates whether CloudWatch publishing for S3 Storage Lens * metrics is enabled. A value of true indicates that CloudWatch * publishing for S3 Storage Lens metrics is enabled.

*/ inline void SetIsEnabled(bool value) { m_isEnabledHasBeenSet = true; m_isEnabled = value; } /** *

A container that indicates whether CloudWatch publishing for S3 Storage Lens * metrics is enabled. A value of true indicates that CloudWatch * publishing for S3 Storage Lens metrics is enabled.

*/ inline CloudWatchMetrics& WithIsEnabled(bool value) { SetIsEnabled(value); return *this;} private: bool m_isEnabled; bool m_isEnabledHasBeenSet = false; }; } // namespace Model } // namespace S3Control } // namespace Aws