/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Macie2 { namespace Model { class AWS_MACIE2_API GetBucketStatisticsResult { public: GetBucketStatisticsResult(); GetBucketStatisticsResult(const Aws::AmazonWebServiceResult& result); GetBucketStatisticsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The total number of buckets.

*/ inline long long GetBucketCount() const{ return m_bucketCount; } /** *

The total number of buckets.

*/ inline void SetBucketCount(long long value) { m_bucketCount = value; } /** *

The total number of buckets.

*/ inline GetBucketStatisticsResult& WithBucketCount(long long value) { SetBucketCount(value); return *this;} /** *

The total number of buckets that are publicly accessible based on a * combination of permissions settings for each bucket.

*/ inline const BucketCountByEffectivePermission& GetBucketCountByEffectivePermission() const{ return m_bucketCountByEffectivePermission; } /** *

The total number of buckets that are publicly accessible based on a * combination of permissions settings for each bucket.

*/ inline void SetBucketCountByEffectivePermission(const BucketCountByEffectivePermission& value) { m_bucketCountByEffectivePermission = value; } /** *

The total number of buckets that are publicly accessible based on a * combination of permissions settings for each bucket.

*/ inline void SetBucketCountByEffectivePermission(BucketCountByEffectivePermission&& value) { m_bucketCountByEffectivePermission = std::move(value); } /** *

The total number of buckets that are publicly accessible based on a * combination of permissions settings for each bucket.

*/ inline GetBucketStatisticsResult& WithBucketCountByEffectivePermission(const BucketCountByEffectivePermission& value) { SetBucketCountByEffectivePermission(value); return *this;} /** *

The total number of buckets that are publicly accessible based on a * combination of permissions settings for each bucket.

*/ inline GetBucketStatisticsResult& WithBucketCountByEffectivePermission(BucketCountByEffectivePermission&& value) { SetBucketCountByEffectivePermission(std::move(value)); return *this;} /** *

The total number of buckets, grouped by server-side encryption type. This * object also reports the total number of buckets that aren't encrypted.

*/ inline const BucketCountByEncryptionType& GetBucketCountByEncryptionType() const{ return m_bucketCountByEncryptionType; } /** *

The total number of buckets, grouped by server-side encryption type. This * object also reports the total number of buckets that aren't encrypted.

*/ inline void SetBucketCountByEncryptionType(const BucketCountByEncryptionType& value) { m_bucketCountByEncryptionType = value; } /** *

The total number of buckets, grouped by server-side encryption type. This * object also reports the total number of buckets that aren't encrypted.

*/ inline void SetBucketCountByEncryptionType(BucketCountByEncryptionType&& value) { m_bucketCountByEncryptionType = std::move(value); } /** *

The total number of buckets, grouped by server-side encryption type. This * object also reports the total number of buckets that aren't encrypted.

*/ inline GetBucketStatisticsResult& WithBucketCountByEncryptionType(const BucketCountByEncryptionType& value) { SetBucketCountByEncryptionType(value); return *this;} /** *

The total number of buckets, grouped by server-side encryption type. This * object also reports the total number of buckets that aren't encrypted.

*/ inline GetBucketStatisticsResult& WithBucketCountByEncryptionType(BucketCountByEncryptionType&& value) { SetBucketCountByEncryptionType(std::move(value)); return *this;} /** *

The total number of buckets that are shared with another AWS account.

*/ inline const BucketCountBySharedAccessType& GetBucketCountBySharedAccessType() const{ return m_bucketCountBySharedAccessType; } /** *

The total number of buckets that are shared with another AWS account.

*/ inline void SetBucketCountBySharedAccessType(const BucketCountBySharedAccessType& value) { m_bucketCountBySharedAccessType = value; } /** *

The total number of buckets that are shared with another AWS account.

*/ inline void SetBucketCountBySharedAccessType(BucketCountBySharedAccessType&& value) { m_bucketCountBySharedAccessType = std::move(value); } /** *

The total number of buckets that are shared with another AWS account.

*/ inline GetBucketStatisticsResult& WithBucketCountBySharedAccessType(const BucketCountBySharedAccessType& value) { SetBucketCountBySharedAccessType(value); return *this;} /** *

The total number of buckets that are shared with another AWS account.

*/ inline GetBucketStatisticsResult& WithBucketCountBySharedAccessType(BucketCountBySharedAccessType&& value) { SetBucketCountBySharedAccessType(std::move(value)); return *this;} /** *

The total number of objects that Amazon Macie can analyze in all the buckets. * These objects use a file format, file extension, or content type that Amazon * Macie supports.

*/ inline long long GetClassifiableObjectCount() const{ return m_classifiableObjectCount; } /** *

The total number of objects that Amazon Macie can analyze in all the buckets. * These objects use a file format, file extension, or content type that Amazon * Macie supports.

*/ inline void SetClassifiableObjectCount(long long value) { m_classifiableObjectCount = value; } /** *

The total number of objects that Amazon Macie can analyze in all the buckets. * These objects use a file format, file extension, or content type that Amazon * Macie supports.

*/ inline GetBucketStatisticsResult& WithClassifiableObjectCount(long long value) { SetClassifiableObjectCount(value); return *this;} /** *

The date and time, in UTC and extended ISO 8601 format, when Amazon Macie * last analyzed the buckets.

*/ inline const Aws::Utils::DateTime& GetLastUpdated() const{ return m_lastUpdated; } /** *

The date and time, in UTC and extended ISO 8601 format, when Amazon Macie * last analyzed the buckets.

*/ inline void SetLastUpdated(const Aws::Utils::DateTime& value) { m_lastUpdated = value; } /** *

The date and time, in UTC and extended ISO 8601 format, when Amazon Macie * last analyzed the buckets.

*/ inline void SetLastUpdated(Aws::Utils::DateTime&& value) { m_lastUpdated = std::move(value); } /** *

The date and time, in UTC and extended ISO 8601 format, when Amazon Macie * last analyzed the buckets.

*/ inline GetBucketStatisticsResult& WithLastUpdated(const Aws::Utils::DateTime& value) { SetLastUpdated(value); return *this;} /** *

The date and time, in UTC and extended ISO 8601 format, when Amazon Macie * last analyzed the buckets.

*/ inline GetBucketStatisticsResult& WithLastUpdated(Aws::Utils::DateTime&& value) { SetLastUpdated(std::move(value)); return *this;} /** *

The total number of objects in all the buckets.

*/ inline long long GetObjectCount() const{ return m_objectCount; } /** *

The total number of objects in all the buckets.

*/ inline void SetObjectCount(long long value) { m_objectCount = value; } /** *

The total number of objects in all the buckets.

*/ inline GetBucketStatisticsResult& WithObjectCount(long long value) { SetObjectCount(value); return *this;} /** *

The total storage size, in bytes, of all the buckets.

*/ inline long long GetSizeInBytes() const{ return m_sizeInBytes; } /** *

The total storage size, in bytes, of all the buckets.

*/ inline void SetSizeInBytes(long long value) { m_sizeInBytes = value; } /** *

The total storage size, in bytes, of all the buckets.

*/ inline GetBucketStatisticsResult& WithSizeInBytes(long long value) { SetSizeInBytes(value); return *this;} /** *

The total compressed storage size, in bytes, of all the buckets.

*/ inline long long GetSizeInBytesCompressed() const{ return m_sizeInBytesCompressed; } /** *

The total compressed storage size, in bytes, of all the buckets.

*/ inline void SetSizeInBytesCompressed(long long value) { m_sizeInBytesCompressed = value; } /** *

The total compressed storage size, in bytes, of all the buckets.

*/ inline GetBucketStatisticsResult& WithSizeInBytesCompressed(long long value) { SetSizeInBytesCompressed(value); return *this;} private: long long m_bucketCount; BucketCountByEffectivePermission m_bucketCountByEffectivePermission; BucketCountByEncryptionType m_bucketCountByEncryptionType; BucketCountBySharedAccessType m_bucketCountBySharedAccessType; long long m_classifiableObjectCount; Aws::Utils::DateTime m_lastUpdated; long long m_objectCount; long long m_sizeInBytes; long long m_sizeInBytesCompressed; }; } // namespace Model } // namespace Macie2 } // namespace Aws