/** * 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 { /** *

The container element for Amazon S3 Storage Lens activity metrics. Activity * metrics show details about how your storage is requested, such as requests (for * example, All requests, Get requests, Put requests), bytes uploaded or * downloaded, and errors.

For more information about S3 Storage Lens, see * Assessing * your storage activity and usage with S3 Storage Lens in the Amazon S3 * User Guide. For a complete list of S3 Storage Lens metrics, see S3 * Storage Lens metrics glossary in the Amazon S3 User * Guide.

See Also:

AWS * API Reference

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

A container that indicates whether activity metrics are enabled.

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

A container that indicates whether activity metrics are enabled.

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

A container that indicates whether activity metrics are enabled.

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

A container that indicates whether activity metrics are enabled.

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