1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetBucketStatisticsOutput {
/// <p>The total number of buckets.</p>
pub bucket_count: ::std::option::Option<i64>,
/// <p>The total number of buckets that are publicly accessible due to a combination of permissions settings for each bucket.</p>
pub bucket_count_by_effective_permission: ::std::option::Option<crate::types::BucketCountByEffectivePermission>,
/// <p>The total number of buckets whose settings do or don't specify default server-side encryption behavior for objects that are added to the buckets.</p>
pub bucket_count_by_encryption_type: ::std::option::Option<crate::types::BucketCountByEncryptionType>,
/// <p>The total number of buckets whose bucket policies do or don't require server-side encryption of objects when objects are added to the buckets.</p>
pub bucket_count_by_object_encryption_requirement: ::std::option::Option<crate::types::BucketCountPolicyAllowsUnencryptedObjectUploads>,
/// <p>The total number of buckets that are or aren't shared with other Amazon Web Services accounts, Amazon CloudFront origin access identities (OAIs), or CloudFront origin access controls (OACs).</p>
pub bucket_count_by_shared_access_type: ::std::option::Option<crate::types::BucketCountBySharedAccessType>,
/// <p>The aggregated sensitive data discovery statistics for the buckets. If automated sensitive data discovery is currently disabled for your account, the value for most statistics is 0.</p>
pub bucket_statistics_by_sensitivity: ::std::option::Option<crate::types::BucketStatisticsBySensitivity>,
/// <p>The total number of objects that Amazon Macie can analyze in the buckets. These objects use a supported storage class and have a file name extension for a supported file or storage format.</p>
pub classifiable_object_count: ::std::option::Option<i64>,
/// <p>The total storage size, in bytes, of all the objects that Amazon Macie can analyze in the buckets. These objects use a supported storage class and have a file name extension for a supported file or storage format.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each applicable object in the buckets. This value doesn't reflect the storage size of all versions of all applicable objects in the buckets.</p>
pub classifiable_size_in_bytes: ::std::option::Option<i64>,
/// <p>The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently retrieved bucket or object metadata from Amazon S3 for the buckets.</p>
pub last_updated: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The total number of objects in the buckets.</p>
pub object_count: ::std::option::Option<i64>,
/// <p>The total storage size, in bytes, of the buckets.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each object in the buckets. This value doesn't reflect the storage size of all versions of the objects in the buckets.</p>
pub size_in_bytes: ::std::option::Option<i64>,
/// <p>The total storage size, in bytes, of the objects that are compressed (.gz, .gzip, .zip) files in the buckets.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each applicable object in the buckets. This value doesn't reflect the storage size of all versions of the applicable objects in the buckets.</p>
pub size_in_bytes_compressed: ::std::option::Option<i64>,
/// <p>The total number of objects that Amazon Macie can't analyze in the buckets. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.</p>
pub unclassifiable_object_count: ::std::option::Option<crate::types::ObjectLevelStatistics>,
/// <p>The total storage size, in bytes, of the objects that Amazon Macie can't analyze in the buckets. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.</p>
pub unclassifiable_object_size_in_bytes: ::std::option::Option<crate::types::ObjectLevelStatistics>,
_request_id: Option<String>,
}
impl GetBucketStatisticsOutput {
/// <p>The total number of buckets.</p>
pub fn bucket_count(&self) -> ::std::option::Option<i64> {
self.bucket_count
}
/// <p>The total number of buckets that are publicly accessible due to a combination of permissions settings for each bucket.</p>
pub fn bucket_count_by_effective_permission(&self) -> ::std::option::Option<&crate::types::BucketCountByEffectivePermission> {
self.bucket_count_by_effective_permission.as_ref()
}
/// <p>The total number of buckets whose settings do or don't specify default server-side encryption behavior for objects that are added to the buckets.</p>
pub fn bucket_count_by_encryption_type(&self) -> ::std::option::Option<&crate::types::BucketCountByEncryptionType> {
self.bucket_count_by_encryption_type.as_ref()
}
/// <p>The total number of buckets whose bucket policies do or don't require server-side encryption of objects when objects are added to the buckets.</p>
pub fn bucket_count_by_object_encryption_requirement(
&self,
) -> ::std::option::Option<&crate::types::BucketCountPolicyAllowsUnencryptedObjectUploads> {
self.bucket_count_by_object_encryption_requirement.as_ref()
}
/// <p>The total number of buckets that are or aren't shared with other Amazon Web Services accounts, Amazon CloudFront origin access identities (OAIs), or CloudFront origin access controls (OACs).</p>
pub fn bucket_count_by_shared_access_type(&self) -> ::std::option::Option<&crate::types::BucketCountBySharedAccessType> {
self.bucket_count_by_shared_access_type.as_ref()
}
/// <p>The aggregated sensitive data discovery statistics for the buckets. If automated sensitive data discovery is currently disabled for your account, the value for most statistics is 0.</p>
pub fn bucket_statistics_by_sensitivity(&self) -> ::std::option::Option<&crate::types::BucketStatisticsBySensitivity> {
self.bucket_statistics_by_sensitivity.as_ref()
}
/// <p>The total number of objects that Amazon Macie can analyze in the buckets. These objects use a supported storage class and have a file name extension for a supported file or storage format.</p>
pub fn classifiable_object_count(&self) -> ::std::option::Option<i64> {
self.classifiable_object_count
}
/// <p>The total storage size, in bytes, of all the objects that Amazon Macie can analyze in the buckets. These objects use a supported storage class and have a file name extension for a supported file or storage format.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each applicable object in the buckets. This value doesn't reflect the storage size of all versions of all applicable objects in the buckets.</p>
pub fn classifiable_size_in_bytes(&self) -> ::std::option::Option<i64> {
self.classifiable_size_in_bytes
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently retrieved bucket or object metadata from Amazon S3 for the buckets.</p>
pub fn last_updated(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_updated.as_ref()
}
/// <p>The total number of objects in the buckets.</p>
pub fn object_count(&self) -> ::std::option::Option<i64> {
self.object_count
}
/// <p>The total storage size, in bytes, of the buckets.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each object in the buckets. This value doesn't reflect the storage size of all versions of the objects in the buckets.</p>
pub fn size_in_bytes(&self) -> ::std::option::Option<i64> {
self.size_in_bytes
}
/// <p>The total storage size, in bytes, of the objects that are compressed (.gz, .gzip, .zip) files in the buckets.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each applicable object in the buckets. This value doesn't reflect the storage size of all versions of the applicable objects in the buckets.</p>
pub fn size_in_bytes_compressed(&self) -> ::std::option::Option<i64> {
self.size_in_bytes_compressed
}
/// <p>The total number of objects that Amazon Macie can't analyze in the buckets. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.</p>
pub fn unclassifiable_object_count(&self) -> ::std::option::Option<&crate::types::ObjectLevelStatistics> {
self.unclassifiable_object_count.as_ref()
}
/// <p>The total storage size, in bytes, of the objects that Amazon Macie can't analyze in the buckets. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.</p>
pub fn unclassifiable_object_size_in_bytes(&self) -> ::std::option::Option<&crate::types::ObjectLevelStatistics> {
self.unclassifiable_object_size_in_bytes.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetBucketStatisticsOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetBucketStatisticsOutput {
/// Creates a new builder-style object to manufacture [`GetBucketStatisticsOutput`](crate::operation::get_bucket_statistics::GetBucketStatisticsOutput).
pub fn builder() -> crate::operation::get_bucket_statistics::builders::GetBucketStatisticsOutputBuilder {
crate::operation::get_bucket_statistics::builders::GetBucketStatisticsOutputBuilder::default()
}
}
/// A builder for [`GetBucketStatisticsOutput`](crate::operation::get_bucket_statistics::GetBucketStatisticsOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetBucketStatisticsOutputBuilder {
pub(crate) bucket_count: ::std::option::Option<i64>,
pub(crate) bucket_count_by_effective_permission: ::std::option::Option<crate::types::BucketCountByEffectivePermission>,
pub(crate) bucket_count_by_encryption_type: ::std::option::Option<crate::types::BucketCountByEncryptionType>,
pub(crate) bucket_count_by_object_encryption_requirement: ::std::option::Option<crate::types::BucketCountPolicyAllowsUnencryptedObjectUploads>,
pub(crate) bucket_count_by_shared_access_type: ::std::option::Option<crate::types::BucketCountBySharedAccessType>,
pub(crate) bucket_statistics_by_sensitivity: ::std::option::Option<crate::types::BucketStatisticsBySensitivity>,
pub(crate) classifiable_object_count: ::std::option::Option<i64>,
pub(crate) classifiable_size_in_bytes: ::std::option::Option<i64>,
pub(crate) last_updated: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) object_count: ::std::option::Option<i64>,
pub(crate) size_in_bytes: ::std::option::Option<i64>,
pub(crate) size_in_bytes_compressed: ::std::option::Option<i64>,
pub(crate) unclassifiable_object_count: ::std::option::Option<crate::types::ObjectLevelStatistics>,
pub(crate) unclassifiable_object_size_in_bytes: ::std::option::Option<crate::types::ObjectLevelStatistics>,
_request_id: Option<String>,
}
impl GetBucketStatisticsOutputBuilder {
/// <p>The total number of buckets.</p>
pub fn bucket_count(mut self, input: i64) -> Self {
self.bucket_count = ::std::option::Option::Some(input);
self
}
/// <p>The total number of buckets.</p>
pub fn set_bucket_count(mut self, input: ::std::option::Option<i64>) -> Self {
self.bucket_count = input;
self
}
/// <p>The total number of buckets.</p>
pub fn get_bucket_count(&self) -> &::std::option::Option<i64> {
&self.bucket_count
}
/// <p>The total number of buckets that are publicly accessible due to a combination of permissions settings for each bucket.</p>
pub fn bucket_count_by_effective_permission(mut self, input: crate::types::BucketCountByEffectivePermission) -> Self {
self.bucket_count_by_effective_permission = ::std::option::Option::Some(input);
self
}
/// <p>The total number of buckets that are publicly accessible due to a combination of permissions settings for each bucket.</p>
pub fn set_bucket_count_by_effective_permission(mut self, input: ::std::option::Option<crate::types::BucketCountByEffectivePermission>) -> Self {
self.bucket_count_by_effective_permission = input;
self
}
/// <p>The total number of buckets that are publicly accessible due to a combination of permissions settings for each bucket.</p>
pub fn get_bucket_count_by_effective_permission(&self) -> &::std::option::Option<crate::types::BucketCountByEffectivePermission> {
&self.bucket_count_by_effective_permission
}
/// <p>The total number of buckets whose settings do or don't specify default server-side encryption behavior for objects that are added to the buckets.</p>
pub fn bucket_count_by_encryption_type(mut self, input: crate::types::BucketCountByEncryptionType) -> Self {
self.bucket_count_by_encryption_type = ::std::option::Option::Some(input);
self
}
/// <p>The total number of buckets whose settings do or don't specify default server-side encryption behavior for objects that are added to the buckets.</p>
pub fn set_bucket_count_by_encryption_type(mut self, input: ::std::option::Option<crate::types::BucketCountByEncryptionType>) -> Self {
self.bucket_count_by_encryption_type = input;
self
}
/// <p>The total number of buckets whose settings do or don't specify default server-side encryption behavior for objects that are added to the buckets.</p>
pub fn get_bucket_count_by_encryption_type(&self) -> &::std::option::Option<crate::types::BucketCountByEncryptionType> {
&self.bucket_count_by_encryption_type
}
/// <p>The total number of buckets whose bucket policies do or don't require server-side encryption of objects when objects are added to the buckets.</p>
pub fn bucket_count_by_object_encryption_requirement(mut self, input: crate::types::BucketCountPolicyAllowsUnencryptedObjectUploads) -> Self {
self.bucket_count_by_object_encryption_requirement = ::std::option::Option::Some(input);
self
}
/// <p>The total number of buckets whose bucket policies do or don't require server-side encryption of objects when objects are added to the buckets.</p>
pub fn set_bucket_count_by_object_encryption_requirement(
mut self,
input: ::std::option::Option<crate::types::BucketCountPolicyAllowsUnencryptedObjectUploads>,
) -> Self {
self.bucket_count_by_object_encryption_requirement = input;
self
}
/// <p>The total number of buckets whose bucket policies do or don't require server-side encryption of objects when objects are added to the buckets.</p>
pub fn get_bucket_count_by_object_encryption_requirement(
&self,
) -> &::std::option::Option<crate::types::BucketCountPolicyAllowsUnencryptedObjectUploads> {
&self.bucket_count_by_object_encryption_requirement
}
/// <p>The total number of buckets that are or aren't shared with other Amazon Web Services accounts, Amazon CloudFront origin access identities (OAIs), or CloudFront origin access controls (OACs).</p>
pub fn bucket_count_by_shared_access_type(mut self, input: crate::types::BucketCountBySharedAccessType) -> Self {
self.bucket_count_by_shared_access_type = ::std::option::Option::Some(input);
self
}
/// <p>The total number of buckets that are or aren't shared with other Amazon Web Services accounts, Amazon CloudFront origin access identities (OAIs), or CloudFront origin access controls (OACs).</p>
pub fn set_bucket_count_by_shared_access_type(mut self, input: ::std::option::Option<crate::types::BucketCountBySharedAccessType>) -> Self {
self.bucket_count_by_shared_access_type = input;
self
}
/// <p>The total number of buckets that are or aren't shared with other Amazon Web Services accounts, Amazon CloudFront origin access identities (OAIs), or CloudFront origin access controls (OACs).</p>
pub fn get_bucket_count_by_shared_access_type(&self) -> &::std::option::Option<crate::types::BucketCountBySharedAccessType> {
&self.bucket_count_by_shared_access_type
}
/// <p>The aggregated sensitive data discovery statistics for the buckets. If automated sensitive data discovery is currently disabled for your account, the value for most statistics is 0.</p>
pub fn bucket_statistics_by_sensitivity(mut self, input: crate::types::BucketStatisticsBySensitivity) -> Self {
self.bucket_statistics_by_sensitivity = ::std::option::Option::Some(input);
self
}
/// <p>The aggregated sensitive data discovery statistics for the buckets. If automated sensitive data discovery is currently disabled for your account, the value for most statistics is 0.</p>
pub fn set_bucket_statistics_by_sensitivity(mut self, input: ::std::option::Option<crate::types::BucketStatisticsBySensitivity>) -> Self {
self.bucket_statistics_by_sensitivity = input;
self
}
/// <p>The aggregated sensitive data discovery statistics for the buckets. If automated sensitive data discovery is currently disabled for your account, the value for most statistics is 0.</p>
pub fn get_bucket_statistics_by_sensitivity(&self) -> &::std::option::Option<crate::types::BucketStatisticsBySensitivity> {
&self.bucket_statistics_by_sensitivity
}
/// <p>The total number of objects that Amazon Macie can analyze in the buckets. These objects use a supported storage class and have a file name extension for a supported file or storage format.</p>
pub fn classifiable_object_count(mut self, input: i64) -> Self {
self.classifiable_object_count = ::std::option::Option::Some(input);
self
}
/// <p>The total number of objects that Amazon Macie can analyze in the buckets. These objects use a supported storage class and have a file name extension for a supported file or storage format.</p>
pub fn set_classifiable_object_count(mut self, input: ::std::option::Option<i64>) -> Self {
self.classifiable_object_count = input;
self
}
/// <p>The total number of objects that Amazon Macie can analyze in the buckets. These objects use a supported storage class and have a file name extension for a supported file or storage format.</p>
pub fn get_classifiable_object_count(&self) -> &::std::option::Option<i64> {
&self.classifiable_object_count
}
/// <p>The total storage size, in bytes, of all the objects that Amazon Macie can analyze in the buckets. These objects use a supported storage class and have a file name extension for a supported file or storage format.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each applicable object in the buckets. This value doesn't reflect the storage size of all versions of all applicable objects in the buckets.</p>
pub fn classifiable_size_in_bytes(mut self, input: i64) -> Self {
self.classifiable_size_in_bytes = ::std::option::Option::Some(input);
self
}
/// <p>The total storage size, in bytes, of all the objects that Amazon Macie can analyze in the buckets. These objects use a supported storage class and have a file name extension for a supported file or storage format.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each applicable object in the buckets. This value doesn't reflect the storage size of all versions of all applicable objects in the buckets.</p>
pub fn set_classifiable_size_in_bytes(mut self, input: ::std::option::Option<i64>) -> Self {
self.classifiable_size_in_bytes = input;
self
}
/// <p>The total storage size, in bytes, of all the objects that Amazon Macie can analyze in the buckets. These objects use a supported storage class and have a file name extension for a supported file or storage format.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each applicable object in the buckets. This value doesn't reflect the storage size of all versions of all applicable objects in the buckets.</p>
pub fn get_classifiable_size_in_bytes(&self) -> &::std::option::Option<i64> {
&self.classifiable_size_in_bytes
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently retrieved bucket or object metadata from Amazon S3 for the buckets.</p>
pub fn last_updated(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_updated = ::std::option::Option::Some(input);
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently retrieved bucket or object metadata from Amazon S3 for the buckets.</p>
pub fn set_last_updated(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.last_updated = input;
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently retrieved bucket or object metadata from Amazon S3 for the buckets.</p>
pub fn get_last_updated(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_updated
}
/// <p>The total number of objects in the buckets.</p>
pub fn object_count(mut self, input: i64) -> Self {
self.object_count = ::std::option::Option::Some(input);
self
}
/// <p>The total number of objects in the buckets.</p>
pub fn set_object_count(mut self, input: ::std::option::Option<i64>) -> Self {
self.object_count = input;
self
}
/// <p>The total number of objects in the buckets.</p>
pub fn get_object_count(&self) -> &::std::option::Option<i64> {
&self.object_count
}
/// <p>The total storage size, in bytes, of the buckets.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each object in the buckets. This value doesn't reflect the storage size of all versions of the objects in the buckets.</p>
pub fn size_in_bytes(mut self, input: i64) -> Self {
self.size_in_bytes = ::std::option::Option::Some(input);
self
}
/// <p>The total storage size, in bytes, of the buckets.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each object in the buckets. This value doesn't reflect the storage size of all versions of the objects in the buckets.</p>
pub fn set_size_in_bytes(mut self, input: ::std::option::Option<i64>) -> Self {
self.size_in_bytes = input;
self
}
/// <p>The total storage size, in bytes, of the buckets.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each object in the buckets. This value doesn't reflect the storage size of all versions of the objects in the buckets.</p>
pub fn get_size_in_bytes(&self) -> &::std::option::Option<i64> {
&self.size_in_bytes
}
/// <p>The total storage size, in bytes, of the objects that are compressed (.gz, .gzip, .zip) files in the buckets.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each applicable object in the buckets. This value doesn't reflect the storage size of all versions of the applicable objects in the buckets.</p>
pub fn size_in_bytes_compressed(mut self, input: i64) -> Self {
self.size_in_bytes_compressed = ::std::option::Option::Some(input);
self
}
/// <p>The total storage size, in bytes, of the objects that are compressed (.gz, .gzip, .zip) files in the buckets.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each applicable object in the buckets. This value doesn't reflect the storage size of all versions of the applicable objects in the buckets.</p>
pub fn set_size_in_bytes_compressed(mut self, input: ::std::option::Option<i64>) -> Self {
self.size_in_bytes_compressed = input;
self
}
/// <p>The total storage size, in bytes, of the objects that are compressed (.gz, .gzip, .zip) files in the buckets.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each applicable object in the buckets. This value doesn't reflect the storage size of all versions of the applicable objects in the buckets.</p>
pub fn get_size_in_bytes_compressed(&self) -> &::std::option::Option<i64> {
&self.size_in_bytes_compressed
}
/// <p>The total number of objects that Amazon Macie can't analyze in the buckets. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.</p>
pub fn unclassifiable_object_count(mut self, input: crate::types::ObjectLevelStatistics) -> Self {
self.unclassifiable_object_count = ::std::option::Option::Some(input);
self
}
/// <p>The total number of objects that Amazon Macie can't analyze in the buckets. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.</p>
pub fn set_unclassifiable_object_count(mut self, input: ::std::option::Option<crate::types::ObjectLevelStatistics>) -> Self {
self.unclassifiable_object_count = input;
self
}
/// <p>The total number of objects that Amazon Macie can't analyze in the buckets. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.</p>
pub fn get_unclassifiable_object_count(&self) -> &::std::option::Option<crate::types::ObjectLevelStatistics> {
&self.unclassifiable_object_count
}
/// <p>The total storage size, in bytes, of the objects that Amazon Macie can't analyze in the buckets. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.</p>
pub fn unclassifiable_object_size_in_bytes(mut self, input: crate::types::ObjectLevelStatistics) -> Self {
self.unclassifiable_object_size_in_bytes = ::std::option::Option::Some(input);
self
}
/// <p>The total storage size, in bytes, of the objects that Amazon Macie can't analyze in the buckets. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.</p>
pub fn set_unclassifiable_object_size_in_bytes(mut self, input: ::std::option::Option<crate::types::ObjectLevelStatistics>) -> Self {
self.unclassifiable_object_size_in_bytes = input;
self
}
/// <p>The total storage size, in bytes, of the objects that Amazon Macie can't analyze in the buckets. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.</p>
pub fn get_unclassifiable_object_size_in_bytes(&self) -> &::std::option::Option<crate::types::ObjectLevelStatistics> {
&self.unclassifiable_object_size_in_bytes
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
/// Consumes the builder and constructs a [`GetBucketStatisticsOutput`](crate::operation::get_bucket_statistics::GetBucketStatisticsOutput).
pub fn build(self) -> crate::operation::get_bucket_statistics::GetBucketStatisticsOutput {
crate::operation::get_bucket_statistics::GetBucketStatisticsOutput {
bucket_count: self.bucket_count,
bucket_count_by_effective_permission: self.bucket_count_by_effective_permission,
bucket_count_by_encryption_type: self.bucket_count_by_encryption_type,
bucket_count_by_object_encryption_requirement: self.bucket_count_by_object_encryption_requirement,
bucket_count_by_shared_access_type: self.bucket_count_by_shared_access_type,
bucket_statistics_by_sensitivity: self.bucket_statistics_by_sensitivity,
classifiable_object_count: self.classifiable_object_count,
classifiable_size_in_bytes: self.classifiable_size_in_bytes,
last_updated: self.last_updated,
object_count: self.object_count,
size_in_bytes: self.size_in_bytes,
size_in_bytes_compressed: self.size_in_bytes_compressed,
unclassifiable_object_count: self.unclassifiable_object_count,
unclassifiable_object_size_in_bytes: self.unclassifiable_object_size_in_bytes,
_request_id: self._request_id,
}
}
}