public Long getSizeInBytes() {
        return this.sizeInBytes;
    }
<p>
The total storage size, in bytes, of the bucket.
</p>
<p>
If versioning is enabled for the bucket, Amazon Macie calculates this value based on the size of the latest
version of each object in the bucket. This value doesn't reflect the storage size of all versions of each object
in the bucket.
</p>

@return The total storage size, in bytes, of the bucket.</p>
        <p>
        If versioning is enabled for the bucket, Amazon Macie calculates this value based on the size of the
        latest version of each object in the bucket. This value doesn't reflect the storage size of all versions
        of each object in the bucket.
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/MatchingBucket.java