Skip to main content

aws_s3_transfer/model/
_object_metadata.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// Object metadata from the discovery GET or HEAD response. Some values are also present on the first chunk. Optional fields remain absent when discovery does not return them. Reported checksums describe the stored object; they do not by themselves indicate that the downloaded bytes were checksum-validated.
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
6pub struct ObjectMetadata {
7    /// <p>Indicates that a range of bytes was specified in the request.</p>
8    pub accept_ranges: ::std::option::Option<::std::string::String>,
9    /// <p>The archive state of the head object.</p><note>
10    /// <p>This functionality is not supported for directory buckets.</p>
11    /// </note>
12    /// <p>Available when discovery uses a HEAD response that returns this value.</p>
13    pub archive_status: ::std::option::Option<crate::model::ArchiveStatus>,
14    /// <p>Indicates whether the object uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS).</p>
15    pub bucket_key_enabled: ::std::option::Option<bool>,
16    /// <p>Specifies caching behavior along the request/reply chain.</p>
17    pub cache_control: ::std::option::Option<::std::string::String>,
18    /// <p>The Base64 encoded, 32-bit <code>CRC32</code> checksum of the object. This checksum is only present if the object was uploaded with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html"> Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
19    pub checksum_crc32: ::std::option::Option<::std::string::String>,
20    /// <p>The Base64 encoded, 32-bit <code>CRC32C</code> checksum of the object. This checksum is only present if the checksum was uploaded with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html"> Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
21    pub checksum_crc32_c: ::std::option::Option<::std::string::String>,
22    /// <p>The Base64 encoded, 64-bit <code>CRC64NVME</code> checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
23    pub checksum_crc64_nvme: ::std::option::Option<::std::string::String>,
24    /// <p>The Base64 encoded, 128-bit <code>MD5</code> digest of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
25    pub checksum_md5: ::std::option::Option<::std::string::String>,
26    /// <p>The Base64 encoded, 160-bit <code>SHA1</code> digest of the object. This checksum is only present if the checksum was uploaded with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html"> Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
27    pub checksum_sha1: ::std::option::Option<::std::string::String>,
28    /// <p>The Base64 encoded, 256-bit <code>SHA256</code> digest of the object. This checksum is only present if the checksum was uploaded with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html"> Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
29    pub checksum_sha256: ::std::option::Option<::std::string::String>,
30    /// <p>The Base64 encoded, 512-bit <code>SHA512</code> digest of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
31    pub checksum_sha512: ::std::option::Option<::std::string::String>,
32    /// <p>The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in the <code>CreateMultipartUpload</code> request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
33    pub checksum_type: ::std::option::Option<crate::model::ChecksumType>,
34    /// <p>The Base64 encoded, 128-bit <code>XXHASH128</code> checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
35    pub checksum_xxhash128: ::std::option::Option<::std::string::String>,
36    /// <p>The Base64 encoded, 64-bit <code>XXHASH3</code> checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
37    pub checksum_xxhash3: ::std::option::Option<::std::string::String>,
38    /// <p>The Base64 encoded, 64-bit <code>XXHASH64</code> checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
39    pub checksum_xxhash64: ::std::option::Option<::std::string::String>,
40    /// <p>Specifies presentational information for the object.</p>
41    pub content_disposition: ::std::option::Option<::std::string::String>,
42    /// <p>Indicates what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.</p>
43    pub content_encoding: ::std::option::Option<::std::string::String>,
44    /// <p>The language the content is in.</p>
45    pub content_language: ::std::option::Option<::std::string::String>,
46    /// <p>A standard MIME type describing the format of the object data.</p>
47    pub content_type: ::std::option::Option<::std::string::String>,
48    /// <p>Indicates whether the object retrieved was (true) or was not (false) a Delete Marker. If false, this response header does not appear in the response.</p><note>
49    /// <ul>
50    /// <li>
51    /// <p>If the current version of the object is a delete marker, Amazon S3 behaves as if the object was deleted and includes <code>x-amz-delete-marker: true</code> in the response.</p></li>
52    /// <li>
53    /// <p>If the specified version in the request is a delete marker, the response returns a <code>405 Method Not Allowed</code> error and the <code>Last-Modified: timestamp</code> response header.</p></li>
54    /// </ul>
55    /// </note>
56    pub delete_marker: ::std::option::Option<bool>,
57    /// <p>An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.</p>
58    pub e_tag: ::std::option::Option<::std::string::String>,
59    /// <p>If the object expiration is configured (see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html"> <code>PutBucketLifecycleConfiguration</code> </a>), the response includes this header. It includes the <code>expiry-date</code> and <code>rule-id</code> key-value pairs providing object expiration information. The value of the <code>rule-id</code> is URL-encoded.</p><note>
60    /// <p>Object expiration information is not returned in directory buckets and this header returns the value "<code>NotImplemented</code>" in all responses for directory buckets.</p>
61    /// </note>
62    pub expiration: ::std::option::Option<::std::string::String>,
63    /// <p>Date and time when the object was last modified.</p>
64    /// <p><b>General purpose buckets </b> - When you specify a <code>versionId</code> of the object in your request, if the specified version in the request is a delete marker, the response returns a <code>405 Method Not Allowed</code> error and the <code>Last-Modified: timestamp</code> response header.</p>
65    pub last_modified: ::std::option::Option<::aws_smithy_types::DateTime>,
66    /// <p>A map of metadata to store with the object in S3.</p>
67    pub metadata: ::std::option::Option<
68        ::std::collections::HashMap<::std::string::String, ::std::string::String>,
69    >,
70    /// <p>This is set to the number of metadata entries not returned in the headers that are prefixed with <code>x-amz-meta-</code>. This can happen if you create metadata using an API like SOAP that supports more flexible metadata than the REST API. For example, using SOAP, you can create metadata whose values are not legal HTTP headers.</p><note>
71    /// <p>This functionality is not supported for directory buckets.</p>
72    /// </note>
73    pub missing_meta: ::std::option::Option<i32>,
74    /// <p>Indicates whether this object has an active legal hold. This field is only returned if you have permission to view an object's legal hold status.</p><note>
75    /// <p>This functionality is not supported for directory buckets.</p>
76    /// </note>
77    pub object_lock_legal_hold_status:
78        ::std::option::Option<crate::model::ObjectLockLegalHoldStatus>,
79    /// <p>The Object Lock mode that's currently in place for this object.</p><note>
80    /// <p>This functionality is not supported for directory buckets.</p>
81    /// </note>
82    pub object_lock_mode: ::std::option::Option<crate::model::ObjectLockMode>,
83    /// <p>The date and time when this object's Object Lock will expire.</p><note>
84    /// <p>This functionality is not supported for directory buckets.</p>
85    /// </note>
86    pub object_lock_retain_until_date: ::std::option::Option<::aws_smithy_types::DateTime>,
87    /// <p>The count of parts this object has. This value is only returned if you specify <code>partNumber</code> in your request and the object was uploaded as a multipart upload.</p>
88    pub parts_count: ::std::option::Option<i32>,
89    /// <p>Amazon S3 can return this if your request involves a bucket that is either a source or destination in a replication rule.</p><note>
90    /// <p>This functionality is not supported for directory buckets.</p>
91    /// </note>
92    pub replication_status: ::std::option::Option<crate::model::ReplicationStatus>,
93    /// <p>If present, indicates that the requester was successfully charged for the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html">Using Requester Pays buckets for storage transfers and usage</a> in the <i>Amazon Simple Storage Service user guide</i>.</p><note>
94    /// <p>This functionality is not supported for directory buckets.</p>
95    /// </note>
96    pub request_charged: ::std::option::Option<crate::model::RequestCharged>,
97    /// <p>Provides information about object restoration action and expiration time of the restored object copy.</p><note>
98    /// <p>This functionality is not supported for directory buckets. Directory buckets only support <code>EXPRESS_ONEZONE</code> (the S3 Express One Zone storage class) in Availability Zones and <code>ONEZONE_IA</code> (the S3 One Zone-Infrequent Access storage class) in Dedicated Local Zones.</p>
99    /// </note>
100    pub restore: ::std::option::Option<::std::string::String>,
101    /// <p>If server-side encryption with a customer-provided encryption key was requested, the response will include this header to confirm the encryption algorithm that's used.</p><note>
102    /// <p>This functionality is not supported for directory buckets.</p>
103    /// </note>
104    pub sse_customer_algorithm: ::std::option::Option<::std::string::String>,
105    /// <p>If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide the round-trip message integrity verification of the customer-provided encryption key.</p><note>
106    /// <p>This functionality is not supported for directory buckets.</p>
107    /// </note>
108    pub sse_customer_key_md5: ::std::option::Option<::std::string::String>,
109    /// <p>If present, indicates the ID of the KMS key that was used for object encryption.</p>
110    pub ssekms_key_id: ::std::option::Option<::std::string::String>,
111    /// <p>The server-side encryption algorithm used when you store this object in Amazon S3 or Amazon FSx.</p><note>
112    /// <p>When accessing data stored in Amazon FSx file systems using S3 access points, the only valid server side encryption option is <code>aws:fsx</code>.</p>
113    /// </note>
114    pub server_side_encryption: ::std::option::Option<crate::model::ServerSideEncryption>,
115    /// <p>Provides storage class information of the object. Amazon S3 returns this header for all objects except for S3 Standard storage class objects.</p><note>
116    /// <p><b>Directory buckets </b> - Directory buckets only support <code>EXPRESS_ONEZONE</code> (the S3 Express One Zone storage class) in Availability Zones and <code>ONEZONE_IA</code> (the S3 One Zone-Infrequent Access storage class) in Dedicated Local Zones.</p>
117    /// </note>
118    pub storage_class: ::std::option::Option<crate::model::StorageClass>,
119    /// <p>The number of tags, if any, on the object, when you have the relevant permission to read object tags.</p>
120    /// <p>You can use <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectTagging.html">GetObjectTagging</a> to retrieve the tag set associated with an object.</p><note>
121    /// <p>This functionality is not supported for directory buckets.</p>
122    /// </note>
123    pub tag_count: ::std::option::Option<i32>,
124    /// <p>Version ID of the object.</p><note>
125    /// <p>This functionality is not supported for directory buckets.</p>
126    /// </note>
127    pub version_id: ::std::option::Option<::std::string::String>,
128    /// <p>If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata.</p><note>
129    /// <p>This functionality is not supported for directory buckets.</p>
130    /// </note>
131    pub website_redirect_location: ::std::option::Option<::std::string::String>,
132    /// <p>The date and time at which the object is no longer cacheable.</p>
133    pub expires_string: ::std::option::Option<::std::string::String>,
134    /// <p>Size of the body in bytes.</p>
135    pub(crate) content_length: ::std::option::Option<i64>,
136    /// <p>The portion of the object returned in the response.</p>
137    pub(crate) content_range: ::std::option::Option<::std::string::String>,
138    /// S3 request ID.
139    _request_id: ::std::option::Option<::std::string::String>,
140    /// S3 extended request ID.
141    _extended_request_id: ::std::option::Option<::std::string::String>,
142}
143impl ObjectMetadata {
144    /// <p>Indicates that a range of bytes was specified in the request.</p>
145    pub fn accept_ranges(&self) -> ::std::option::Option<&str> {
146        self.accept_ranges.as_deref()
147    }
148    /// <p>The archive state of the head object.</p><note>
149    /// <p>This functionality is not supported for directory buckets.</p>
150    /// </note>
151    /// <p>Available when discovery uses a HEAD response that returns this value.</p>
152    pub fn archive_status(&self) -> ::std::option::Option<&crate::model::ArchiveStatus> {
153        self.archive_status.as_ref()
154    }
155    /// <p>Indicates whether the object uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS).</p>
156    pub fn bucket_key_enabled(&self) -> ::std::option::Option<bool> {
157        self.bucket_key_enabled
158    }
159    /// <p>Specifies caching behavior along the request/reply chain.</p>
160    pub fn cache_control(&self) -> ::std::option::Option<&str> {
161        self.cache_control.as_deref()
162    }
163    /// <p>The Base64 encoded, 32-bit <code>CRC32</code> checksum of the object. This checksum is only present if the object was uploaded with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html"> Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
164    pub fn checksum_crc32(&self) -> ::std::option::Option<&str> {
165        self.checksum_crc32.as_deref()
166    }
167    /// <p>The Base64 encoded, 32-bit <code>CRC32C</code> checksum of the object. This checksum is only present if the checksum was uploaded with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html"> Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
168    pub fn checksum_crc32_c(&self) -> ::std::option::Option<&str> {
169        self.checksum_crc32_c.as_deref()
170    }
171    /// <p>The Base64 encoded, 64-bit <code>CRC64NVME</code> checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
172    pub fn checksum_crc64_nvme(&self) -> ::std::option::Option<&str> {
173        self.checksum_crc64_nvme.as_deref()
174    }
175    /// <p>The Base64 encoded, 128-bit <code>MD5</code> digest of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
176    pub fn checksum_md5(&self) -> ::std::option::Option<&str> {
177        self.checksum_md5.as_deref()
178    }
179    /// <p>The Base64 encoded, 160-bit <code>SHA1</code> digest of the object. This checksum is only present if the checksum was uploaded with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html"> Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
180    pub fn checksum_sha1(&self) -> ::std::option::Option<&str> {
181        self.checksum_sha1.as_deref()
182    }
183    /// <p>The Base64 encoded, 256-bit <code>SHA256</code> digest of the object. This checksum is only present if the checksum was uploaded with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html"> Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
184    pub fn checksum_sha256(&self) -> ::std::option::Option<&str> {
185        self.checksum_sha256.as_deref()
186    }
187    /// <p>The Base64 encoded, 512-bit <code>SHA512</code> digest of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
188    pub fn checksum_sha512(&self) -> ::std::option::Option<&str> {
189        self.checksum_sha512.as_deref()
190    }
191    /// <p>The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in the <code>CreateMultipartUpload</code> request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
192    pub fn checksum_type(&self) -> ::std::option::Option<&crate::model::ChecksumType> {
193        self.checksum_type.as_ref()
194    }
195    /// <p>The Base64 encoded, 128-bit <code>XXHASH128</code> checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
196    pub fn checksum_xxhash128(&self) -> ::std::option::Option<&str> {
197        self.checksum_xxhash128.as_deref()
198    }
199    /// <p>The Base64 encoded, 64-bit <code>XXHASH3</code> checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
200    pub fn checksum_xxhash3(&self) -> ::std::option::Option<&str> {
201        self.checksum_xxhash3.as_deref()
202    }
203    /// <p>The Base64 encoded, 64-bit <code>XXHASH64</code> checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
204    pub fn checksum_xxhash64(&self) -> ::std::option::Option<&str> {
205        self.checksum_xxhash64.as_deref()
206    }
207    /// <p>Specifies presentational information for the object.</p>
208    pub fn content_disposition(&self) -> ::std::option::Option<&str> {
209        self.content_disposition.as_deref()
210    }
211    /// <p>Indicates what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.</p>
212    pub fn content_encoding(&self) -> ::std::option::Option<&str> {
213        self.content_encoding.as_deref()
214    }
215    /// <p>The language the content is in.</p>
216    pub fn content_language(&self) -> ::std::option::Option<&str> {
217        self.content_language.as_deref()
218    }
219    /// <p>A standard MIME type describing the format of the object data.</p>
220    pub fn content_type(&self) -> ::std::option::Option<&str> {
221        self.content_type.as_deref()
222    }
223    /// <p>Indicates whether the object retrieved was (true) or was not (false) a Delete Marker. If false, this response header does not appear in the response.</p><note>
224    /// <ul>
225    /// <li>
226    /// <p>If the current version of the object is a delete marker, Amazon S3 behaves as if the object was deleted and includes <code>x-amz-delete-marker: true</code> in the response.</p></li>
227    /// <li>
228    /// <p>If the specified version in the request is a delete marker, the response returns a <code>405 Method Not Allowed</code> error and the <code>Last-Modified: timestamp</code> response header.</p></li>
229    /// </ul>
230    /// </note>
231    pub fn delete_marker(&self) -> ::std::option::Option<bool> {
232        self.delete_marker
233    }
234    /// <p>An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.</p>
235    pub fn e_tag(&self) -> ::std::option::Option<&str> {
236        self.e_tag.as_deref()
237    }
238    /// <p>If the object expiration is configured (see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html"> <code>PutBucketLifecycleConfiguration</code> </a>), the response includes this header. It includes the <code>expiry-date</code> and <code>rule-id</code> key-value pairs providing object expiration information. The value of the <code>rule-id</code> is URL-encoded.</p><note>
239    /// <p>Object expiration information is not returned in directory buckets and this header returns the value "<code>NotImplemented</code>" in all responses for directory buckets.</p>
240    /// </note>
241    pub fn expiration(&self) -> ::std::option::Option<&str> {
242        self.expiration.as_deref()
243    }
244    /// <p>Date and time when the object was last modified.</p>
245    /// <p><b>General purpose buckets </b> - When you specify a <code>versionId</code> of the object in your request, if the specified version in the request is a delete marker, the response returns a <code>405 Method Not Allowed</code> error and the <code>Last-Modified: timestamp</code> response header.</p>
246    pub fn last_modified(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
247        self.last_modified.as_ref()
248    }
249    /// <p>A map of metadata to store with the object in S3.</p>
250    pub fn metadata(
251        &self,
252    ) -> ::std::option::Option<
253        &::std::collections::HashMap<::std::string::String, ::std::string::String>,
254    > {
255        self.metadata.as_ref()
256    }
257    /// <p>This is set to the number of metadata entries not returned in the headers that are prefixed with <code>x-amz-meta-</code>. This can happen if you create metadata using an API like SOAP that supports more flexible metadata than the REST API. For example, using SOAP, you can create metadata whose values are not legal HTTP headers.</p><note>
258    /// <p>This functionality is not supported for directory buckets.</p>
259    /// </note>
260    pub fn missing_meta(&self) -> ::std::option::Option<i32> {
261        self.missing_meta
262    }
263    /// <p>Indicates whether this object has an active legal hold. This field is only returned if you have permission to view an object's legal hold status.</p><note>
264    /// <p>This functionality is not supported for directory buckets.</p>
265    /// </note>
266    pub fn object_lock_legal_hold_status(
267        &self,
268    ) -> ::std::option::Option<&crate::model::ObjectLockLegalHoldStatus> {
269        self.object_lock_legal_hold_status.as_ref()
270    }
271    /// <p>The Object Lock mode that's currently in place for this object.</p><note>
272    /// <p>This functionality is not supported for directory buckets.</p>
273    /// </note>
274    pub fn object_lock_mode(&self) -> ::std::option::Option<&crate::model::ObjectLockMode> {
275        self.object_lock_mode.as_ref()
276    }
277    /// <p>The date and time when this object's Object Lock will expire.</p><note>
278    /// <p>This functionality is not supported for directory buckets.</p>
279    /// </note>
280    pub fn object_lock_retain_until_date(
281        &self,
282    ) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
283        self.object_lock_retain_until_date.as_ref()
284    }
285    /// <p>The count of parts this object has. This value is only returned if you specify <code>partNumber</code> in your request and the object was uploaded as a multipart upload.</p>
286    pub fn parts_count(&self) -> ::std::option::Option<i32> {
287        self.parts_count
288    }
289    /// <p>Amazon S3 can return this if your request involves a bucket that is either a source or destination in a replication rule.</p><note>
290    /// <p>This functionality is not supported for directory buckets.</p>
291    /// </note>
292    pub fn replication_status(&self) -> ::std::option::Option<&crate::model::ReplicationStatus> {
293        self.replication_status.as_ref()
294    }
295    /// <p>If present, indicates that the requester was successfully charged for the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html">Using Requester Pays buckets for storage transfers and usage</a> in the <i>Amazon Simple Storage Service user guide</i>.</p><note>
296    /// <p>This functionality is not supported for directory buckets.</p>
297    /// </note>
298    pub fn request_charged(&self) -> ::std::option::Option<&crate::model::RequestCharged> {
299        self.request_charged.as_ref()
300    }
301    /// <p>Provides information about object restoration action and expiration time of the restored object copy.</p><note>
302    /// <p>This functionality is not supported for directory buckets. Directory buckets only support <code>EXPRESS_ONEZONE</code> (the S3 Express One Zone storage class) in Availability Zones and <code>ONEZONE_IA</code> (the S3 One Zone-Infrequent Access storage class) in Dedicated Local Zones.</p>
303    /// </note>
304    pub fn restore(&self) -> ::std::option::Option<&str> {
305        self.restore.as_deref()
306    }
307    /// <p>If server-side encryption with a customer-provided encryption key was requested, the response will include this header to confirm the encryption algorithm that's used.</p><note>
308    /// <p>This functionality is not supported for directory buckets.</p>
309    /// </note>
310    pub fn sse_customer_algorithm(&self) -> ::std::option::Option<&str> {
311        self.sse_customer_algorithm.as_deref()
312    }
313    /// <p>If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide the round-trip message integrity verification of the customer-provided encryption key.</p><note>
314    /// <p>This functionality is not supported for directory buckets.</p>
315    /// </note>
316    pub fn sse_customer_key_md5(&self) -> ::std::option::Option<&str> {
317        self.sse_customer_key_md5.as_deref()
318    }
319    /// <p>If present, indicates the ID of the KMS key that was used for object encryption.</p>
320    pub fn ssekms_key_id(&self) -> ::std::option::Option<&str> {
321        self.ssekms_key_id.as_deref()
322    }
323    /// <p>The server-side encryption algorithm used when you store this object in Amazon S3 or Amazon FSx.</p><note>
324    /// <p>When accessing data stored in Amazon FSx file systems using S3 access points, the only valid server side encryption option is <code>aws:fsx</code>.</p>
325    /// </note>
326    pub fn server_side_encryption(
327        &self,
328    ) -> ::std::option::Option<&crate::model::ServerSideEncryption> {
329        self.server_side_encryption.as_ref()
330    }
331    /// <p>Provides storage class information of the object. Amazon S3 returns this header for all objects except for S3 Standard storage class objects.</p><note>
332    /// <p><b>Directory buckets </b> - Directory buckets only support <code>EXPRESS_ONEZONE</code> (the S3 Express One Zone storage class) in Availability Zones and <code>ONEZONE_IA</code> (the S3 One Zone-Infrequent Access storage class) in Dedicated Local Zones.</p>
333    /// </note>
334    pub fn storage_class(&self) -> ::std::option::Option<&crate::model::StorageClass> {
335        self.storage_class.as_ref()
336    }
337    /// <p>The number of tags, if any, on the object, when you have the relevant permission to read object tags.</p>
338    /// <p>You can use <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectTagging.html">GetObjectTagging</a> to retrieve the tag set associated with an object.</p><note>
339    /// <p>This functionality is not supported for directory buckets.</p>
340    /// </note>
341    pub fn tag_count(&self) -> ::std::option::Option<i32> {
342        self.tag_count
343    }
344    /// <p>Version ID of the object.</p><note>
345    /// <p>This functionality is not supported for directory buckets.</p>
346    /// </note>
347    pub fn version_id(&self) -> ::std::option::Option<&str> {
348        self.version_id.as_deref()
349    }
350    /// <p>If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata.</p><note>
351    /// <p>This functionality is not supported for directory buckets.</p>
352    /// </note>
353    pub fn website_redirect_location(&self) -> ::std::option::Option<&str> {
354        self.website_redirect_location.as_deref()
355    }
356    /// <p>The date and time at which the object is no longer cacheable.</p>
357    pub fn expires_string(&self) -> ::std::option::Option<&str> {
358        self.expires_string.as_deref()
359    }
360}
361impl ::std::fmt::Debug for ObjectMetadata {
362    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
363        let mut formatter = f.debug_struct("ObjectMetadata");
364        formatter.field("accept_ranges", &self.accept_ranges);
365        formatter.field("archive_status", &self.archive_status);
366        formatter.field("bucket_key_enabled", &self.bucket_key_enabled);
367        formatter.field("cache_control", &self.cache_control);
368        formatter.field("checksum_crc32", &self.checksum_crc32);
369        formatter.field("checksum_crc32_c", &self.checksum_crc32_c);
370        formatter.field("checksum_crc64_nvme", &self.checksum_crc64_nvme);
371        formatter.field("checksum_md5", &self.checksum_md5);
372        formatter.field("checksum_sha1", &self.checksum_sha1);
373        formatter.field("checksum_sha256", &self.checksum_sha256);
374        formatter.field("checksum_sha512", &self.checksum_sha512);
375        formatter.field("checksum_type", &self.checksum_type);
376        formatter.field("checksum_xxhash128", &self.checksum_xxhash128);
377        formatter.field("checksum_xxhash3", &self.checksum_xxhash3);
378        formatter.field("checksum_xxhash64", &self.checksum_xxhash64);
379        formatter.field("content_disposition", &self.content_disposition);
380        formatter.field("content_encoding", &self.content_encoding);
381        formatter.field("content_language", &self.content_language);
382        formatter.field("content_type", &self.content_type);
383        formatter.field("delete_marker", &self.delete_marker);
384        formatter.field("e_tag", &self.e_tag);
385        formatter.field("expiration", &self.expiration);
386        formatter.field("last_modified", &self.last_modified);
387        formatter.field("metadata", &self.metadata);
388        formatter.field("missing_meta", &self.missing_meta);
389        formatter.field(
390            "object_lock_legal_hold_status",
391            &self.object_lock_legal_hold_status,
392        );
393        formatter.field("object_lock_mode", &self.object_lock_mode);
394        formatter.field(
395            "object_lock_retain_until_date",
396            &self.object_lock_retain_until_date,
397        );
398        formatter.field("parts_count", &self.parts_count);
399        formatter.field("replication_status", &self.replication_status);
400        formatter.field("request_charged", &self.request_charged);
401        formatter.field("restore", &self.restore);
402        formatter.field("sse_customer_algorithm", &self.sse_customer_algorithm);
403        formatter.field("sse_customer_key_md5", &self.sse_customer_key_md5);
404        formatter.field("ssekms_key_id", &"*** Sensitive Data Redacted ***");
405        formatter.field("server_side_encryption", &self.server_side_encryption);
406        formatter.field("storage_class", &self.storage_class);
407        formatter.field("tag_count", &self.tag_count);
408        formatter.field("version_id", &self.version_id);
409        formatter.field("website_redirect_location", &self.website_redirect_location);
410        formatter.field("expires_string", &self.expires_string);
411        formatter.field("content_length", &self.content_length);
412        formatter.field("content_range", &self.content_range);
413        formatter.field("_request_id", &self._request_id);
414        formatter.field("_extended_request_id", &self._extended_request_id);
415        formatter.finish()
416    }
417}
418impl crate::model::ObjectMetadata {
419    /// <p>Size of the body in bytes.</p>
420    #[allow(dead_code)]
421    pub(crate) fn content_length(&self) -> ::std::option::Option<i64> {
422        self.content_length
423    }
424    /// <p>The portion of the object returned in the response.</p>
425    #[allow(dead_code)]
426    pub(crate) fn content_range(&self) -> ::std::option::Option<&str> {
427        self.content_range.as_deref()
428    }
429    /// S3 request ID.
430    pub fn request_id(&self) -> ::std::option::Option<&str> {
431        self._request_id.as_deref()
432    }
433    /// S3 extended request ID.
434    pub fn extended_request_id(&self) -> ::std::option::Option<&str> {
435        self._extended_request_id.as_deref()
436    }
437}
438impl ObjectMetadata {
439    /// Creates a new builder-style object to manufacture [`ObjectMetadata`](crate::model::ObjectMetadata).
440    pub fn builder() -> crate::model::builders::ObjectMetadataBuilder {
441        crate::model::builders::ObjectMetadataBuilder::default()
442    }
443}
444
445/// A builder for [`ObjectMetadata`](crate::model::ObjectMetadata).
446#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
447#[non_exhaustive]
448pub struct ObjectMetadataBuilder {
449    pub(crate) accept_ranges: ::std::option::Option<::std::string::String>,
450    pub(crate) archive_status: ::std::option::Option<crate::model::ArchiveStatus>,
451    pub(crate) bucket_key_enabled: ::std::option::Option<bool>,
452    pub(crate) cache_control: ::std::option::Option<::std::string::String>,
453    pub(crate) checksum_crc32: ::std::option::Option<::std::string::String>,
454    pub(crate) checksum_crc32_c: ::std::option::Option<::std::string::String>,
455    pub(crate) checksum_crc64_nvme: ::std::option::Option<::std::string::String>,
456    pub(crate) checksum_md5: ::std::option::Option<::std::string::String>,
457    pub(crate) checksum_sha1: ::std::option::Option<::std::string::String>,
458    pub(crate) checksum_sha256: ::std::option::Option<::std::string::String>,
459    pub(crate) checksum_sha512: ::std::option::Option<::std::string::String>,
460    pub(crate) checksum_type: ::std::option::Option<crate::model::ChecksumType>,
461    pub(crate) checksum_xxhash128: ::std::option::Option<::std::string::String>,
462    pub(crate) checksum_xxhash3: ::std::option::Option<::std::string::String>,
463    pub(crate) checksum_xxhash64: ::std::option::Option<::std::string::String>,
464    pub(crate) content_disposition: ::std::option::Option<::std::string::String>,
465    pub(crate) content_encoding: ::std::option::Option<::std::string::String>,
466    pub(crate) content_language: ::std::option::Option<::std::string::String>,
467    pub(crate) content_type: ::std::option::Option<::std::string::String>,
468    pub(crate) delete_marker: ::std::option::Option<bool>,
469    pub(crate) e_tag: ::std::option::Option<::std::string::String>,
470    pub(crate) expiration: ::std::option::Option<::std::string::String>,
471    pub(crate) last_modified: ::std::option::Option<::aws_smithy_types::DateTime>,
472    pub(crate) metadata: ::std::option::Option<
473        ::std::collections::HashMap<::std::string::String, ::std::string::String>,
474    >,
475    pub(crate) missing_meta: ::std::option::Option<i32>,
476    pub(crate) object_lock_legal_hold_status:
477        ::std::option::Option<crate::model::ObjectLockLegalHoldStatus>,
478    pub(crate) object_lock_mode: ::std::option::Option<crate::model::ObjectLockMode>,
479    pub(crate) object_lock_retain_until_date: ::std::option::Option<::aws_smithy_types::DateTime>,
480    pub(crate) parts_count: ::std::option::Option<i32>,
481    pub(crate) replication_status: ::std::option::Option<crate::model::ReplicationStatus>,
482    pub(crate) request_charged: ::std::option::Option<crate::model::RequestCharged>,
483    pub(crate) restore: ::std::option::Option<::std::string::String>,
484    pub(crate) sse_customer_algorithm: ::std::option::Option<::std::string::String>,
485    pub(crate) sse_customer_key_md5: ::std::option::Option<::std::string::String>,
486    pub(crate) ssekms_key_id: ::std::option::Option<::std::string::String>,
487    pub(crate) server_side_encryption: ::std::option::Option<crate::model::ServerSideEncryption>,
488    pub(crate) storage_class: ::std::option::Option<crate::model::StorageClass>,
489    pub(crate) tag_count: ::std::option::Option<i32>,
490    pub(crate) version_id: ::std::option::Option<::std::string::String>,
491    pub(crate) website_redirect_location: ::std::option::Option<::std::string::String>,
492    pub(crate) expires_string: ::std::option::Option<::std::string::String>,
493    pub(crate) content_length: ::std::option::Option<i64>,
494    pub(crate) content_range: ::std::option::Option<::std::string::String>,
495    pub(crate) _request_id: ::std::option::Option<::std::string::String>,
496    pub(crate) _extended_request_id: ::std::option::Option<::std::string::String>,
497}
498impl ObjectMetadataBuilder {
499    /// <p>Indicates that a range of bytes was specified in the request.</p>
500    pub fn accept_ranges(
501        mut self,
502        input: impl ::std::convert::Into<::std::string::String>,
503    ) -> Self {
504        self.accept_ranges = ::std::option::Option::Some(input.into());
505        self
506    }
507    /// <p>Indicates that a range of bytes was specified in the request.</p>
508    pub fn set_accept_ranges(
509        mut self,
510        input: ::std::option::Option<::std::string::String>,
511    ) -> Self {
512        self.accept_ranges = input;
513        self
514    }
515    /// <p>Indicates that a range of bytes was specified in the request.</p>
516    pub fn get_accept_ranges(&self) -> &::std::option::Option<::std::string::String> {
517        &self.accept_ranges
518    }
519    /// <p>The archive state of the head object.</p><note>
520    /// <p>This functionality is not supported for directory buckets.</p>
521    /// </note>
522    /// <p>Available when discovery uses a HEAD response that returns this value.</p>
523    pub fn archive_status(mut self, input: crate::model::ArchiveStatus) -> Self {
524        self.archive_status = ::std::option::Option::Some(input);
525        self
526    }
527    /// <p>The archive state of the head object.</p><note>
528    /// <p>This functionality is not supported for directory buckets.</p>
529    /// </note>
530    /// <p>Available when discovery uses a HEAD response that returns this value.</p>
531    pub fn set_archive_status(
532        mut self,
533        input: ::std::option::Option<crate::model::ArchiveStatus>,
534    ) -> Self {
535        self.archive_status = input;
536        self
537    }
538    /// <p>The archive state of the head object.</p><note>
539    /// <p>This functionality is not supported for directory buckets.</p>
540    /// </note>
541    /// <p>Available when discovery uses a HEAD response that returns this value.</p>
542    pub fn get_archive_status(&self) -> &::std::option::Option<crate::model::ArchiveStatus> {
543        &self.archive_status
544    }
545    /// <p>Indicates whether the object uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS).</p>
546    pub fn bucket_key_enabled(mut self, input: bool) -> Self {
547        self.bucket_key_enabled = ::std::option::Option::Some(input);
548        self
549    }
550    /// <p>Indicates whether the object uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS).</p>
551    pub fn set_bucket_key_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
552        self.bucket_key_enabled = input;
553        self
554    }
555    /// <p>Indicates whether the object uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS).</p>
556    pub fn get_bucket_key_enabled(&self) -> &::std::option::Option<bool> {
557        &self.bucket_key_enabled
558    }
559    /// <p>Specifies caching behavior along the request/reply chain.</p>
560    pub fn cache_control(
561        mut self,
562        input: impl ::std::convert::Into<::std::string::String>,
563    ) -> Self {
564        self.cache_control = ::std::option::Option::Some(input.into());
565        self
566    }
567    /// <p>Specifies caching behavior along the request/reply chain.</p>
568    pub fn set_cache_control(
569        mut self,
570        input: ::std::option::Option<::std::string::String>,
571    ) -> Self {
572        self.cache_control = input;
573        self
574    }
575    /// <p>Specifies caching behavior along the request/reply chain.</p>
576    pub fn get_cache_control(&self) -> &::std::option::Option<::std::string::String> {
577        &self.cache_control
578    }
579    /// <p>The Base64 encoded, 32-bit <code>CRC32</code> checksum of the object. This checksum is only present if the object was uploaded with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html"> Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
580    pub fn checksum_crc32(
581        mut self,
582        input: impl ::std::convert::Into<::std::string::String>,
583    ) -> Self {
584        self.checksum_crc32 = ::std::option::Option::Some(input.into());
585        self
586    }
587    /// <p>The Base64 encoded, 32-bit <code>CRC32</code> checksum of the object. This checksum is only present if the object was uploaded with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html"> Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
588    pub fn set_checksum_crc32(
589        mut self,
590        input: ::std::option::Option<::std::string::String>,
591    ) -> Self {
592        self.checksum_crc32 = input;
593        self
594    }
595    /// <p>The Base64 encoded, 32-bit <code>CRC32</code> checksum of the object. This checksum is only present if the object was uploaded with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html"> Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
596    pub fn get_checksum_crc32(&self) -> &::std::option::Option<::std::string::String> {
597        &self.checksum_crc32
598    }
599    /// <p>The Base64 encoded, 32-bit <code>CRC32C</code> checksum of the object. This checksum is only present if the checksum was uploaded with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html"> Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
600    pub fn checksum_crc32_c(
601        mut self,
602        input: impl ::std::convert::Into<::std::string::String>,
603    ) -> Self {
604        self.checksum_crc32_c = ::std::option::Option::Some(input.into());
605        self
606    }
607    /// <p>The Base64 encoded, 32-bit <code>CRC32C</code> checksum of the object. This checksum is only present if the checksum was uploaded with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html"> Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
608    pub fn set_checksum_crc32_c(
609        mut self,
610        input: ::std::option::Option<::std::string::String>,
611    ) -> Self {
612        self.checksum_crc32_c = input;
613        self
614    }
615    /// <p>The Base64 encoded, 32-bit <code>CRC32C</code> checksum of the object. This checksum is only present if the checksum was uploaded with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html"> Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
616    pub fn get_checksum_crc32_c(&self) -> &::std::option::Option<::std::string::String> {
617        &self.checksum_crc32_c
618    }
619    /// <p>The Base64 encoded, 64-bit <code>CRC64NVME</code> checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
620    pub fn checksum_crc64_nvme(
621        mut self,
622        input: impl ::std::convert::Into<::std::string::String>,
623    ) -> Self {
624        self.checksum_crc64_nvme = ::std::option::Option::Some(input.into());
625        self
626    }
627    /// <p>The Base64 encoded, 64-bit <code>CRC64NVME</code> checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
628    pub fn set_checksum_crc64_nvme(
629        mut self,
630        input: ::std::option::Option<::std::string::String>,
631    ) -> Self {
632        self.checksum_crc64_nvme = input;
633        self
634    }
635    /// <p>The Base64 encoded, 64-bit <code>CRC64NVME</code> checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
636    pub fn get_checksum_crc64_nvme(&self) -> &::std::option::Option<::std::string::String> {
637        &self.checksum_crc64_nvme
638    }
639    /// <p>The Base64 encoded, 128-bit <code>MD5</code> digest of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
640    pub fn checksum_md5(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
641        self.checksum_md5 = ::std::option::Option::Some(input.into());
642        self
643    }
644    /// <p>The Base64 encoded, 128-bit <code>MD5</code> digest of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
645    pub fn set_checksum_md5(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
646        self.checksum_md5 = input;
647        self
648    }
649    /// <p>The Base64 encoded, 128-bit <code>MD5</code> digest of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
650    pub fn get_checksum_md5(&self) -> &::std::option::Option<::std::string::String> {
651        &self.checksum_md5
652    }
653    /// <p>The Base64 encoded, 160-bit <code>SHA1</code> digest of the object. This checksum is only present if the checksum was uploaded with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html"> Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
654    pub fn checksum_sha1(
655        mut self,
656        input: impl ::std::convert::Into<::std::string::String>,
657    ) -> Self {
658        self.checksum_sha1 = ::std::option::Option::Some(input.into());
659        self
660    }
661    /// <p>The Base64 encoded, 160-bit <code>SHA1</code> digest of the object. This checksum is only present if the checksum was uploaded with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html"> Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
662    pub fn set_checksum_sha1(
663        mut self,
664        input: ::std::option::Option<::std::string::String>,
665    ) -> Self {
666        self.checksum_sha1 = input;
667        self
668    }
669    /// <p>The Base64 encoded, 160-bit <code>SHA1</code> digest of the object. This checksum is only present if the checksum was uploaded with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html"> Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
670    pub fn get_checksum_sha1(&self) -> &::std::option::Option<::std::string::String> {
671        &self.checksum_sha1
672    }
673    /// <p>The Base64 encoded, 256-bit <code>SHA256</code> digest of the object. This checksum is only present if the checksum was uploaded with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html"> Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
674    pub fn checksum_sha256(
675        mut self,
676        input: impl ::std::convert::Into<::std::string::String>,
677    ) -> Self {
678        self.checksum_sha256 = ::std::option::Option::Some(input.into());
679        self
680    }
681    /// <p>The Base64 encoded, 256-bit <code>SHA256</code> digest of the object. This checksum is only present if the checksum was uploaded with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html"> Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
682    pub fn set_checksum_sha256(
683        mut self,
684        input: ::std::option::Option<::std::string::String>,
685    ) -> Self {
686        self.checksum_sha256 = input;
687        self
688    }
689    /// <p>The Base64 encoded, 256-bit <code>SHA256</code> digest of the object. This checksum is only present if the checksum was uploaded with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html"> Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
690    pub fn get_checksum_sha256(&self) -> &::std::option::Option<::std::string::String> {
691        &self.checksum_sha256
692    }
693    /// <p>The Base64 encoded, 512-bit <code>SHA512</code> digest of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
694    pub fn checksum_sha512(
695        mut self,
696        input: impl ::std::convert::Into<::std::string::String>,
697    ) -> Self {
698        self.checksum_sha512 = ::std::option::Option::Some(input.into());
699        self
700    }
701    /// <p>The Base64 encoded, 512-bit <code>SHA512</code> digest of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
702    pub fn set_checksum_sha512(
703        mut self,
704        input: ::std::option::Option<::std::string::String>,
705    ) -> Self {
706        self.checksum_sha512 = input;
707        self
708    }
709    /// <p>The Base64 encoded, 512-bit <code>SHA512</code> digest of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
710    pub fn get_checksum_sha512(&self) -> &::std::option::Option<::std::string::String> {
711        &self.checksum_sha512
712    }
713    /// <p>The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in the <code>CreateMultipartUpload</code> request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
714    pub fn checksum_type(mut self, input: crate::model::ChecksumType) -> Self {
715        self.checksum_type = ::std::option::Option::Some(input);
716        self
717    }
718    /// <p>The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in the <code>CreateMultipartUpload</code> request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
719    pub fn set_checksum_type(
720        mut self,
721        input: ::std::option::Option<crate::model::ChecksumType>,
722    ) -> Self {
723        self.checksum_type = input;
724        self
725    }
726    /// <p>The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in the <code>CreateMultipartUpload</code> request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
727    pub fn get_checksum_type(&self) -> &::std::option::Option<crate::model::ChecksumType> {
728        &self.checksum_type
729    }
730    /// <p>The Base64 encoded, 128-bit <code>XXHASH128</code> checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
731    pub fn checksum_xxhash128(
732        mut self,
733        input: impl ::std::convert::Into<::std::string::String>,
734    ) -> Self {
735        self.checksum_xxhash128 = ::std::option::Option::Some(input.into());
736        self
737    }
738    /// <p>The Base64 encoded, 128-bit <code>XXHASH128</code> checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
739    pub fn set_checksum_xxhash128(
740        mut self,
741        input: ::std::option::Option<::std::string::String>,
742    ) -> Self {
743        self.checksum_xxhash128 = input;
744        self
745    }
746    /// <p>The Base64 encoded, 128-bit <code>XXHASH128</code> checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
747    pub fn get_checksum_xxhash128(&self) -> &::std::option::Option<::std::string::String> {
748        &self.checksum_xxhash128
749    }
750    /// <p>The Base64 encoded, 64-bit <code>XXHASH3</code> checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
751    pub fn checksum_xxhash3(
752        mut self,
753        input: impl ::std::convert::Into<::std::string::String>,
754    ) -> Self {
755        self.checksum_xxhash3 = ::std::option::Option::Some(input.into());
756        self
757    }
758    /// <p>The Base64 encoded, 64-bit <code>XXHASH3</code> checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
759    pub fn set_checksum_xxhash3(
760        mut self,
761        input: ::std::option::Option<::std::string::String>,
762    ) -> Self {
763        self.checksum_xxhash3 = input;
764        self
765    }
766    /// <p>The Base64 encoded, 64-bit <code>XXHASH3</code> checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
767    pub fn get_checksum_xxhash3(&self) -> &::std::option::Option<::std::string::String> {
768        &self.checksum_xxhash3
769    }
770    /// <p>The Base64 encoded, 64-bit <code>XXHASH64</code> checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
771    pub fn checksum_xxhash64(
772        mut self,
773        input: impl ::std::convert::Into<::std::string::String>,
774    ) -> Self {
775        self.checksum_xxhash64 = ::std::option::Option::Some(input.into());
776        self
777    }
778    /// <p>The Base64 encoded, 64-bit <code>XXHASH64</code> checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
779    pub fn set_checksum_xxhash64(
780        mut self,
781        input: ::std::option::Option<::std::string::String>,
782    ) -> Self {
783        self.checksum_xxhash64 = input;
784        self
785    }
786    /// <p>The Base64 encoded, 64-bit <code>XXHASH64</code> checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity in the Amazon S3 User Guide</a>.</p>
787    pub fn get_checksum_xxhash64(&self) -> &::std::option::Option<::std::string::String> {
788        &self.checksum_xxhash64
789    }
790    /// <p>Specifies presentational information for the object.</p>
791    pub fn content_disposition(
792        mut self,
793        input: impl ::std::convert::Into<::std::string::String>,
794    ) -> Self {
795        self.content_disposition = ::std::option::Option::Some(input.into());
796        self
797    }
798    /// <p>Specifies presentational information for the object.</p>
799    pub fn set_content_disposition(
800        mut self,
801        input: ::std::option::Option<::std::string::String>,
802    ) -> Self {
803        self.content_disposition = input;
804        self
805    }
806    /// <p>Specifies presentational information for the object.</p>
807    pub fn get_content_disposition(&self) -> &::std::option::Option<::std::string::String> {
808        &self.content_disposition
809    }
810    /// <p>Indicates what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.</p>
811    pub fn content_encoding(
812        mut self,
813        input: impl ::std::convert::Into<::std::string::String>,
814    ) -> Self {
815        self.content_encoding = ::std::option::Option::Some(input.into());
816        self
817    }
818    /// <p>Indicates what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.</p>
819    pub fn set_content_encoding(
820        mut self,
821        input: ::std::option::Option<::std::string::String>,
822    ) -> Self {
823        self.content_encoding = input;
824        self
825    }
826    /// <p>Indicates what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.</p>
827    pub fn get_content_encoding(&self) -> &::std::option::Option<::std::string::String> {
828        &self.content_encoding
829    }
830    /// <p>The language the content is in.</p>
831    pub fn content_language(
832        mut self,
833        input: impl ::std::convert::Into<::std::string::String>,
834    ) -> Self {
835        self.content_language = ::std::option::Option::Some(input.into());
836        self
837    }
838    /// <p>The language the content is in.</p>
839    pub fn set_content_language(
840        mut self,
841        input: ::std::option::Option<::std::string::String>,
842    ) -> Self {
843        self.content_language = input;
844        self
845    }
846    /// <p>The language the content is in.</p>
847    pub fn get_content_language(&self) -> &::std::option::Option<::std::string::String> {
848        &self.content_language
849    }
850    /// <p>A standard MIME type describing the format of the object data.</p>
851    pub fn content_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
852        self.content_type = ::std::option::Option::Some(input.into());
853        self
854    }
855    /// <p>A standard MIME type describing the format of the object data.</p>
856    pub fn set_content_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
857        self.content_type = input;
858        self
859    }
860    /// <p>A standard MIME type describing the format of the object data.</p>
861    pub fn get_content_type(&self) -> &::std::option::Option<::std::string::String> {
862        &self.content_type
863    }
864    /// <p>Indicates whether the object retrieved was (true) or was not (false) a Delete Marker. If false, this response header does not appear in the response.</p><note>
865    /// <ul>
866    /// <li>
867    /// <p>If the current version of the object is a delete marker, Amazon S3 behaves as if the object was deleted and includes <code>x-amz-delete-marker: true</code> in the response.</p></li>
868    /// <li>
869    /// <p>If the specified version in the request is a delete marker, the response returns a <code>405 Method Not Allowed</code> error and the <code>Last-Modified: timestamp</code> response header.</p></li>
870    /// </ul>
871    /// </note>
872    pub fn delete_marker(mut self, input: bool) -> Self {
873        self.delete_marker = ::std::option::Option::Some(input);
874        self
875    }
876    /// <p>Indicates whether the object retrieved was (true) or was not (false) a Delete Marker. If false, this response header does not appear in the response.</p><note>
877    /// <ul>
878    /// <li>
879    /// <p>If the current version of the object is a delete marker, Amazon S3 behaves as if the object was deleted and includes <code>x-amz-delete-marker: true</code> in the response.</p></li>
880    /// <li>
881    /// <p>If the specified version in the request is a delete marker, the response returns a <code>405 Method Not Allowed</code> error and the <code>Last-Modified: timestamp</code> response header.</p></li>
882    /// </ul>
883    /// </note>
884    pub fn set_delete_marker(mut self, input: ::std::option::Option<bool>) -> Self {
885        self.delete_marker = input;
886        self
887    }
888    /// <p>Indicates whether the object retrieved was (true) or was not (false) a Delete Marker. If false, this response header does not appear in the response.</p><note>
889    /// <ul>
890    /// <li>
891    /// <p>If the current version of the object is a delete marker, Amazon S3 behaves as if the object was deleted and includes <code>x-amz-delete-marker: true</code> in the response.</p></li>
892    /// <li>
893    /// <p>If the specified version in the request is a delete marker, the response returns a <code>405 Method Not Allowed</code> error and the <code>Last-Modified: timestamp</code> response header.</p></li>
894    /// </ul>
895    /// </note>
896    pub fn get_delete_marker(&self) -> &::std::option::Option<bool> {
897        &self.delete_marker
898    }
899    /// <p>An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.</p>
900    pub fn e_tag(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
901        self.e_tag = ::std::option::Option::Some(input.into());
902        self
903    }
904    /// <p>An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.</p>
905    pub fn set_e_tag(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
906        self.e_tag = input;
907        self
908    }
909    /// <p>An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.</p>
910    pub fn get_e_tag(&self) -> &::std::option::Option<::std::string::String> {
911        &self.e_tag
912    }
913    /// <p>If the object expiration is configured (see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html"> <code>PutBucketLifecycleConfiguration</code> </a>), the response includes this header. It includes the <code>expiry-date</code> and <code>rule-id</code> key-value pairs providing object expiration information. The value of the <code>rule-id</code> is URL-encoded.</p><note>
914    /// <p>Object expiration information is not returned in directory buckets and this header returns the value "<code>NotImplemented</code>" in all responses for directory buckets.</p>
915    /// </note>
916    pub fn expiration(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
917        self.expiration = ::std::option::Option::Some(input.into());
918        self
919    }
920    /// <p>If the object expiration is configured (see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html"> <code>PutBucketLifecycleConfiguration</code> </a>), the response includes this header. It includes the <code>expiry-date</code> and <code>rule-id</code> key-value pairs providing object expiration information. The value of the <code>rule-id</code> is URL-encoded.</p><note>
921    /// <p>Object expiration information is not returned in directory buckets and this header returns the value "<code>NotImplemented</code>" in all responses for directory buckets.</p>
922    /// </note>
923    pub fn set_expiration(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
924        self.expiration = input;
925        self
926    }
927    /// <p>If the object expiration is configured (see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html"> <code>PutBucketLifecycleConfiguration</code> </a>), the response includes this header. It includes the <code>expiry-date</code> and <code>rule-id</code> key-value pairs providing object expiration information. The value of the <code>rule-id</code> is URL-encoded.</p><note>
928    /// <p>Object expiration information is not returned in directory buckets and this header returns the value "<code>NotImplemented</code>" in all responses for directory buckets.</p>
929    /// </note>
930    pub fn get_expiration(&self) -> &::std::option::Option<::std::string::String> {
931        &self.expiration
932    }
933    /// <p>Date and time when the object was last modified.</p>
934    /// <p><b>General purpose buckets </b> - When you specify a <code>versionId</code> of the object in your request, if the specified version in the request is a delete marker, the response returns a <code>405 Method Not Allowed</code> error and the <code>Last-Modified: timestamp</code> response header.</p>
935    pub fn last_modified(mut self, input: ::aws_smithy_types::DateTime) -> Self {
936        self.last_modified = ::std::option::Option::Some(input);
937        self
938    }
939    /// <p>Date and time when the object was last modified.</p>
940    /// <p><b>General purpose buckets </b> - When you specify a <code>versionId</code> of the object in your request, if the specified version in the request is a delete marker, the response returns a <code>405 Method Not Allowed</code> error and the <code>Last-Modified: timestamp</code> response header.</p>
941    pub fn set_last_modified(
942        mut self,
943        input: ::std::option::Option<::aws_smithy_types::DateTime>,
944    ) -> Self {
945        self.last_modified = input;
946        self
947    }
948    /// <p>Date and time when the object was last modified.</p>
949    /// <p><b>General purpose buckets </b> - When you specify a <code>versionId</code> of the object in your request, if the specified version in the request is a delete marker, the response returns a <code>405 Method Not Allowed</code> error and the <code>Last-Modified: timestamp</code> response header.</p>
950    pub fn get_last_modified(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
951        &self.last_modified
952    }
953    /// Adds a key-value pair to `metadata`.
954    ///
955    /// To override the contents of this collection use [`set_metadata`](Self::set_metadata).
956    ///
957    /// <p>A map of metadata to store with the object in S3.</p>
958    pub fn metadata(
959        mut self,
960        k: impl ::std::convert::Into<::std::string::String>,
961        v: impl ::std::convert::Into<::std::string::String>,
962    ) -> Self {
963        let mut hash_map = self.metadata.unwrap_or_default();
964        hash_map.insert(k.into(), v.into());
965        self.metadata = ::std::option::Option::Some(hash_map);
966        self
967    }
968    /// <p>A map of metadata to store with the object in S3.</p>
969    pub fn set_metadata(
970        mut self,
971        input: ::std::option::Option<
972            ::std::collections::HashMap<::std::string::String, ::std::string::String>,
973        >,
974    ) -> Self {
975        self.metadata = input;
976        self
977    }
978    /// <p>A map of metadata to store with the object in S3.</p>
979    pub fn get_metadata(
980        &self,
981    ) -> &::std::option::Option<
982        ::std::collections::HashMap<::std::string::String, ::std::string::String>,
983    > {
984        &self.metadata
985    }
986    /// <p>This is set to the number of metadata entries not returned in the headers that are prefixed with <code>x-amz-meta-</code>. This can happen if you create metadata using an API like SOAP that supports more flexible metadata than the REST API. For example, using SOAP, you can create metadata whose values are not legal HTTP headers.</p><note>
987    /// <p>This functionality is not supported for directory buckets.</p>
988    /// </note>
989    pub fn missing_meta(mut self, input: i32) -> Self {
990        self.missing_meta = ::std::option::Option::Some(input);
991        self
992    }
993    /// <p>This is set to the number of metadata entries not returned in the headers that are prefixed with <code>x-amz-meta-</code>. This can happen if you create metadata using an API like SOAP that supports more flexible metadata than the REST API. For example, using SOAP, you can create metadata whose values are not legal HTTP headers.</p><note>
994    /// <p>This functionality is not supported for directory buckets.</p>
995    /// </note>
996    pub fn set_missing_meta(mut self, input: ::std::option::Option<i32>) -> Self {
997        self.missing_meta = input;
998        self
999    }
1000    /// <p>This is set to the number of metadata entries not returned in the headers that are prefixed with <code>x-amz-meta-</code>. This can happen if you create metadata using an API like SOAP that supports more flexible metadata than the REST API. For example, using SOAP, you can create metadata whose values are not legal HTTP headers.</p><note>
1001    /// <p>This functionality is not supported for directory buckets.</p>
1002    /// </note>
1003    pub fn get_missing_meta(&self) -> &::std::option::Option<i32> {
1004        &self.missing_meta
1005    }
1006    /// <p>Indicates whether this object has an active legal hold. This field is only returned if you have permission to view an object's legal hold status.</p><note>
1007    /// <p>This functionality is not supported for directory buckets.</p>
1008    /// </note>
1009    pub fn object_lock_legal_hold_status(
1010        mut self,
1011        input: crate::model::ObjectLockLegalHoldStatus,
1012    ) -> Self {
1013        self.object_lock_legal_hold_status = ::std::option::Option::Some(input);
1014        self
1015    }
1016    /// <p>Indicates whether this object has an active legal hold. This field is only returned if you have permission to view an object's legal hold status.</p><note>
1017    /// <p>This functionality is not supported for directory buckets.</p>
1018    /// </note>
1019    pub fn set_object_lock_legal_hold_status(
1020        mut self,
1021        input: ::std::option::Option<crate::model::ObjectLockLegalHoldStatus>,
1022    ) -> Self {
1023        self.object_lock_legal_hold_status = input;
1024        self
1025    }
1026    /// <p>Indicates whether this object has an active legal hold. This field is only returned if you have permission to view an object's legal hold status.</p><note>
1027    /// <p>This functionality is not supported for directory buckets.</p>
1028    /// </note>
1029    pub fn get_object_lock_legal_hold_status(
1030        &self,
1031    ) -> &::std::option::Option<crate::model::ObjectLockLegalHoldStatus> {
1032        &self.object_lock_legal_hold_status
1033    }
1034    /// <p>The Object Lock mode that's currently in place for this object.</p><note>
1035    /// <p>This functionality is not supported for directory buckets.</p>
1036    /// </note>
1037    pub fn object_lock_mode(mut self, input: crate::model::ObjectLockMode) -> Self {
1038        self.object_lock_mode = ::std::option::Option::Some(input);
1039        self
1040    }
1041    /// <p>The Object Lock mode that's currently in place for this object.</p><note>
1042    /// <p>This functionality is not supported for directory buckets.</p>
1043    /// </note>
1044    pub fn set_object_lock_mode(
1045        mut self,
1046        input: ::std::option::Option<crate::model::ObjectLockMode>,
1047    ) -> Self {
1048        self.object_lock_mode = input;
1049        self
1050    }
1051    /// <p>The Object Lock mode that's currently in place for this object.</p><note>
1052    /// <p>This functionality is not supported for directory buckets.</p>
1053    /// </note>
1054    pub fn get_object_lock_mode(&self) -> &::std::option::Option<crate::model::ObjectLockMode> {
1055        &self.object_lock_mode
1056    }
1057    /// <p>The date and time when this object's Object Lock will expire.</p><note>
1058    /// <p>This functionality is not supported for directory buckets.</p>
1059    /// </note>
1060    pub fn object_lock_retain_until_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
1061        self.object_lock_retain_until_date = ::std::option::Option::Some(input);
1062        self
1063    }
1064    /// <p>The date and time when this object's Object Lock will expire.</p><note>
1065    /// <p>This functionality is not supported for directory buckets.</p>
1066    /// </note>
1067    pub fn set_object_lock_retain_until_date(
1068        mut self,
1069        input: ::std::option::Option<::aws_smithy_types::DateTime>,
1070    ) -> Self {
1071        self.object_lock_retain_until_date = input;
1072        self
1073    }
1074    /// <p>The date and time when this object's Object Lock will expire.</p><note>
1075    /// <p>This functionality is not supported for directory buckets.</p>
1076    /// </note>
1077    pub fn get_object_lock_retain_until_date(
1078        &self,
1079    ) -> &::std::option::Option<::aws_smithy_types::DateTime> {
1080        &self.object_lock_retain_until_date
1081    }
1082    /// <p>The count of parts this object has. This value is only returned if you specify <code>partNumber</code> in your request and the object was uploaded as a multipart upload.</p>
1083    pub fn parts_count(mut self, input: i32) -> Self {
1084        self.parts_count = ::std::option::Option::Some(input);
1085        self
1086    }
1087    /// <p>The count of parts this object has. This value is only returned if you specify <code>partNumber</code> in your request and the object was uploaded as a multipart upload.</p>
1088    pub fn set_parts_count(mut self, input: ::std::option::Option<i32>) -> Self {
1089        self.parts_count = input;
1090        self
1091    }
1092    /// <p>The count of parts this object has. This value is only returned if you specify <code>partNumber</code> in your request and the object was uploaded as a multipart upload.</p>
1093    pub fn get_parts_count(&self) -> &::std::option::Option<i32> {
1094        &self.parts_count
1095    }
1096    /// <p>Amazon S3 can return this if your request involves a bucket that is either a source or destination in a replication rule.</p><note>
1097    /// <p>This functionality is not supported for directory buckets.</p>
1098    /// </note>
1099    pub fn replication_status(mut self, input: crate::model::ReplicationStatus) -> Self {
1100        self.replication_status = ::std::option::Option::Some(input);
1101        self
1102    }
1103    /// <p>Amazon S3 can return this if your request involves a bucket that is either a source or destination in a replication rule.</p><note>
1104    /// <p>This functionality is not supported for directory buckets.</p>
1105    /// </note>
1106    pub fn set_replication_status(
1107        mut self,
1108        input: ::std::option::Option<crate::model::ReplicationStatus>,
1109    ) -> Self {
1110        self.replication_status = input;
1111        self
1112    }
1113    /// <p>Amazon S3 can return this if your request involves a bucket that is either a source or destination in a replication rule.</p><note>
1114    /// <p>This functionality is not supported for directory buckets.</p>
1115    /// </note>
1116    pub fn get_replication_status(
1117        &self,
1118    ) -> &::std::option::Option<crate::model::ReplicationStatus> {
1119        &self.replication_status
1120    }
1121    /// <p>If present, indicates that the requester was successfully charged for the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html">Using Requester Pays buckets for storage transfers and usage</a> in the <i>Amazon Simple Storage Service user guide</i>.</p><note>
1122    /// <p>This functionality is not supported for directory buckets.</p>
1123    /// </note>
1124    pub fn request_charged(mut self, input: crate::model::RequestCharged) -> Self {
1125        self.request_charged = ::std::option::Option::Some(input);
1126        self
1127    }
1128    /// <p>If present, indicates that the requester was successfully charged for the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html">Using Requester Pays buckets for storage transfers and usage</a> in the <i>Amazon Simple Storage Service user guide</i>.</p><note>
1129    /// <p>This functionality is not supported for directory buckets.</p>
1130    /// </note>
1131    pub fn set_request_charged(
1132        mut self,
1133        input: ::std::option::Option<crate::model::RequestCharged>,
1134    ) -> Self {
1135        self.request_charged = input;
1136        self
1137    }
1138    /// <p>If present, indicates that the requester was successfully charged for the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html">Using Requester Pays buckets for storage transfers and usage</a> in the <i>Amazon Simple Storage Service user guide</i>.</p><note>
1139    /// <p>This functionality is not supported for directory buckets.</p>
1140    /// </note>
1141    pub fn get_request_charged(&self) -> &::std::option::Option<crate::model::RequestCharged> {
1142        &self.request_charged
1143    }
1144    /// <p>Provides information about object restoration action and expiration time of the restored object copy.</p><note>
1145    /// <p>This functionality is not supported for directory buckets. Directory buckets only support <code>EXPRESS_ONEZONE</code> (the S3 Express One Zone storage class) in Availability Zones and <code>ONEZONE_IA</code> (the S3 One Zone-Infrequent Access storage class) in Dedicated Local Zones.</p>
1146    /// </note>
1147    pub fn restore(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1148        self.restore = ::std::option::Option::Some(input.into());
1149        self
1150    }
1151    /// <p>Provides information about object restoration action and expiration time of the restored object copy.</p><note>
1152    /// <p>This functionality is not supported for directory buckets. Directory buckets only support <code>EXPRESS_ONEZONE</code> (the S3 Express One Zone storage class) in Availability Zones and <code>ONEZONE_IA</code> (the S3 One Zone-Infrequent Access storage class) in Dedicated Local Zones.</p>
1153    /// </note>
1154    pub fn set_restore(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1155        self.restore = input;
1156        self
1157    }
1158    /// <p>Provides information about object restoration action and expiration time of the restored object copy.</p><note>
1159    /// <p>This functionality is not supported for directory buckets. Directory buckets only support <code>EXPRESS_ONEZONE</code> (the S3 Express One Zone storage class) in Availability Zones and <code>ONEZONE_IA</code> (the S3 One Zone-Infrequent Access storage class) in Dedicated Local Zones.</p>
1160    /// </note>
1161    pub fn get_restore(&self) -> &::std::option::Option<::std::string::String> {
1162        &self.restore
1163    }
1164    /// <p>If server-side encryption with a customer-provided encryption key was requested, the response will include this header to confirm the encryption algorithm that's used.</p><note>
1165    /// <p>This functionality is not supported for directory buckets.</p>
1166    /// </note>
1167    pub fn sse_customer_algorithm(
1168        mut self,
1169        input: impl ::std::convert::Into<::std::string::String>,
1170    ) -> Self {
1171        self.sse_customer_algorithm = ::std::option::Option::Some(input.into());
1172        self
1173    }
1174    /// <p>If server-side encryption with a customer-provided encryption key was requested, the response will include this header to confirm the encryption algorithm that's used.</p><note>
1175    /// <p>This functionality is not supported for directory buckets.</p>
1176    /// </note>
1177    pub fn set_sse_customer_algorithm(
1178        mut self,
1179        input: ::std::option::Option<::std::string::String>,
1180    ) -> Self {
1181        self.sse_customer_algorithm = input;
1182        self
1183    }
1184    /// <p>If server-side encryption with a customer-provided encryption key was requested, the response will include this header to confirm the encryption algorithm that's used.</p><note>
1185    /// <p>This functionality is not supported for directory buckets.</p>
1186    /// </note>
1187    pub fn get_sse_customer_algorithm(&self) -> &::std::option::Option<::std::string::String> {
1188        &self.sse_customer_algorithm
1189    }
1190    /// <p>If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide the round-trip message integrity verification of the customer-provided encryption key.</p><note>
1191    /// <p>This functionality is not supported for directory buckets.</p>
1192    /// </note>
1193    pub fn sse_customer_key_md5(
1194        mut self,
1195        input: impl ::std::convert::Into<::std::string::String>,
1196    ) -> Self {
1197        self.sse_customer_key_md5 = ::std::option::Option::Some(input.into());
1198        self
1199    }
1200    /// <p>If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide the round-trip message integrity verification of the customer-provided encryption key.</p><note>
1201    /// <p>This functionality is not supported for directory buckets.</p>
1202    /// </note>
1203    pub fn set_sse_customer_key_md5(
1204        mut self,
1205        input: ::std::option::Option<::std::string::String>,
1206    ) -> Self {
1207        self.sse_customer_key_md5 = input;
1208        self
1209    }
1210    /// <p>If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide the round-trip message integrity verification of the customer-provided encryption key.</p><note>
1211    /// <p>This functionality is not supported for directory buckets.</p>
1212    /// </note>
1213    pub fn get_sse_customer_key_md5(&self) -> &::std::option::Option<::std::string::String> {
1214        &self.sse_customer_key_md5
1215    }
1216    /// <p>If present, indicates the ID of the KMS key that was used for object encryption.</p>
1217    pub fn ssekms_key_id(
1218        mut self,
1219        input: impl ::std::convert::Into<::std::string::String>,
1220    ) -> Self {
1221        self.ssekms_key_id = ::std::option::Option::Some(input.into());
1222        self
1223    }
1224    /// <p>If present, indicates the ID of the KMS key that was used for object encryption.</p>
1225    pub fn set_ssekms_key_id(
1226        mut self,
1227        input: ::std::option::Option<::std::string::String>,
1228    ) -> Self {
1229        self.ssekms_key_id = input;
1230        self
1231    }
1232    /// <p>If present, indicates the ID of the KMS key that was used for object encryption.</p>
1233    pub fn get_ssekms_key_id(&self) -> &::std::option::Option<::std::string::String> {
1234        &self.ssekms_key_id
1235    }
1236    /// <p>The server-side encryption algorithm used when you store this object in Amazon S3 or Amazon FSx.</p><note>
1237    /// <p>When accessing data stored in Amazon FSx file systems using S3 access points, the only valid server side encryption option is <code>aws:fsx</code>.</p>
1238    /// </note>
1239    pub fn server_side_encryption(mut self, input: crate::model::ServerSideEncryption) -> Self {
1240        self.server_side_encryption = ::std::option::Option::Some(input);
1241        self
1242    }
1243    /// <p>The server-side encryption algorithm used when you store this object in Amazon S3 or Amazon FSx.</p><note>
1244    /// <p>When accessing data stored in Amazon FSx file systems using S3 access points, the only valid server side encryption option is <code>aws:fsx</code>.</p>
1245    /// </note>
1246    pub fn set_server_side_encryption(
1247        mut self,
1248        input: ::std::option::Option<crate::model::ServerSideEncryption>,
1249    ) -> Self {
1250        self.server_side_encryption = input;
1251        self
1252    }
1253    /// <p>The server-side encryption algorithm used when you store this object in Amazon S3 or Amazon FSx.</p><note>
1254    /// <p>When accessing data stored in Amazon FSx file systems using S3 access points, the only valid server side encryption option is <code>aws:fsx</code>.</p>
1255    /// </note>
1256    pub fn get_server_side_encryption(
1257        &self,
1258    ) -> &::std::option::Option<crate::model::ServerSideEncryption> {
1259        &self.server_side_encryption
1260    }
1261    /// <p>Provides storage class information of the object. Amazon S3 returns this header for all objects except for S3 Standard storage class objects.</p><note>
1262    /// <p><b>Directory buckets </b> - Directory buckets only support <code>EXPRESS_ONEZONE</code> (the S3 Express One Zone storage class) in Availability Zones and <code>ONEZONE_IA</code> (the S3 One Zone-Infrequent Access storage class) in Dedicated Local Zones.</p>
1263    /// </note>
1264    pub fn storage_class(mut self, input: crate::model::StorageClass) -> Self {
1265        self.storage_class = ::std::option::Option::Some(input);
1266        self
1267    }
1268    /// <p>Provides storage class information of the object. Amazon S3 returns this header for all objects except for S3 Standard storage class objects.</p><note>
1269    /// <p><b>Directory buckets </b> - Directory buckets only support <code>EXPRESS_ONEZONE</code> (the S3 Express One Zone storage class) in Availability Zones and <code>ONEZONE_IA</code> (the S3 One Zone-Infrequent Access storage class) in Dedicated Local Zones.</p>
1270    /// </note>
1271    pub fn set_storage_class(
1272        mut self,
1273        input: ::std::option::Option<crate::model::StorageClass>,
1274    ) -> Self {
1275        self.storage_class = input;
1276        self
1277    }
1278    /// <p>Provides storage class information of the object. Amazon S3 returns this header for all objects except for S3 Standard storage class objects.</p><note>
1279    /// <p><b>Directory buckets </b> - Directory buckets only support <code>EXPRESS_ONEZONE</code> (the S3 Express One Zone storage class) in Availability Zones and <code>ONEZONE_IA</code> (the S3 One Zone-Infrequent Access storage class) in Dedicated Local Zones.</p>
1280    /// </note>
1281    pub fn get_storage_class(&self) -> &::std::option::Option<crate::model::StorageClass> {
1282        &self.storage_class
1283    }
1284    /// <p>The number of tags, if any, on the object, when you have the relevant permission to read object tags.</p>
1285    /// <p>You can use <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectTagging.html">GetObjectTagging</a> to retrieve the tag set associated with an object.</p><note>
1286    /// <p>This functionality is not supported for directory buckets.</p>
1287    /// </note>
1288    pub fn tag_count(mut self, input: i32) -> Self {
1289        self.tag_count = ::std::option::Option::Some(input);
1290        self
1291    }
1292    /// <p>The number of tags, if any, on the object, when you have the relevant permission to read object tags.</p>
1293    /// <p>You can use <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectTagging.html">GetObjectTagging</a> to retrieve the tag set associated with an object.</p><note>
1294    /// <p>This functionality is not supported for directory buckets.</p>
1295    /// </note>
1296    pub fn set_tag_count(mut self, input: ::std::option::Option<i32>) -> Self {
1297        self.tag_count = input;
1298        self
1299    }
1300    /// <p>The number of tags, if any, on the object, when you have the relevant permission to read object tags.</p>
1301    /// <p>You can use <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectTagging.html">GetObjectTagging</a> to retrieve the tag set associated with an object.</p><note>
1302    /// <p>This functionality is not supported for directory buckets.</p>
1303    /// </note>
1304    pub fn get_tag_count(&self) -> &::std::option::Option<i32> {
1305        &self.tag_count
1306    }
1307    /// <p>Version ID of the object.</p><note>
1308    /// <p>This functionality is not supported for directory buckets.</p>
1309    /// </note>
1310    pub fn version_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1311        self.version_id = ::std::option::Option::Some(input.into());
1312        self
1313    }
1314    /// <p>Version ID of the object.</p><note>
1315    /// <p>This functionality is not supported for directory buckets.</p>
1316    /// </note>
1317    pub fn set_version_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1318        self.version_id = input;
1319        self
1320    }
1321    /// <p>Version ID of the object.</p><note>
1322    /// <p>This functionality is not supported for directory buckets.</p>
1323    /// </note>
1324    pub fn get_version_id(&self) -> &::std::option::Option<::std::string::String> {
1325        &self.version_id
1326    }
1327    /// <p>If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata.</p><note>
1328    /// <p>This functionality is not supported for directory buckets.</p>
1329    /// </note>
1330    pub fn website_redirect_location(
1331        mut self,
1332        input: impl ::std::convert::Into<::std::string::String>,
1333    ) -> Self {
1334        self.website_redirect_location = ::std::option::Option::Some(input.into());
1335        self
1336    }
1337    /// <p>If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata.</p><note>
1338    /// <p>This functionality is not supported for directory buckets.</p>
1339    /// </note>
1340    pub fn set_website_redirect_location(
1341        mut self,
1342        input: ::std::option::Option<::std::string::String>,
1343    ) -> Self {
1344        self.website_redirect_location = input;
1345        self
1346    }
1347    /// <p>If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata.</p><note>
1348    /// <p>This functionality is not supported for directory buckets.</p>
1349    /// </note>
1350    pub fn get_website_redirect_location(&self) -> &::std::option::Option<::std::string::String> {
1351        &self.website_redirect_location
1352    }
1353    /// <p>The date and time at which the object is no longer cacheable.</p>
1354    pub fn expires_string(
1355        mut self,
1356        input: impl ::std::convert::Into<::std::string::String>,
1357    ) -> Self {
1358        self.expires_string = ::std::option::Option::Some(input.into());
1359        self
1360    }
1361    /// <p>The date and time at which the object is no longer cacheable.</p>
1362    pub fn set_expires_string(
1363        mut self,
1364        input: ::std::option::Option<::std::string::String>,
1365    ) -> Self {
1366        self.expires_string = input;
1367        self
1368    }
1369    /// <p>The date and time at which the object is no longer cacheable.</p>
1370    pub fn get_expires_string(&self) -> &::std::option::Option<::std::string::String> {
1371        &self.expires_string
1372    }
1373    /// <p>Size of the body in bytes.</p>
1374    #[allow(dead_code)]
1375    pub(crate) fn content_length(mut self, input: i64) -> Self {
1376        self.content_length = ::std::option::Option::Some(input);
1377        self
1378    }
1379    /// <p>Size of the body in bytes.</p>
1380    #[allow(dead_code)]
1381    pub(crate) fn set_content_length(mut self, input: ::std::option::Option<i64>) -> Self {
1382        self.content_length = input;
1383        self
1384    }
1385    /// <p>Size of the body in bytes.</p>
1386    #[allow(dead_code)]
1387    pub(crate) fn get_content_length(&self) -> &::std::option::Option<i64> {
1388        &self.content_length
1389    }
1390    /// <p>The portion of the object returned in the response.</p>
1391    #[allow(dead_code)]
1392    pub(crate) fn content_range(
1393        mut self,
1394        input: impl ::std::convert::Into<::std::string::String>,
1395    ) -> Self {
1396        self.content_range = ::std::option::Option::Some(input.into());
1397        self
1398    }
1399    /// <p>The portion of the object returned in the response.</p>
1400    #[allow(dead_code)]
1401    pub(crate) fn set_content_range(
1402        mut self,
1403        input: ::std::option::Option<::std::string::String>,
1404    ) -> Self {
1405        self.content_range = input;
1406        self
1407    }
1408    /// <p>The portion of the object returned in the response.</p>
1409    #[allow(dead_code)]
1410    pub(crate) fn get_content_range(&self) -> &::std::option::Option<::std::string::String> {
1411        &self.content_range
1412    }
1413    /// S3 request ID.
1414    #[allow(dead_code)]
1415    pub(crate) fn request_id(
1416        mut self,
1417        input: impl ::std::convert::Into<::std::string::String>,
1418    ) -> Self {
1419        self._request_id = ::std::option::Option::Some(input.into());
1420        self
1421    }
1422    /// S3 request ID.
1423    #[allow(dead_code)]
1424    pub(crate) fn set_request_id(
1425        mut self,
1426        input: ::std::option::Option<::std::string::String>,
1427    ) -> Self {
1428        self._request_id = input;
1429        self
1430    }
1431    /// S3 request ID.
1432    #[allow(dead_code)]
1433    pub(crate) fn get_request_id(&self) -> &::std::option::Option<::std::string::String> {
1434        &self._request_id
1435    }
1436    /// S3 extended request ID.
1437    #[allow(dead_code)]
1438    pub(crate) fn extended_request_id(
1439        mut self,
1440        input: impl ::std::convert::Into<::std::string::String>,
1441    ) -> Self {
1442        self._extended_request_id = ::std::option::Option::Some(input.into());
1443        self
1444    }
1445    /// S3 extended request ID.
1446    #[allow(dead_code)]
1447    pub(crate) fn set_extended_request_id(
1448        mut self,
1449        input: ::std::option::Option<::std::string::String>,
1450    ) -> Self {
1451        self._extended_request_id = input;
1452        self
1453    }
1454    /// S3 extended request ID.
1455    #[allow(dead_code)]
1456    pub(crate) fn get_extended_request_id(&self) -> &::std::option::Option<::std::string::String> {
1457        &self._extended_request_id
1458    }
1459    /// Consumes the builder and constructs a [`ObjectMetadata`](crate::model::ObjectMetadata).
1460    pub fn build(self) -> crate::model::ObjectMetadata {
1461        crate::model::ObjectMetadata {
1462            accept_ranges: self.accept_ranges,
1463            archive_status: self.archive_status,
1464            bucket_key_enabled: self.bucket_key_enabled,
1465            cache_control: self.cache_control,
1466            checksum_crc32: self.checksum_crc32,
1467            checksum_crc32_c: self.checksum_crc32_c,
1468            checksum_crc64_nvme: self.checksum_crc64_nvme,
1469            checksum_md5: self.checksum_md5,
1470            checksum_sha1: self.checksum_sha1,
1471            checksum_sha256: self.checksum_sha256,
1472            checksum_sha512: self.checksum_sha512,
1473            checksum_type: self.checksum_type,
1474            checksum_xxhash128: self.checksum_xxhash128,
1475            checksum_xxhash3: self.checksum_xxhash3,
1476            checksum_xxhash64: self.checksum_xxhash64,
1477            content_disposition: self.content_disposition,
1478            content_encoding: self.content_encoding,
1479            content_language: self.content_language,
1480            content_type: self.content_type,
1481            delete_marker: self.delete_marker,
1482            e_tag: self.e_tag,
1483            expiration: self.expiration,
1484            last_modified: self.last_modified,
1485            metadata: self.metadata,
1486            missing_meta: self.missing_meta,
1487            object_lock_legal_hold_status: self.object_lock_legal_hold_status,
1488            object_lock_mode: self.object_lock_mode,
1489            object_lock_retain_until_date: self.object_lock_retain_until_date,
1490            parts_count: self.parts_count,
1491            replication_status: self.replication_status,
1492            request_charged: self.request_charged,
1493            restore: self.restore,
1494            sse_customer_algorithm: self.sse_customer_algorithm,
1495            sse_customer_key_md5: self.sse_customer_key_md5,
1496            ssekms_key_id: self.ssekms_key_id,
1497            server_side_encryption: self.server_side_encryption,
1498            storage_class: self.storage_class,
1499            tag_count: self.tag_count,
1500            version_id: self.version_id,
1501            website_redirect_location: self.website_redirect_location,
1502            expires_string: self.expires_string,
1503            content_length: self.content_length,
1504            content_range: self.content_range,
1505            _request_id: self._request_id,
1506            _extended_request_id: self._extended_request_id,
1507        }
1508    }
1509}
1510impl ::std::fmt::Debug for ObjectMetadataBuilder {
1511    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1512        let mut formatter = f.debug_struct("ObjectMetadataBuilder");
1513        formatter.field("accept_ranges", &self.accept_ranges);
1514        formatter.field("archive_status", &self.archive_status);
1515        formatter.field("bucket_key_enabled", &self.bucket_key_enabled);
1516        formatter.field("cache_control", &self.cache_control);
1517        formatter.field("checksum_crc32", &self.checksum_crc32);
1518        formatter.field("checksum_crc32_c", &self.checksum_crc32_c);
1519        formatter.field("checksum_crc64_nvme", &self.checksum_crc64_nvme);
1520        formatter.field("checksum_md5", &self.checksum_md5);
1521        formatter.field("checksum_sha1", &self.checksum_sha1);
1522        formatter.field("checksum_sha256", &self.checksum_sha256);
1523        formatter.field("checksum_sha512", &self.checksum_sha512);
1524        formatter.field("checksum_type", &self.checksum_type);
1525        formatter.field("checksum_xxhash128", &self.checksum_xxhash128);
1526        formatter.field("checksum_xxhash3", &self.checksum_xxhash3);
1527        formatter.field("checksum_xxhash64", &self.checksum_xxhash64);
1528        formatter.field("content_disposition", &self.content_disposition);
1529        formatter.field("content_encoding", &self.content_encoding);
1530        formatter.field("content_language", &self.content_language);
1531        formatter.field("content_type", &self.content_type);
1532        formatter.field("delete_marker", &self.delete_marker);
1533        formatter.field("e_tag", &self.e_tag);
1534        formatter.field("expiration", &self.expiration);
1535        formatter.field("last_modified", &self.last_modified);
1536        formatter.field("metadata", &self.metadata);
1537        formatter.field("missing_meta", &self.missing_meta);
1538        formatter.field(
1539            "object_lock_legal_hold_status",
1540            &self.object_lock_legal_hold_status,
1541        );
1542        formatter.field("object_lock_mode", &self.object_lock_mode);
1543        formatter.field(
1544            "object_lock_retain_until_date",
1545            &self.object_lock_retain_until_date,
1546        );
1547        formatter.field("parts_count", &self.parts_count);
1548        formatter.field("replication_status", &self.replication_status);
1549        formatter.field("request_charged", &self.request_charged);
1550        formatter.field("restore", &self.restore);
1551        formatter.field("sse_customer_algorithm", &self.sse_customer_algorithm);
1552        formatter.field("sse_customer_key_md5", &self.sse_customer_key_md5);
1553        formatter.field("ssekms_key_id", &"*** Sensitive Data Redacted ***");
1554        formatter.field("server_side_encryption", &self.server_side_encryption);
1555        formatter.field("storage_class", &self.storage_class);
1556        formatter.field("tag_count", &self.tag_count);
1557        formatter.field("version_id", &self.version_id);
1558        formatter.field("website_redirect_location", &self.website_redirect_location);
1559        formatter.field("expires_string", &self.expires_string);
1560        formatter.field("content_length", &self.content_length);
1561        formatter.field("content_range", &self.content_range);
1562        formatter.field("_request_id", &self._request_id);
1563        formatter.field("_extended_request_id", &self._extended_request_id);
1564        formatter.finish()
1565    }
1566}