AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
MatchingBucket.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/macie2/model/AutomatedDiscoveryMonitoringStatus.h>
10#include <aws/macie2/model/BucketMetadataErrorCode.h>
11#include <aws/macie2/model/JobDetails.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/macie2/model/ObjectCountByEncryptionType.h>
14#include <aws/macie2/model/ObjectLevelStatistics.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Macie2
28{
29namespace Model
30{
31
48 {
49 public:
50 AWS_MACIE2_API MatchingBucket() = default;
51 AWS_MACIE2_API MatchingBucket(Aws::Utils::Json::JsonView jsonValue);
53 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
54
55
57
61 inline const Aws::String& GetAccountId() const { return m_accountId; }
62 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
63 template<typename AccountIdT = Aws::String>
64 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
65 template<typename AccountIdT = Aws::String>
66 MatchingBucket& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
68
70
77 inline AutomatedDiscoveryMonitoringStatus GetAutomatedDiscoveryMonitoringStatus() const { return m_automatedDiscoveryMonitoringStatus; }
78 inline bool AutomatedDiscoveryMonitoringStatusHasBeenSet() const { return m_automatedDiscoveryMonitoringStatusHasBeenSet; }
79 inline void SetAutomatedDiscoveryMonitoringStatus(AutomatedDiscoveryMonitoringStatus value) { m_automatedDiscoveryMonitoringStatusHasBeenSet = true; m_automatedDiscoveryMonitoringStatus = value; }
82
84
87 inline const Aws::String& GetBucketName() const { return m_bucketName; }
88 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
89 template<typename BucketNameT = Aws::String>
90 void SetBucketName(BucketNameT&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::forward<BucketNameT>(value); }
91 template<typename BucketNameT = Aws::String>
92 MatchingBucket& WithBucketName(BucketNameT&& value) { SetBucketName(std::forward<BucketNameT>(value)); return *this;}
94
96
101 inline long long GetClassifiableObjectCount() const { return m_classifiableObjectCount; }
102 inline bool ClassifiableObjectCountHasBeenSet() const { return m_classifiableObjectCountHasBeenSet; }
103 inline void SetClassifiableObjectCount(long long value) { m_classifiableObjectCountHasBeenSet = true; m_classifiableObjectCount = value; }
104 inline MatchingBucket& WithClassifiableObjectCount(long long value) { SetClassifiableObjectCount(value); return *this;}
106
108
117 inline long long GetClassifiableSizeInBytes() const { return m_classifiableSizeInBytes; }
118 inline bool ClassifiableSizeInBytesHasBeenSet() const { return m_classifiableSizeInBytesHasBeenSet; }
119 inline void SetClassifiableSizeInBytes(long long value) { m_classifiableSizeInBytesHasBeenSet = true; m_classifiableSizeInBytes = value; }
120 inline MatchingBucket& WithClassifiableSizeInBytes(long long value) { SetClassifiableSizeInBytes(value); return *this;}
122
124
135 inline BucketMetadataErrorCode GetErrorCode() const { return m_errorCode; }
136 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
137 inline void SetErrorCode(BucketMetadataErrorCode value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
138 inline MatchingBucket& WithErrorCode(BucketMetadataErrorCode value) { SetErrorCode(value); return *this;}
140
142
148 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
149 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
150 template<typename ErrorMessageT = Aws::String>
151 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
152 template<typename ErrorMessageT = Aws::String>
153 MatchingBucket& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
155
157
162 inline const JobDetails& GetJobDetails() const { return m_jobDetails; }
163 inline bool JobDetailsHasBeenSet() const { return m_jobDetailsHasBeenSet; }
164 template<typename JobDetailsT = JobDetails>
165 void SetJobDetails(JobDetailsT&& value) { m_jobDetailsHasBeenSet = true; m_jobDetails = std::forward<JobDetailsT>(value); }
166 template<typename JobDetailsT = JobDetails>
167 MatchingBucket& WithJobDetails(JobDetailsT&& value) { SetJobDetails(std::forward<JobDetailsT>(value)); return *this;}
169
171
177 inline const Aws::Utils::DateTime& GetLastAutomatedDiscoveryTime() const { return m_lastAutomatedDiscoveryTime; }
178 inline bool LastAutomatedDiscoveryTimeHasBeenSet() const { return m_lastAutomatedDiscoveryTimeHasBeenSet; }
179 template<typename LastAutomatedDiscoveryTimeT = Aws::Utils::DateTime>
180 void SetLastAutomatedDiscoveryTime(LastAutomatedDiscoveryTimeT&& value) { m_lastAutomatedDiscoveryTimeHasBeenSet = true; m_lastAutomatedDiscoveryTime = std::forward<LastAutomatedDiscoveryTimeT>(value); }
181 template<typename LastAutomatedDiscoveryTimeT = Aws::Utils::DateTime>
182 MatchingBucket& WithLastAutomatedDiscoveryTime(LastAutomatedDiscoveryTimeT&& value) { SetLastAutomatedDiscoveryTime(std::forward<LastAutomatedDiscoveryTimeT>(value)); return *this;}
184
186
189 inline long long GetObjectCount() const { return m_objectCount; }
190 inline bool ObjectCountHasBeenSet() const { return m_objectCountHasBeenSet; }
191 inline void SetObjectCount(long long value) { m_objectCountHasBeenSet = true; m_objectCount = value; }
192 inline MatchingBucket& WithObjectCount(long long value) { SetObjectCount(value); return *this;}
194
196
201 inline const ObjectCountByEncryptionType& GetObjectCountByEncryptionType() const { return m_objectCountByEncryptionType; }
202 inline bool ObjectCountByEncryptionTypeHasBeenSet() const { return m_objectCountByEncryptionTypeHasBeenSet; }
203 template<typename ObjectCountByEncryptionTypeT = ObjectCountByEncryptionType>
204 void SetObjectCountByEncryptionType(ObjectCountByEncryptionTypeT&& value) { m_objectCountByEncryptionTypeHasBeenSet = true; m_objectCountByEncryptionType = std::forward<ObjectCountByEncryptionTypeT>(value); }
205 template<typename ObjectCountByEncryptionTypeT = ObjectCountByEncryptionType>
206 MatchingBucket& WithObjectCountByEncryptionType(ObjectCountByEncryptionTypeT&& value) { SetObjectCountByEncryptionType(std::forward<ObjectCountByEncryptionTypeT>(value)); return *this;}
208
210
218 inline int GetSensitivityScore() const { return m_sensitivityScore; }
219 inline bool SensitivityScoreHasBeenSet() const { return m_sensitivityScoreHasBeenSet; }
220 inline void SetSensitivityScore(int value) { m_sensitivityScoreHasBeenSet = true; m_sensitivityScore = value; }
221 inline MatchingBucket& WithSensitivityScore(int value) { SetSensitivityScore(value); return *this;}
223
225
231 inline long long GetSizeInBytes() const { return m_sizeInBytes; }
232 inline bool SizeInBytesHasBeenSet() const { return m_sizeInBytesHasBeenSet; }
233 inline void SetSizeInBytes(long long value) { m_sizeInBytesHasBeenSet = true; m_sizeInBytes = value; }
234 inline MatchingBucket& WithSizeInBytes(long long value) { SetSizeInBytes(value); return *this;}
236
238
245 inline long long GetSizeInBytesCompressed() const { return m_sizeInBytesCompressed; }
246 inline bool SizeInBytesCompressedHasBeenSet() const { return m_sizeInBytesCompressedHasBeenSet; }
247 inline void SetSizeInBytesCompressed(long long value) { m_sizeInBytesCompressedHasBeenSet = true; m_sizeInBytesCompressed = value; }
248 inline MatchingBucket& WithSizeInBytesCompressed(long long value) { SetSizeInBytesCompressed(value); return *this;}
250
252
257 inline const ObjectLevelStatistics& GetUnclassifiableObjectCount() const { return m_unclassifiableObjectCount; }
258 inline bool UnclassifiableObjectCountHasBeenSet() const { return m_unclassifiableObjectCountHasBeenSet; }
259 template<typename UnclassifiableObjectCountT = ObjectLevelStatistics>
260 void SetUnclassifiableObjectCount(UnclassifiableObjectCountT&& value) { m_unclassifiableObjectCountHasBeenSet = true; m_unclassifiableObjectCount = std::forward<UnclassifiableObjectCountT>(value); }
261 template<typename UnclassifiableObjectCountT = ObjectLevelStatistics>
262 MatchingBucket& WithUnclassifiableObjectCount(UnclassifiableObjectCountT&& value) { SetUnclassifiableObjectCount(std::forward<UnclassifiableObjectCountT>(value)); return *this;}
264
266
271 inline const ObjectLevelStatistics& GetUnclassifiableObjectSizeInBytes() const { return m_unclassifiableObjectSizeInBytes; }
272 inline bool UnclassifiableObjectSizeInBytesHasBeenSet() const { return m_unclassifiableObjectSizeInBytesHasBeenSet; }
273 template<typename UnclassifiableObjectSizeInBytesT = ObjectLevelStatistics>
274 void SetUnclassifiableObjectSizeInBytes(UnclassifiableObjectSizeInBytesT&& value) { m_unclassifiableObjectSizeInBytesHasBeenSet = true; m_unclassifiableObjectSizeInBytes = std::forward<UnclassifiableObjectSizeInBytesT>(value); }
275 template<typename UnclassifiableObjectSizeInBytesT = ObjectLevelStatistics>
276 MatchingBucket& WithUnclassifiableObjectSizeInBytes(UnclassifiableObjectSizeInBytesT&& value) { SetUnclassifiableObjectSizeInBytes(std::forward<UnclassifiableObjectSizeInBytesT>(value)); return *this;}
278 private:
279
280 Aws::String m_accountId;
281 bool m_accountIdHasBeenSet = false;
282
284 bool m_automatedDiscoveryMonitoringStatusHasBeenSet = false;
285
286 Aws::String m_bucketName;
287 bool m_bucketNameHasBeenSet = false;
288
289 long long m_classifiableObjectCount{0};
290 bool m_classifiableObjectCountHasBeenSet = false;
291
292 long long m_classifiableSizeInBytes{0};
293 bool m_classifiableSizeInBytesHasBeenSet = false;
294
296 bool m_errorCodeHasBeenSet = false;
297
298 Aws::String m_errorMessage;
299 bool m_errorMessageHasBeenSet = false;
300
301 JobDetails m_jobDetails;
302 bool m_jobDetailsHasBeenSet = false;
303
304 Aws::Utils::DateTime m_lastAutomatedDiscoveryTime{};
305 bool m_lastAutomatedDiscoveryTimeHasBeenSet = false;
306
307 long long m_objectCount{0};
308 bool m_objectCountHasBeenSet = false;
309
310 ObjectCountByEncryptionType m_objectCountByEncryptionType;
311 bool m_objectCountByEncryptionTypeHasBeenSet = false;
312
313 int m_sensitivityScore{0};
314 bool m_sensitivityScoreHasBeenSet = false;
315
316 long long m_sizeInBytes{0};
317 bool m_sizeInBytesHasBeenSet = false;
318
319 long long m_sizeInBytesCompressed{0};
320 bool m_sizeInBytesCompressedHasBeenSet = false;
321
322 ObjectLevelStatistics m_unclassifiableObjectCount;
323 bool m_unclassifiableObjectCountHasBeenSet = false;
324
325 ObjectLevelStatistics m_unclassifiableObjectSizeInBytes;
326 bool m_unclassifiableObjectSizeInBytesHasBeenSet = false;
327 };
328
329} // namespace Model
330} // namespace Macie2
331} // 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