AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
GetBucketStatisticsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/macie2/Macie2_EXPORTS.h>
11#include <aws/macie2/model/BucketCountByEffectivePermission.h>
12#include <aws/macie2/model/BucketCountByEncryptionType.h>
13#include <aws/macie2/model/BucketCountBySharedAccessType.h>
14#include <aws/macie2/model/BucketCountPolicyAllowsUnencryptedObjectUploads.h>
15#include <aws/macie2/model/BucketStatisticsBySensitivity.h>
16#include <aws/macie2/model/ObjectLevelStatistics.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace Macie2 {
30namespace Model {
32 public:
33 AWS_MACIE2_API GetBucketStatisticsResult() = default;
36
38
41 inline long long GetBucketCount() const { return m_bucketCount; }
42 inline void SetBucketCount(long long value) {
43 m_bucketCountHasBeenSet = true;
44 m_bucketCount = value;
45 }
46 inline GetBucketStatisticsResult& WithBucketCount(long long value) {
47 SetBucketCount(value);
48 return *this;
49 }
51
53
57 inline const BucketCountByEffectivePermission& GetBucketCountByEffectivePermission() const { return m_bucketCountByEffectivePermission; }
58 template <typename BucketCountByEffectivePermissionT = BucketCountByEffectivePermission>
59 void SetBucketCountByEffectivePermission(BucketCountByEffectivePermissionT&& value) {
60 m_bucketCountByEffectivePermissionHasBeenSet = true;
61 m_bucketCountByEffectivePermission = std::forward<BucketCountByEffectivePermissionT>(value);
62 }
63 template <typename BucketCountByEffectivePermissionT = BucketCountByEffectivePermission>
64 GetBucketStatisticsResult& WithBucketCountByEffectivePermission(BucketCountByEffectivePermissionT&& value) {
65 SetBucketCountByEffectivePermission(std::forward<BucketCountByEffectivePermissionT>(value));
66 return *this;
67 }
69
71
75 inline const BucketCountByEncryptionType& GetBucketCountByEncryptionType() const { return m_bucketCountByEncryptionType; }
76 template <typename BucketCountByEncryptionTypeT = BucketCountByEncryptionType>
77 void SetBucketCountByEncryptionType(BucketCountByEncryptionTypeT&& value) {
78 m_bucketCountByEncryptionTypeHasBeenSet = true;
79 m_bucketCountByEncryptionType = std::forward<BucketCountByEncryptionTypeT>(value);
80 }
81 template <typename BucketCountByEncryptionTypeT = BucketCountByEncryptionType>
82 GetBucketStatisticsResult& WithBucketCountByEncryptionType(BucketCountByEncryptionTypeT&& value) {
83 SetBucketCountByEncryptionType(std::forward<BucketCountByEncryptionTypeT>(value));
84 return *this;
85 }
87
89
94 return m_bucketCountByObjectEncryptionRequirement;
95 }
96 template <typename BucketCountByObjectEncryptionRequirementT = BucketCountPolicyAllowsUnencryptedObjectUploads>
97 void SetBucketCountByObjectEncryptionRequirement(BucketCountByObjectEncryptionRequirementT&& value) {
98 m_bucketCountByObjectEncryptionRequirementHasBeenSet = true;
99 m_bucketCountByObjectEncryptionRequirement = std::forward<BucketCountByObjectEncryptionRequirementT>(value);
100 }
101 template <typename BucketCountByObjectEncryptionRequirementT = BucketCountPolicyAllowsUnencryptedObjectUploads>
102 GetBucketStatisticsResult& WithBucketCountByObjectEncryptionRequirement(BucketCountByObjectEncryptionRequirementT&& value) {
103 SetBucketCountByObjectEncryptionRequirement(std::forward<BucketCountByObjectEncryptionRequirementT>(value));
104 return *this;
105 }
107
109
114 inline const BucketCountBySharedAccessType& GetBucketCountBySharedAccessType() const { return m_bucketCountBySharedAccessType; }
115 template <typename BucketCountBySharedAccessTypeT = BucketCountBySharedAccessType>
116 void SetBucketCountBySharedAccessType(BucketCountBySharedAccessTypeT&& value) {
117 m_bucketCountBySharedAccessTypeHasBeenSet = true;
118 m_bucketCountBySharedAccessType = std::forward<BucketCountBySharedAccessTypeT>(value);
119 }
120 template <typename BucketCountBySharedAccessTypeT = BucketCountBySharedAccessType>
121 GetBucketStatisticsResult& WithBucketCountBySharedAccessType(BucketCountBySharedAccessTypeT&& value) {
122 SetBucketCountBySharedAccessType(std::forward<BucketCountBySharedAccessTypeT>(value));
123 return *this;
124 }
126
128
133 inline const BucketStatisticsBySensitivity& GetBucketStatisticsBySensitivity() const { return m_bucketStatisticsBySensitivity; }
134 template <typename BucketStatisticsBySensitivityT = BucketStatisticsBySensitivity>
135 void SetBucketStatisticsBySensitivity(BucketStatisticsBySensitivityT&& value) {
136 m_bucketStatisticsBySensitivityHasBeenSet = true;
137 m_bucketStatisticsBySensitivity = std::forward<BucketStatisticsBySensitivityT>(value);
138 }
139 template <typename BucketStatisticsBySensitivityT = BucketStatisticsBySensitivity>
140 GetBucketStatisticsResult& WithBucketStatisticsBySensitivity(BucketStatisticsBySensitivityT&& value) {
141 SetBucketStatisticsBySensitivity(std::forward<BucketStatisticsBySensitivityT>(value));
142 return *this;
143 }
145
147
152 inline long long GetClassifiableObjectCount() const { return m_classifiableObjectCount; }
153 inline void SetClassifiableObjectCount(long long value) {
154 m_classifiableObjectCountHasBeenSet = true;
155 m_classifiableObjectCount = value;
156 }
159 return *this;
160 }
162
164
172 inline long long GetClassifiableSizeInBytes() const { return m_classifiableSizeInBytes; }
173 inline void SetClassifiableSizeInBytes(long long value) {
174 m_classifiableSizeInBytesHasBeenSet = true;
175 m_classifiableSizeInBytes = value;
176 }
179 return *this;
180 }
182
184
189 inline const Aws::Utils::DateTime& GetLastUpdated() const { return m_lastUpdated; }
190 template <typename LastUpdatedT = Aws::Utils::DateTime>
191 void SetLastUpdated(LastUpdatedT&& value) {
192 m_lastUpdatedHasBeenSet = true;
193 m_lastUpdated = std::forward<LastUpdatedT>(value);
194 }
195 template <typename LastUpdatedT = Aws::Utils::DateTime>
197 SetLastUpdated(std::forward<LastUpdatedT>(value));
198 return *this;
199 }
201
203
206 inline long long GetObjectCount() const { return m_objectCount; }
207 inline void SetObjectCount(long long value) {
208 m_objectCountHasBeenSet = true;
209 m_objectCount = value;
210 }
212 SetObjectCount(value);
213 return *this;
214 }
216
218
224 inline long long GetSizeInBytes() const { return m_sizeInBytes; }
225 inline void SetSizeInBytes(long long value) {
226 m_sizeInBytesHasBeenSet = true;
227 m_sizeInBytes = value;
228 }
230 SetSizeInBytes(value);
231 return *this;
232 }
234
236
243 inline long long GetSizeInBytesCompressed() const { return m_sizeInBytesCompressed; }
244 inline void SetSizeInBytesCompressed(long long value) {
245 m_sizeInBytesCompressedHasBeenSet = true;
246 m_sizeInBytesCompressed = value;
247 }
250 return *this;
251 }
253
255
260 inline const ObjectLevelStatistics& GetUnclassifiableObjectCount() const { return m_unclassifiableObjectCount; }
261 template <typename UnclassifiableObjectCountT = ObjectLevelStatistics>
262 void SetUnclassifiableObjectCount(UnclassifiableObjectCountT&& value) {
263 m_unclassifiableObjectCountHasBeenSet = true;
264 m_unclassifiableObjectCount = std::forward<UnclassifiableObjectCountT>(value);
265 }
266 template <typename UnclassifiableObjectCountT = ObjectLevelStatistics>
267 GetBucketStatisticsResult& WithUnclassifiableObjectCount(UnclassifiableObjectCountT&& value) {
268 SetUnclassifiableObjectCount(std::forward<UnclassifiableObjectCountT>(value));
269 return *this;
270 }
272
274
279 inline const ObjectLevelStatistics& GetUnclassifiableObjectSizeInBytes() const { return m_unclassifiableObjectSizeInBytes; }
280 template <typename UnclassifiableObjectSizeInBytesT = ObjectLevelStatistics>
281 void SetUnclassifiableObjectSizeInBytes(UnclassifiableObjectSizeInBytesT&& value) {
282 m_unclassifiableObjectSizeInBytesHasBeenSet = true;
283 m_unclassifiableObjectSizeInBytes = std::forward<UnclassifiableObjectSizeInBytesT>(value);
284 }
285 template <typename UnclassifiableObjectSizeInBytesT = ObjectLevelStatistics>
286 GetBucketStatisticsResult& WithUnclassifiableObjectSizeInBytes(UnclassifiableObjectSizeInBytesT&& value) {
287 SetUnclassifiableObjectSizeInBytes(std::forward<UnclassifiableObjectSizeInBytesT>(value));
288 return *this;
289 }
291
293
294 inline const Aws::String& GetRequestId() const { return m_requestId; }
295 template <typename RequestIdT = Aws::String>
296 void SetRequestId(RequestIdT&& value) {
297 m_requestIdHasBeenSet = true;
298 m_requestId = std::forward<RequestIdT>(value);
299 }
300 template <typename RequestIdT = Aws::String>
302 SetRequestId(std::forward<RequestIdT>(value));
303 return *this;
304 }
306 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
307
308 private:
309 long long m_bucketCount{0};
310
311 BucketCountByEffectivePermission m_bucketCountByEffectivePermission;
312
313 BucketCountByEncryptionType m_bucketCountByEncryptionType;
314
315 BucketCountPolicyAllowsUnencryptedObjectUploads m_bucketCountByObjectEncryptionRequirement;
316
317 BucketCountBySharedAccessType m_bucketCountBySharedAccessType;
318
319 BucketStatisticsBySensitivity m_bucketStatisticsBySensitivity;
320
321 long long m_classifiableObjectCount{0};
322
323 long long m_classifiableSizeInBytes{0};
324
325 Aws::Utils::DateTime m_lastUpdated{};
326
327 long long m_objectCount{0};
328
329 long long m_sizeInBytes{0};
330
331 long long m_sizeInBytesCompressed{0};
332
333 ObjectLevelStatistics m_unclassifiableObjectCount;
334
335 ObjectLevelStatistics m_unclassifiableObjectSizeInBytes;
336
337 Aws::String m_requestId;
338 Aws::Http::HttpResponseCode m_HttpResponseCode;
339 bool m_bucketCountHasBeenSet = false;
340 bool m_bucketCountByEffectivePermissionHasBeenSet = false;
341 bool m_bucketCountByEncryptionTypeHasBeenSet = false;
342 bool m_bucketCountByObjectEncryptionRequirementHasBeenSet = false;
343 bool m_bucketCountBySharedAccessTypeHasBeenSet = false;
344 bool m_bucketStatisticsBySensitivityHasBeenSet = false;
345 bool m_classifiableObjectCountHasBeenSet = false;
346 bool m_classifiableSizeInBytesHasBeenSet = false;
347 bool m_lastUpdatedHasBeenSet = false;
348 bool m_objectCountHasBeenSet = false;
349 bool m_sizeInBytesHasBeenSet = false;
350 bool m_sizeInBytesCompressedHasBeenSet = false;
351 bool m_unclassifiableObjectCountHasBeenSet = false;
352 bool m_unclassifiableObjectSizeInBytesHasBeenSet = false;
353 bool m_requestIdHasBeenSet = false;
354};
355
356} // namespace Model
357} // namespace Macie2
358} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue