/** * 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 S3Control { namespace Model { /** *

A container to specify the properties of your S3 Storage Lens metrics export, * including the destination, schema, and format.

See Also:

AWS * API Reference

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

A container for the bucket where the S3 Storage Lens metrics export will be * located.

This bucket must be located in the same Region as the * storage lens configuration.

*/ inline const S3BucketDestination& GetS3BucketDestination() const{ return m_s3BucketDestination; } /** *

A container for the bucket where the S3 Storage Lens metrics export will be * located.

This bucket must be located in the same Region as the * storage lens configuration.

*/ inline bool S3BucketDestinationHasBeenSet() const { return m_s3BucketDestinationHasBeenSet; } /** *

A container for the bucket where the S3 Storage Lens metrics export will be * located.

This bucket must be located in the same Region as the * storage lens configuration.

*/ inline void SetS3BucketDestination(const S3BucketDestination& value) { m_s3BucketDestinationHasBeenSet = true; m_s3BucketDestination = value; } /** *

A container for the bucket where the S3 Storage Lens metrics export will be * located.

This bucket must be located in the same Region as the * storage lens configuration.

*/ inline void SetS3BucketDestination(S3BucketDestination&& value) { m_s3BucketDestinationHasBeenSet = true; m_s3BucketDestination = std::move(value); } /** *

A container for the bucket where the S3 Storage Lens metrics export will be * located.

This bucket must be located in the same Region as the * storage lens configuration.

*/ inline StorageLensDataExport& WithS3BucketDestination(const S3BucketDestination& value) { SetS3BucketDestination(value); return *this;} /** *

A container for the bucket where the S3 Storage Lens metrics export will be * located.

This bucket must be located in the same Region as the * storage lens configuration.

*/ inline StorageLensDataExport& WithS3BucketDestination(S3BucketDestination&& value) { SetS3BucketDestination(std::move(value)); return *this;} /** *

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

*/ inline const CloudWatchMetrics& GetCloudWatchMetrics() const{ return m_cloudWatchMetrics; } /** *

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

*/ inline bool CloudWatchMetricsHasBeenSet() const { return m_cloudWatchMetricsHasBeenSet; } /** *

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

*/ inline void SetCloudWatchMetrics(const CloudWatchMetrics& value) { m_cloudWatchMetricsHasBeenSet = true; m_cloudWatchMetrics = value; } /** *

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

*/ inline void SetCloudWatchMetrics(CloudWatchMetrics&& value) { m_cloudWatchMetricsHasBeenSet = true; m_cloudWatchMetrics = std::move(value); } /** *

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

*/ inline StorageLensDataExport& WithCloudWatchMetrics(const CloudWatchMetrics& value) { SetCloudWatchMetrics(value); return *this;} /** *

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

*/ inline StorageLensDataExport& WithCloudWatchMetrics(CloudWatchMetrics&& value) { SetCloudWatchMetrics(std::move(value)); return *this;} private: S3BucketDestination m_s3BucketDestination; bool m_s3BucketDestinationHasBeenSet = false; CloudWatchMetrics m_cloudWatchMetrics; bool m_cloudWatchMetricsHasBeenSet = false; }; } // namespace Model } // namespace S3Control } // namespace Aws