AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
MatchingBucket.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/macie2/Macie2_EXPORTS.h>
10#include <aws/macie2/model/AutomatedDiscoveryMonitoringStatus.h>
11#include <aws/macie2/model/BucketMetadataErrorCode.h>
12#include <aws/macie2/model/JobDetails.h>
13#include <aws/macie2/model/ObjectCountByEncryptionType.h>
14#include <aws/macie2/model/ObjectLevelStatistics.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Macie2 {
26namespace Model {
27
44 public:
45 AWS_MACIE2_API MatchingBucket() = default;
46 AWS_MACIE2_API MatchingBucket(Aws::Utils::Json::JsonView jsonValue);
48 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
49
51
55 inline const Aws::String& GetAccountId() const { return m_accountId; }
56 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
57 template <typename AccountIdT = Aws::String>
58 void SetAccountId(AccountIdT&& value) {
59 m_accountIdHasBeenSet = true;
60 m_accountId = std::forward<AccountIdT>(value);
61 }
62 template <typename AccountIdT = Aws::String>
63 MatchingBucket& WithAccountId(AccountIdT&& value) {
64 SetAccountId(std::forward<AccountIdT>(value));
65 return *this;
66 }
68
70
77 inline AutomatedDiscoveryMonitoringStatus GetAutomatedDiscoveryMonitoringStatus() const { return m_automatedDiscoveryMonitoringStatus; }
78 inline bool AutomatedDiscoveryMonitoringStatusHasBeenSet() const { return m_automatedDiscoveryMonitoringStatusHasBeenSet; }
80 m_automatedDiscoveryMonitoringStatusHasBeenSet = true;
81 m_automatedDiscoveryMonitoringStatus = value;
82 }
85 return *this;
86 }
88
90
93 inline const Aws::String& GetBucketName() const { return m_bucketName; }
94 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
95 template <typename BucketNameT = Aws::String>
96 void SetBucketName(BucketNameT&& value) {
97 m_bucketNameHasBeenSet = true;
98 m_bucketName = std::forward<BucketNameT>(value);
99 }
100 template <typename BucketNameT = Aws::String>
101 MatchingBucket& WithBucketName(BucketNameT&& value) {
102 SetBucketName(std::forward<BucketNameT>(value));
103 return *this;
104 }
106
108
113 inline long long GetClassifiableObjectCount() const { return m_classifiableObjectCount; }
114 inline bool ClassifiableObjectCountHasBeenSet() const { return m_classifiableObjectCountHasBeenSet; }
115 inline void SetClassifiableObjectCount(long long value) {
116 m_classifiableObjectCountHasBeenSet = true;
117 m_classifiableObjectCount = value;
118 }
121 return *this;
122 }
124
126
135 inline long long GetClassifiableSizeInBytes() const { return m_classifiableSizeInBytes; }
136 inline bool ClassifiableSizeInBytesHasBeenSet() const { return m_classifiableSizeInBytesHasBeenSet; }
137 inline void SetClassifiableSizeInBytes(long long value) {
138 m_classifiableSizeInBytesHasBeenSet = true;
139 m_classifiableSizeInBytes = value;
140 }
143 return *this;
144 }
146
148
159 inline BucketMetadataErrorCode GetErrorCode() const { return m_errorCode; }
160 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
162 m_errorCodeHasBeenSet = true;
163 m_errorCode = value;
164 }
166 SetErrorCode(value);
167 return *this;
168 }
170
172
178 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
179 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
180 template <typename ErrorMessageT = Aws::String>
181 void SetErrorMessage(ErrorMessageT&& value) {
182 m_errorMessageHasBeenSet = true;
183 m_errorMessage = std::forward<ErrorMessageT>(value);
184 }
185 template <typename ErrorMessageT = Aws::String>
186 MatchingBucket& WithErrorMessage(ErrorMessageT&& value) {
187 SetErrorMessage(std::forward<ErrorMessageT>(value));
188 return *this;
189 }
191
193
198 inline const JobDetails& GetJobDetails() const { return m_jobDetails; }
199 inline bool JobDetailsHasBeenSet() const { return m_jobDetailsHasBeenSet; }
200 template <typename JobDetailsT = JobDetails>
201 void SetJobDetails(JobDetailsT&& value) {
202 m_jobDetailsHasBeenSet = true;
203 m_jobDetails = std::forward<JobDetailsT>(value);
204 }
205 template <typename JobDetailsT = JobDetails>
206 MatchingBucket& WithJobDetails(JobDetailsT&& value) {
207 SetJobDetails(std::forward<JobDetailsT>(value));
208 return *this;
209 }
211
213
219 inline const Aws::Utils::DateTime& GetLastAutomatedDiscoveryTime() const { return m_lastAutomatedDiscoveryTime; }
220 inline bool LastAutomatedDiscoveryTimeHasBeenSet() const { return m_lastAutomatedDiscoveryTimeHasBeenSet; }
221 template <typename LastAutomatedDiscoveryTimeT = Aws::Utils::DateTime>
222 void SetLastAutomatedDiscoveryTime(LastAutomatedDiscoveryTimeT&& value) {
223 m_lastAutomatedDiscoveryTimeHasBeenSet = true;
224 m_lastAutomatedDiscoveryTime = std::forward<LastAutomatedDiscoveryTimeT>(value);
225 }
226 template <typename LastAutomatedDiscoveryTimeT = Aws::Utils::DateTime>
227 MatchingBucket& WithLastAutomatedDiscoveryTime(LastAutomatedDiscoveryTimeT&& value) {
228 SetLastAutomatedDiscoveryTime(std::forward<LastAutomatedDiscoveryTimeT>(value));
229 return *this;
230 }
232
234
237 inline long long GetObjectCount() const { return m_objectCount; }
238 inline bool ObjectCountHasBeenSet() const { return m_objectCountHasBeenSet; }
239 inline void SetObjectCount(long long value) {
240 m_objectCountHasBeenSet = true;
241 m_objectCount = value;
242 }
243 inline MatchingBucket& WithObjectCount(long long value) {
244 SetObjectCount(value);
245 return *this;
246 }
248
250
255 inline const ObjectCountByEncryptionType& GetObjectCountByEncryptionType() const { return m_objectCountByEncryptionType; }
256 inline bool ObjectCountByEncryptionTypeHasBeenSet() const { return m_objectCountByEncryptionTypeHasBeenSet; }
257 template <typename ObjectCountByEncryptionTypeT = ObjectCountByEncryptionType>
258 void SetObjectCountByEncryptionType(ObjectCountByEncryptionTypeT&& value) {
259 m_objectCountByEncryptionTypeHasBeenSet = true;
260 m_objectCountByEncryptionType = std::forward<ObjectCountByEncryptionTypeT>(value);
261 }
262 template <typename ObjectCountByEncryptionTypeT = ObjectCountByEncryptionType>
263 MatchingBucket& WithObjectCountByEncryptionType(ObjectCountByEncryptionTypeT&& value) {
264 SetObjectCountByEncryptionType(std::forward<ObjectCountByEncryptionTypeT>(value));
265 return *this;
266 }
268
270
278 inline int GetSensitivityScore() const { return m_sensitivityScore; }
279 inline bool SensitivityScoreHasBeenSet() const { return m_sensitivityScoreHasBeenSet; }
280 inline void SetSensitivityScore(int value) {
281 m_sensitivityScoreHasBeenSet = true;
282 m_sensitivityScore = value;
283 }
285 SetSensitivityScore(value);
286 return *this;
287 }
289
291
297 inline long long GetSizeInBytes() const { return m_sizeInBytes; }
298 inline bool SizeInBytesHasBeenSet() const { return m_sizeInBytesHasBeenSet; }
299 inline void SetSizeInBytes(long long value) {
300 m_sizeInBytesHasBeenSet = true;
301 m_sizeInBytes = value;
302 }
303 inline MatchingBucket& WithSizeInBytes(long long value) {
304 SetSizeInBytes(value);
305 return *this;
306 }
308
310
317 inline long long GetSizeInBytesCompressed() const { return m_sizeInBytesCompressed; }
318 inline bool SizeInBytesCompressedHasBeenSet() const { return m_sizeInBytesCompressedHasBeenSet; }
319 inline void SetSizeInBytesCompressed(long long value) {
320 m_sizeInBytesCompressedHasBeenSet = true;
321 m_sizeInBytesCompressed = value;
322 }
323 inline MatchingBucket& WithSizeInBytesCompressed(long long value) {
325 return *this;
326 }
328
330
335 inline const ObjectLevelStatistics& GetUnclassifiableObjectCount() const { return m_unclassifiableObjectCount; }
336 inline bool UnclassifiableObjectCountHasBeenSet() const { return m_unclassifiableObjectCountHasBeenSet; }
337 template <typename UnclassifiableObjectCountT = ObjectLevelStatistics>
338 void SetUnclassifiableObjectCount(UnclassifiableObjectCountT&& value) {
339 m_unclassifiableObjectCountHasBeenSet = true;
340 m_unclassifiableObjectCount = std::forward<UnclassifiableObjectCountT>(value);
341 }
342 template <typename UnclassifiableObjectCountT = ObjectLevelStatistics>
343 MatchingBucket& WithUnclassifiableObjectCount(UnclassifiableObjectCountT&& value) {
344 SetUnclassifiableObjectCount(std::forward<UnclassifiableObjectCountT>(value));
345 return *this;
346 }
348
350
355 inline const ObjectLevelStatistics& GetUnclassifiableObjectSizeInBytes() const { return m_unclassifiableObjectSizeInBytes; }
356 inline bool UnclassifiableObjectSizeInBytesHasBeenSet() const { return m_unclassifiableObjectSizeInBytesHasBeenSet; }
357 template <typename UnclassifiableObjectSizeInBytesT = ObjectLevelStatistics>
358 void SetUnclassifiableObjectSizeInBytes(UnclassifiableObjectSizeInBytesT&& value) {
359 m_unclassifiableObjectSizeInBytesHasBeenSet = true;
360 m_unclassifiableObjectSizeInBytes = std::forward<UnclassifiableObjectSizeInBytesT>(value);
361 }
362 template <typename UnclassifiableObjectSizeInBytesT = ObjectLevelStatistics>
363 MatchingBucket& WithUnclassifiableObjectSizeInBytes(UnclassifiableObjectSizeInBytesT&& value) {
364 SetUnclassifiableObjectSizeInBytes(std::forward<UnclassifiableObjectSizeInBytesT>(value));
365 return *this;
366 }
368 private:
369 Aws::String m_accountId;
370
372
373 Aws::String m_bucketName;
374
375 long long m_classifiableObjectCount{0};
376
377 long long m_classifiableSizeInBytes{0};
378
380
381 Aws::String m_errorMessage;
382
383 JobDetails m_jobDetails;
384
385 Aws::Utils::DateTime m_lastAutomatedDiscoveryTime{};
386
387 long long m_objectCount{0};
388
389 ObjectCountByEncryptionType m_objectCountByEncryptionType;
390
391 int m_sensitivityScore{0};
392
393 long long m_sizeInBytes{0};
394
395 long long m_sizeInBytesCompressed{0};
396
397 ObjectLevelStatistics m_unclassifiableObjectCount;
398
399 ObjectLevelStatistics m_unclassifiableObjectSizeInBytes;
400 bool m_accountIdHasBeenSet = false;
401 bool m_automatedDiscoveryMonitoringStatusHasBeenSet = false;
402 bool m_bucketNameHasBeenSet = false;
403 bool m_classifiableObjectCountHasBeenSet = false;
404 bool m_classifiableSizeInBytesHasBeenSet = false;
405 bool m_errorCodeHasBeenSet = false;
406 bool m_errorMessageHasBeenSet = false;
407 bool m_jobDetailsHasBeenSet = false;
408 bool m_lastAutomatedDiscoveryTimeHasBeenSet = false;
409 bool m_objectCountHasBeenSet = false;
410 bool m_objectCountByEncryptionTypeHasBeenSet = false;
411 bool m_sensitivityScoreHasBeenSet = false;
412 bool m_sizeInBytesHasBeenSet = false;
413 bool m_sizeInBytesCompressedHasBeenSet = false;
414 bool m_unclassifiableObjectCountHasBeenSet = false;
415 bool m_unclassifiableObjectSizeInBytesHasBeenSet = false;
416};
417
418} // namespace Model
419} // namespace Macie2
420} // namespace Aws
MatchingBucket & WithAutomatedDiscoveryMonitoringStatus(AutomatedDiscoveryMonitoringStatus value)
void SetClassifiableSizeInBytes(long long value)
MatchingBucket & WithAccountId(AccountIdT &&value)
const Aws::String & GetErrorMessage() const
bool UnclassifiableObjectSizeInBytesHasBeenSet() const
MatchingBucket & WithJobDetails(JobDetailsT &&value)
void SetBucketName(BucketNameT &&value)
AWS_MACIE2_API MatchingBucket & operator=(Aws::Utils::Json::JsonView jsonValue)
BucketMetadataErrorCode GetErrorCode() const
void SetObjectCount(long long value)
void SetSizeInBytesCompressed(long long value)
AWS_MACIE2_API MatchingBucket()=default
MatchingBucket & WithBucketName(BucketNameT &&value)
MatchingBucket & WithLastAutomatedDiscoveryTime(LastAutomatedDiscoveryTimeT &&value)
void SetObjectCountByEncryptionType(ObjectCountByEncryptionTypeT &&value)
void SetSizeInBytes(long long value)
const ObjectCountByEncryptionType & GetObjectCountByEncryptionType() const
const ObjectLevelStatistics & GetUnclassifiableObjectSizeInBytes() const
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
MatchingBucket & WithErrorCode(BucketMetadataErrorCode value)
long long GetClassifiableObjectCount() const
void SetUnclassifiableObjectCount(UnclassifiableObjectCountT &&value)
long long GetClassifiableSizeInBytes() const
MatchingBucket & WithObjectCount(long long value)
void SetAutomatedDiscoveryMonitoringStatus(AutomatedDiscoveryMonitoringStatus value)
const Aws::String & GetBucketName() const
const Aws::String & GetAccountId() const
void SetAccountId(AccountIdT &&value)
MatchingBucket & WithUnclassifiableObjectSizeInBytes(UnclassifiableObjectSizeInBytesT &&value)
void SetErrorMessage(ErrorMessageT &&value)
MatchingBucket & WithUnclassifiableObjectCount(UnclassifiableObjectCountT &&value)
MatchingBucket & WithObjectCountByEncryptionType(ObjectCountByEncryptionTypeT &&value)
const ObjectLevelStatistics & GetUnclassifiableObjectCount() const
AutomatedDiscoveryMonitoringStatus GetAutomatedDiscoveryMonitoringStatus() const
MatchingBucket & WithClassifiableSizeInBytes(long long value)
const JobDetails & GetJobDetails() const
MatchingBucket & WithErrorMessage(ErrorMessageT &&value)
bool AutomatedDiscoveryMonitoringStatusHasBeenSet() const
MatchingBucket & WithClassifiableObjectCount(long long value)
AWS_MACIE2_API MatchingBucket(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastAutomatedDiscoveryTime() const
void SetUnclassifiableObjectSizeInBytes(UnclassifiableObjectSizeInBytesT &&value)
void SetClassifiableObjectCount(long long value)
MatchingBucket & WithSizeInBytesCompressed(long long value)
MatchingBucket & WithSensitivityScore(int value)
void SetLastAutomatedDiscoveryTime(LastAutomatedDiscoveryTimeT &&value)
void SetErrorCode(BucketMetadataErrorCode value)
void SetJobDetails(JobDetailsT &&value)
MatchingBucket & WithSizeInBytes(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue