AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetBucketStatisticsResult.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/model/BucketCountByEffectivePermission.h>
9#include <aws/macie2/model/BucketCountByEncryptionType.h>
10#include <aws/macie2/model/BucketCountPolicyAllowsUnencryptedObjectUploads.h>
11#include <aws/macie2/model/BucketCountBySharedAccessType.h>
12#include <aws/macie2/model/BucketStatisticsBySensitivity.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/macie2/model/ObjectLevelStatistics.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace Macie2
31{
32namespace Model
33{
35 {
36 public:
37 AWS_MACIE2_API GetBucketStatisticsResult() = default;
40
41
43
46 inline long long GetBucketCount() const { return m_bucketCount; }
47 inline void SetBucketCount(long long value) { m_bucketCountHasBeenSet = true; m_bucketCount = value; }
48 inline GetBucketStatisticsResult& WithBucketCount(long long value) { SetBucketCount(value); return *this;}
50
52
56 inline const BucketCountByEffectivePermission& GetBucketCountByEffectivePermission() const { return m_bucketCountByEffectivePermission; }
57 template<typename BucketCountByEffectivePermissionT = BucketCountByEffectivePermission>
58 void SetBucketCountByEffectivePermission(BucketCountByEffectivePermissionT&& value) { m_bucketCountByEffectivePermissionHasBeenSet = true; m_bucketCountByEffectivePermission = std::forward<BucketCountByEffectivePermissionT>(value); }
59 template<typename BucketCountByEffectivePermissionT = BucketCountByEffectivePermission>
60 GetBucketStatisticsResult& WithBucketCountByEffectivePermission(BucketCountByEffectivePermissionT&& value) { SetBucketCountByEffectivePermission(std::forward<BucketCountByEffectivePermissionT>(value)); return *this;}
62
64
68 inline const BucketCountByEncryptionType& GetBucketCountByEncryptionType() const { return m_bucketCountByEncryptionType; }
69 template<typename BucketCountByEncryptionTypeT = BucketCountByEncryptionType>
70 void SetBucketCountByEncryptionType(BucketCountByEncryptionTypeT&& value) { m_bucketCountByEncryptionTypeHasBeenSet = true; m_bucketCountByEncryptionType = std::forward<BucketCountByEncryptionTypeT>(value); }
71 template<typename BucketCountByEncryptionTypeT = BucketCountByEncryptionType>
72 GetBucketStatisticsResult& WithBucketCountByEncryptionType(BucketCountByEncryptionTypeT&& value) { SetBucketCountByEncryptionType(std::forward<BucketCountByEncryptionTypeT>(value)); return *this;}
74
76
80 inline const BucketCountPolicyAllowsUnencryptedObjectUploads& GetBucketCountByObjectEncryptionRequirement() const { return m_bucketCountByObjectEncryptionRequirement; }
81 template<typename BucketCountByObjectEncryptionRequirementT = BucketCountPolicyAllowsUnencryptedObjectUploads>
82 void SetBucketCountByObjectEncryptionRequirement(BucketCountByObjectEncryptionRequirementT&& value) { m_bucketCountByObjectEncryptionRequirementHasBeenSet = true; m_bucketCountByObjectEncryptionRequirement = std::forward<BucketCountByObjectEncryptionRequirementT>(value); }
83 template<typename BucketCountByObjectEncryptionRequirementT = BucketCountPolicyAllowsUnencryptedObjectUploads>
84 GetBucketStatisticsResult& WithBucketCountByObjectEncryptionRequirement(BucketCountByObjectEncryptionRequirementT&& value) { SetBucketCountByObjectEncryptionRequirement(std::forward<BucketCountByObjectEncryptionRequirementT>(value)); return *this;}
86
88
93 inline const BucketCountBySharedAccessType& GetBucketCountBySharedAccessType() const { return m_bucketCountBySharedAccessType; }
94 template<typename BucketCountBySharedAccessTypeT = BucketCountBySharedAccessType>
95 void SetBucketCountBySharedAccessType(BucketCountBySharedAccessTypeT&& value) { m_bucketCountBySharedAccessTypeHasBeenSet = true; m_bucketCountBySharedAccessType = std::forward<BucketCountBySharedAccessTypeT>(value); }
96 template<typename BucketCountBySharedAccessTypeT = BucketCountBySharedAccessType>
97 GetBucketStatisticsResult& WithBucketCountBySharedAccessType(BucketCountBySharedAccessTypeT&& value) { SetBucketCountBySharedAccessType(std::forward<BucketCountBySharedAccessTypeT>(value)); return *this;}
99
101
106 inline const BucketStatisticsBySensitivity& GetBucketStatisticsBySensitivity() const { return m_bucketStatisticsBySensitivity; }
107 template<typename BucketStatisticsBySensitivityT = BucketStatisticsBySensitivity>
108 void SetBucketStatisticsBySensitivity(BucketStatisticsBySensitivityT&& value) { m_bucketStatisticsBySensitivityHasBeenSet = true; m_bucketStatisticsBySensitivity = std::forward<BucketStatisticsBySensitivityT>(value); }
109 template<typename BucketStatisticsBySensitivityT = BucketStatisticsBySensitivity>
110 GetBucketStatisticsResult& WithBucketStatisticsBySensitivity(BucketStatisticsBySensitivityT&& value) { SetBucketStatisticsBySensitivity(std::forward<BucketStatisticsBySensitivityT>(value)); return *this;}
112
114
119 inline long long GetClassifiableObjectCount() const { return m_classifiableObjectCount; }
120 inline void SetClassifiableObjectCount(long long value) { m_classifiableObjectCountHasBeenSet = true; m_classifiableObjectCount = value; }
123
125
133 inline long long GetClassifiableSizeInBytes() const { return m_classifiableSizeInBytes; }
134 inline void SetClassifiableSizeInBytes(long long value) { m_classifiableSizeInBytesHasBeenSet = true; m_classifiableSizeInBytes = value; }
137
139
144 inline const Aws::Utils::DateTime& GetLastUpdated() const { return m_lastUpdated; }
145 template<typename LastUpdatedT = Aws::Utils::DateTime>
146 void SetLastUpdated(LastUpdatedT&& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = std::forward<LastUpdatedT>(value); }
147 template<typename LastUpdatedT = Aws::Utils::DateTime>
148 GetBucketStatisticsResult& WithLastUpdated(LastUpdatedT&& value) { SetLastUpdated(std::forward<LastUpdatedT>(value)); return *this;}
150
152
155 inline long long GetObjectCount() const { return m_objectCount; }
156 inline void SetObjectCount(long long value) { m_objectCountHasBeenSet = true; m_objectCount = value; }
157 inline GetBucketStatisticsResult& WithObjectCount(long long value) { SetObjectCount(value); return *this;}
159
161
167 inline long long GetSizeInBytes() const { return m_sizeInBytes; }
168 inline void SetSizeInBytes(long long value) { m_sizeInBytesHasBeenSet = true; m_sizeInBytes = value; }
169 inline GetBucketStatisticsResult& WithSizeInBytes(long long value) { SetSizeInBytes(value); return *this;}
171
173
180 inline long long GetSizeInBytesCompressed() const { return m_sizeInBytesCompressed; }
181 inline void SetSizeInBytesCompressed(long long value) { m_sizeInBytesCompressedHasBeenSet = true; m_sizeInBytesCompressed = value; }
182 inline GetBucketStatisticsResult& WithSizeInBytesCompressed(long long value) { SetSizeInBytesCompressed(value); return *this;}
184
186
191 inline const ObjectLevelStatistics& GetUnclassifiableObjectCount() const { return m_unclassifiableObjectCount; }
192 template<typename UnclassifiableObjectCountT = ObjectLevelStatistics>
193 void SetUnclassifiableObjectCount(UnclassifiableObjectCountT&& value) { m_unclassifiableObjectCountHasBeenSet = true; m_unclassifiableObjectCount = std::forward<UnclassifiableObjectCountT>(value); }
194 template<typename UnclassifiableObjectCountT = ObjectLevelStatistics>
195 GetBucketStatisticsResult& WithUnclassifiableObjectCount(UnclassifiableObjectCountT&& value) { SetUnclassifiableObjectCount(std::forward<UnclassifiableObjectCountT>(value)); return *this;}
197
199
204 inline const ObjectLevelStatistics& GetUnclassifiableObjectSizeInBytes() const { return m_unclassifiableObjectSizeInBytes; }
205 template<typename UnclassifiableObjectSizeInBytesT = ObjectLevelStatistics>
206 void SetUnclassifiableObjectSizeInBytes(UnclassifiableObjectSizeInBytesT&& value) { m_unclassifiableObjectSizeInBytesHasBeenSet = true; m_unclassifiableObjectSizeInBytes = std::forward<UnclassifiableObjectSizeInBytesT>(value); }
207 template<typename UnclassifiableObjectSizeInBytesT = ObjectLevelStatistics>
208 GetBucketStatisticsResult& WithUnclassifiableObjectSizeInBytes(UnclassifiableObjectSizeInBytesT&& value) { SetUnclassifiableObjectSizeInBytes(std::forward<UnclassifiableObjectSizeInBytesT>(value)); return *this;}
210
212
213 inline const Aws::String& GetRequestId() const { return m_requestId; }
214 template<typename RequestIdT = Aws::String>
215 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
216 template<typename RequestIdT = Aws::String>
217 GetBucketStatisticsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
219 private:
220
221 long long m_bucketCount{0};
222 bool m_bucketCountHasBeenSet = false;
223
224 BucketCountByEffectivePermission m_bucketCountByEffectivePermission;
225 bool m_bucketCountByEffectivePermissionHasBeenSet = false;
226
227 BucketCountByEncryptionType m_bucketCountByEncryptionType;
228 bool m_bucketCountByEncryptionTypeHasBeenSet = false;
229
230 BucketCountPolicyAllowsUnencryptedObjectUploads m_bucketCountByObjectEncryptionRequirement;
231 bool m_bucketCountByObjectEncryptionRequirementHasBeenSet = false;
232
233 BucketCountBySharedAccessType m_bucketCountBySharedAccessType;
234 bool m_bucketCountBySharedAccessTypeHasBeenSet = false;
235
236 BucketStatisticsBySensitivity m_bucketStatisticsBySensitivity;
237 bool m_bucketStatisticsBySensitivityHasBeenSet = false;
238
239 long long m_classifiableObjectCount{0};
240 bool m_classifiableObjectCountHasBeenSet = false;
241
242 long long m_classifiableSizeInBytes{0};
243 bool m_classifiableSizeInBytesHasBeenSet = false;
244
245 Aws::Utils::DateTime m_lastUpdated{};
246 bool m_lastUpdatedHasBeenSet = false;
247
248 long long m_objectCount{0};
249 bool m_objectCountHasBeenSet = false;
250
251 long long m_sizeInBytes{0};
252 bool m_sizeInBytesHasBeenSet = false;
253
254 long long m_sizeInBytesCompressed{0};
255 bool m_sizeInBytesCompressedHasBeenSet = false;
256
257 ObjectLevelStatistics m_unclassifiableObjectCount;
258 bool m_unclassifiableObjectCountHasBeenSet = false;
259
260 ObjectLevelStatistics m_unclassifiableObjectSizeInBytes;
261 bool m_unclassifiableObjectSizeInBytesHasBeenSet = false;
262
263 Aws::String m_requestId;
264 bool m_requestIdHasBeenSet = false;
265 };
266
267} // namespace Model
268} // namespace Macie2
269} // namespace Aws
GetBucketStatisticsResult & WithUnclassifiableObjectSizeInBytes(UnclassifiableObjectSizeInBytesT &&value)
GetBucketStatisticsResult & WithObjectCount(long long value)
GetBucketStatisticsResult & WithBucketCountByEffectivePermission(BucketCountByEffectivePermissionT &&value)
void SetUnclassifiableObjectCount(UnclassifiableObjectCountT &&value)
const BucketCountByEffectivePermission & GetBucketCountByEffectivePermission() const
const ObjectLevelStatistics & GetUnclassifiableObjectCount() const
GetBucketStatisticsResult & WithSizeInBytesCompressed(long long value)
void SetUnclassifiableObjectSizeInBytes(UnclassifiableObjectSizeInBytesT &&value)
void SetBucketCountByObjectEncryptionRequirement(BucketCountByObjectEncryptionRequirementT &&value)
const BucketStatisticsBySensitivity & GetBucketStatisticsBySensitivity() const
AWS_MACIE2_API GetBucketStatisticsResult()=default
GetBucketStatisticsResult & WithSizeInBytes(long long value)
AWS_MACIE2_API GetBucketStatisticsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetBucketStatisticsResult & WithLastUpdated(LastUpdatedT &&value)
const ObjectLevelStatistics & GetUnclassifiableObjectSizeInBytes() const
const BucketCountByEncryptionType & GetBucketCountByEncryptionType() const
GetBucketStatisticsResult & WithUnclassifiableObjectCount(UnclassifiableObjectCountT &&value)
GetBucketStatisticsResult & WithBucketStatisticsBySensitivity(BucketStatisticsBySensitivityT &&value)
void SetBucketCountBySharedAccessType(BucketCountBySharedAccessTypeT &&value)
const BucketCountBySharedAccessType & GetBucketCountBySharedAccessType() const
GetBucketStatisticsResult & WithBucketCount(long long value)
AWS_MACIE2_API GetBucketStatisticsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetBucketStatisticsResult & WithClassifiableSizeInBytes(long long value)
GetBucketStatisticsResult & WithRequestId(RequestIdT &&value)
void SetBucketStatisticsBySensitivity(BucketStatisticsBySensitivityT &&value)
const Aws::Utils::DateTime & GetLastUpdated() const
GetBucketStatisticsResult & WithBucketCountByObjectEncryptionRequirement(BucketCountByObjectEncryptionRequirementT &&value)
GetBucketStatisticsResult & WithClassifiableObjectCount(long long value)
const BucketCountPolicyAllowsUnencryptedObjectUploads & GetBucketCountByObjectEncryptionRequirement() const
void SetBucketCountByEncryptionType(BucketCountByEncryptionTypeT &&value)
GetBucketStatisticsResult & WithBucketCountBySharedAccessType(BucketCountBySharedAccessTypeT &&value)
void SetBucketCountByEffectivePermission(BucketCountByEffectivePermissionT &&value)
GetBucketStatisticsResult & WithBucketCountByEncryptionType(BucketCountByEncryptionTypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue