aws_sdk_s3/operation/head_object/
_head_object_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
5pub struct HeadObjectInput {
6    /// <p>The name of the bucket that contains the object.</p>
7    /// <p><b>Directory buckets</b> - When you use this operation with a directory bucket, you must use virtual-hosted-style requests in the format <code> <i>Bucket-name</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must follow the format <code> <i>bucket-base-name</i>--<i>zone-id</i>--x-s3</code> (for example, <code> <i>amzn-s3-demo-bucket</i>--<i>usw2-az1</i>--x-s3</code>). For information about bucket naming restrictions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html">Directory bucket naming rules</a> in the <i>Amazon S3 User Guide</i>.</p>
8    /// <p><b>Access points</b> - When you use this action with an access point, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests to the access point hostname. The access point hostname takes the form <i>AccessPointName</i>-<i>AccountId</i>.s3-accesspoint.<i>Region</i>.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html">Using access points</a> in the <i>Amazon S3 User Guide</i>.</p><note>
9    /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
10    /// </note>
11    /// <p><b>S3 on Outposts</b> - When you use this action with S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form <code> <i>AccessPointName</i>-<i>AccountId</i>.<i>outpostID</i>.s3-outposts.<i>Region</i>.amazonaws.com</code>. When you use this action with S3 on Outposts, the destination bucket must be the Outposts access point ARN or the access point alias. For more information about S3 on Outposts, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">What is S3 on Outposts?</a> in the <i>Amazon S3 User Guide</i>.</p>
12    pub bucket: ::std::option::Option<::std::string::String>,
13    /// <p>Return the object only if its entity tag (ETag) is the same as the one specified; otherwise, return a 412 (precondition failed) error.</p>
14    /// <p>If both of the <code>If-Match</code> and <code>If-Unmodified-Since</code> headers are present in the request as follows:</p>
15    /// <ul>
16    /// <li>
17    /// <p><code>If-Match</code> condition evaluates to <code>true</code>, and;</p></li>
18    /// <li>
19    /// <p><code>If-Unmodified-Since</code> condition evaluates to <code>false</code>;</p></li>
20    /// </ul>
21    /// <p>Then Amazon S3 returns <code>200 OK</code> and the data requested.</p>
22    /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
23    pub if_match: ::std::option::Option<::std::string::String>,
24    /// <p>Return the object only if it has been modified since the specified time; otherwise, return a 304 (not modified) error.</p>
25    /// <p>If both of the <code>If-None-Match</code> and <code>If-Modified-Since</code> headers are present in the request as follows:</p>
26    /// <ul>
27    /// <li>
28    /// <p><code>If-None-Match</code> condition evaluates to <code>false</code>, and;</p></li>
29    /// <li>
30    /// <p><code>If-Modified-Since</code> condition evaluates to <code>true</code>;</p></li>
31    /// </ul>
32    /// <p>Then Amazon S3 returns the <code>304 Not Modified</code> response code.</p>
33    /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
34    pub if_modified_since: ::std::option::Option<::aws_smithy_types::DateTime>,
35    /// <p>Return the object only if its entity tag (ETag) is different from the one specified; otherwise, return a 304 (not modified) error.</p>
36    /// <p>If both of the <code>If-None-Match</code> and <code>If-Modified-Since</code> headers are present in the request as follows:</p>
37    /// <ul>
38    /// <li>
39    /// <p><code>If-None-Match</code> condition evaluates to <code>false</code>, and;</p></li>
40    /// <li>
41    /// <p><code>If-Modified-Since</code> condition evaluates to <code>true</code>;</p></li>
42    /// </ul>
43    /// <p>Then Amazon S3 returns the <code>304 Not Modified</code> response code.</p>
44    /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
45    pub if_none_match: ::std::option::Option<::std::string::String>,
46    /// <p>Return the object only if it has not been modified since the specified time; otherwise, return a 412 (precondition failed) error.</p>
47    /// <p>If both of the <code>If-Match</code> and <code>If-Unmodified-Since</code> headers are present in the request as follows:</p>
48    /// <ul>
49    /// <li>
50    /// <p><code>If-Match</code> condition evaluates to <code>true</code>, and;</p></li>
51    /// <li>
52    /// <p><code>If-Unmodified-Since</code> condition evaluates to <code>false</code>;</p></li>
53    /// </ul>
54    /// <p>Then Amazon S3 returns <code>200 OK</code> and the data requested.</p>
55    /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
56    pub if_unmodified_since: ::std::option::Option<::aws_smithy_types::DateTime>,
57    /// <p>The object key.</p>
58    pub key: ::std::option::Option<::std::string::String>,
59    /// <p>HeadObject returns only the metadata for an object. If the Range is satisfiable, only the <code>ContentLength</code> is affected in the response. If the Range is not satisfiable, S3 returns a <code>416 - Requested Range Not Satisfiable</code> error.</p>
60    pub range: ::std::option::Option<::std::string::String>,
61    /// <p>Sets the <code>Cache-Control</code> header of the response.</p>
62    pub response_cache_control: ::std::option::Option<::std::string::String>,
63    /// <p>Sets the <code>Content-Disposition</code> header of the response.</p>
64    pub response_content_disposition: ::std::option::Option<::std::string::String>,
65    /// <p>Sets the <code>Content-Encoding</code> header of the response.</p>
66    pub response_content_encoding: ::std::option::Option<::std::string::String>,
67    /// <p>Sets the <code>Content-Language</code> header of the response.</p>
68    pub response_content_language: ::std::option::Option<::std::string::String>,
69    /// <p>Sets the <code>Content-Type</code> header of the response.</p>
70    pub response_content_type: ::std::option::Option<::std::string::String>,
71    /// <p>Sets the <code>Expires</code> header of the response.</p>
72    pub response_expires: ::std::option::Option<::aws_smithy_types::DateTime>,
73    /// <p>Version ID used to reference a specific version of the object.</p><note>
74    /// <p>For directory buckets in this API operation, only the <code>null</code> value of the version ID is supported.</p>
75    /// </note>
76    pub version_id: ::std::option::Option<::std::string::String>,
77    /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
78    /// <p>This functionality is not supported for directory buckets.</p>
79    /// </note>
80    pub sse_customer_algorithm: ::std::option::Option<::std::string::String>,
81    /// <p>Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the <code>x-amz-server-side-encryption-customer-algorithm</code> header.</p><note>
82    /// <p>This functionality is not supported for directory buckets.</p>
83    /// </note>
84    pub sse_customer_key: ::std::option::Option<::std::string::String>,
85    /// <p>Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.</p><note>
86    /// <p>This functionality is not supported for directory buckets.</p>
87    /// </note>
88    pub sse_customer_key_md5: ::std::option::Option<::std::string::String>,
89    /// <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. If either the source or destination S3 bucket has Requester Pays enabled, the requester will pay for corresponding charges to copy the object. For information about downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays Buckets</a> in the <i>Amazon S3 User Guide</i>.</p><note>
90    /// <p>This functionality is not supported for directory buckets.</p>
91    /// </note>
92    pub request_payer: ::std::option::Option<crate::types::RequestPayer>,
93    /// <p>Part number of the object being read. This is a positive integer between 1 and 10,000. Effectively performs a 'ranged' HEAD request for the part specified. Useful querying about the size of the part and the number of parts in this object.</p>
94    pub part_number: ::std::option::Option<i32>,
95    /// <p>The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code <code>403 Forbidden</code> (access denied).</p>
96    pub expected_bucket_owner: ::std::option::Option<::std::string::String>,
97    /// <p>To retrieve the checksum, this parameter must be enabled.</p>
98    /// <p><b>General purpose buckets</b> - If you enable checksum mode and the object is uploaded with a <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_Checksum.html">checksum</a> and encrypted with an Key Management Service (KMS) key, you must have permission to use the <code>kms:Decrypt</code> action to retrieve the checksum.</p>
99    /// <p><b>Directory buckets</b> - If you enable <code>ChecksumMode</code> and the object is encrypted with Amazon Web Services Key Management Service (Amazon Web Services KMS), you must also have the <code>kms:GenerateDataKey</code> and <code>kms:Decrypt</code> permissions in IAM identity-based policies and KMS key policies for the KMS key to retrieve the checksum of the object.</p>
100    pub checksum_mode: ::std::option::Option<crate::types::ChecksumMode>,
101}
102impl HeadObjectInput {
103    /// <p>The name of the bucket that contains the object.</p>
104    /// <p><b>Directory buckets</b> - When you use this operation with a directory bucket, you must use virtual-hosted-style requests in the format <code> <i>Bucket-name</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must follow the format <code> <i>bucket-base-name</i>--<i>zone-id</i>--x-s3</code> (for example, <code> <i>amzn-s3-demo-bucket</i>--<i>usw2-az1</i>--x-s3</code>). For information about bucket naming restrictions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html">Directory bucket naming rules</a> in the <i>Amazon S3 User Guide</i>.</p>
105    /// <p><b>Access points</b> - When you use this action with an access point, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests to the access point hostname. The access point hostname takes the form <i>AccessPointName</i>-<i>AccountId</i>.s3-accesspoint.<i>Region</i>.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html">Using access points</a> in the <i>Amazon S3 User Guide</i>.</p><note>
106    /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
107    /// </note>
108    /// <p><b>S3 on Outposts</b> - When you use this action with S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form <code> <i>AccessPointName</i>-<i>AccountId</i>.<i>outpostID</i>.s3-outposts.<i>Region</i>.amazonaws.com</code>. When you use this action with S3 on Outposts, the destination bucket must be the Outposts access point ARN or the access point alias. For more information about S3 on Outposts, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">What is S3 on Outposts?</a> in the <i>Amazon S3 User Guide</i>.</p>
109    pub fn bucket(&self) -> ::std::option::Option<&str> {
110        self.bucket.as_deref()
111    }
112    /// <p>Return the object only if its entity tag (ETag) is the same as the one specified; otherwise, return a 412 (precondition failed) error.</p>
113    /// <p>If both of the <code>If-Match</code> and <code>If-Unmodified-Since</code> headers are present in the request as follows:</p>
114    /// <ul>
115    /// <li>
116    /// <p><code>If-Match</code> condition evaluates to <code>true</code>, and;</p></li>
117    /// <li>
118    /// <p><code>If-Unmodified-Since</code> condition evaluates to <code>false</code>;</p></li>
119    /// </ul>
120    /// <p>Then Amazon S3 returns <code>200 OK</code> and the data requested.</p>
121    /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
122    pub fn if_match(&self) -> ::std::option::Option<&str> {
123        self.if_match.as_deref()
124    }
125    /// <p>Return the object only if it has been modified since the specified time; otherwise, return a 304 (not modified) error.</p>
126    /// <p>If both of the <code>If-None-Match</code> and <code>If-Modified-Since</code> headers are present in the request as follows:</p>
127    /// <ul>
128    /// <li>
129    /// <p><code>If-None-Match</code> condition evaluates to <code>false</code>, and;</p></li>
130    /// <li>
131    /// <p><code>If-Modified-Since</code> condition evaluates to <code>true</code>;</p></li>
132    /// </ul>
133    /// <p>Then Amazon S3 returns the <code>304 Not Modified</code> response code.</p>
134    /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
135    pub fn if_modified_since(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
136        self.if_modified_since.as_ref()
137    }
138    /// <p>Return the object only if its entity tag (ETag) is different from the one specified; otherwise, return a 304 (not modified) error.</p>
139    /// <p>If both of the <code>If-None-Match</code> and <code>If-Modified-Since</code> headers are present in the request as follows:</p>
140    /// <ul>
141    /// <li>
142    /// <p><code>If-None-Match</code> condition evaluates to <code>false</code>, and;</p></li>
143    /// <li>
144    /// <p><code>If-Modified-Since</code> condition evaluates to <code>true</code>;</p></li>
145    /// </ul>
146    /// <p>Then Amazon S3 returns the <code>304 Not Modified</code> response code.</p>
147    /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
148    pub fn if_none_match(&self) -> ::std::option::Option<&str> {
149        self.if_none_match.as_deref()
150    }
151    /// <p>Return the object only if it has not been modified since the specified time; otherwise, return a 412 (precondition failed) error.</p>
152    /// <p>If both of the <code>If-Match</code> and <code>If-Unmodified-Since</code> headers are present in the request as follows:</p>
153    /// <ul>
154    /// <li>
155    /// <p><code>If-Match</code> condition evaluates to <code>true</code>, and;</p></li>
156    /// <li>
157    /// <p><code>If-Unmodified-Since</code> condition evaluates to <code>false</code>;</p></li>
158    /// </ul>
159    /// <p>Then Amazon S3 returns <code>200 OK</code> and the data requested.</p>
160    /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
161    pub fn if_unmodified_since(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
162        self.if_unmodified_since.as_ref()
163    }
164    /// <p>The object key.</p>
165    pub fn key(&self) -> ::std::option::Option<&str> {
166        self.key.as_deref()
167    }
168    /// <p>HeadObject returns only the metadata for an object. If the Range is satisfiable, only the <code>ContentLength</code> is affected in the response. If the Range is not satisfiable, S3 returns a <code>416 - Requested Range Not Satisfiable</code> error.</p>
169    pub fn range(&self) -> ::std::option::Option<&str> {
170        self.range.as_deref()
171    }
172    /// <p>Sets the <code>Cache-Control</code> header of the response.</p>
173    pub fn response_cache_control(&self) -> ::std::option::Option<&str> {
174        self.response_cache_control.as_deref()
175    }
176    /// <p>Sets the <code>Content-Disposition</code> header of the response.</p>
177    pub fn response_content_disposition(&self) -> ::std::option::Option<&str> {
178        self.response_content_disposition.as_deref()
179    }
180    /// <p>Sets the <code>Content-Encoding</code> header of the response.</p>
181    pub fn response_content_encoding(&self) -> ::std::option::Option<&str> {
182        self.response_content_encoding.as_deref()
183    }
184    /// <p>Sets the <code>Content-Language</code> header of the response.</p>
185    pub fn response_content_language(&self) -> ::std::option::Option<&str> {
186        self.response_content_language.as_deref()
187    }
188    /// <p>Sets the <code>Content-Type</code> header of the response.</p>
189    pub fn response_content_type(&self) -> ::std::option::Option<&str> {
190        self.response_content_type.as_deref()
191    }
192    /// <p>Sets the <code>Expires</code> header of the response.</p>
193    pub fn response_expires(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
194        self.response_expires.as_ref()
195    }
196    /// <p>Version ID used to reference a specific version of the object.</p><note>
197    /// <p>For directory buckets in this API operation, only the <code>null</code> value of the version ID is supported.</p>
198    /// </note>
199    pub fn version_id(&self) -> ::std::option::Option<&str> {
200        self.version_id.as_deref()
201    }
202    /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
203    /// <p>This functionality is not supported for directory buckets.</p>
204    /// </note>
205    pub fn sse_customer_algorithm(&self) -> ::std::option::Option<&str> {
206        self.sse_customer_algorithm.as_deref()
207    }
208    /// <p>Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the <code>x-amz-server-side-encryption-customer-algorithm</code> header.</p><note>
209    /// <p>This functionality is not supported for directory buckets.</p>
210    /// </note>
211    pub fn sse_customer_key(&self) -> ::std::option::Option<&str> {
212        self.sse_customer_key.as_deref()
213    }
214    /// <p>Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.</p><note>
215    /// <p>This functionality is not supported for directory buckets.</p>
216    /// </note>
217    pub fn sse_customer_key_md5(&self) -> ::std::option::Option<&str> {
218        self.sse_customer_key_md5.as_deref()
219    }
220    /// <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. If either the source or destination S3 bucket has Requester Pays enabled, the requester will pay for corresponding charges to copy the object. For information about downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays Buckets</a> in the <i>Amazon S3 User Guide</i>.</p><note>
221    /// <p>This functionality is not supported for directory buckets.</p>
222    /// </note>
223    pub fn request_payer(&self) -> ::std::option::Option<&crate::types::RequestPayer> {
224        self.request_payer.as_ref()
225    }
226    /// <p>Part number of the object being read. This is a positive integer between 1 and 10,000. Effectively performs a 'ranged' HEAD request for the part specified. Useful querying about the size of the part and the number of parts in this object.</p>
227    pub fn part_number(&self) -> ::std::option::Option<i32> {
228        self.part_number
229    }
230    /// <p>The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code <code>403 Forbidden</code> (access denied).</p>
231    pub fn expected_bucket_owner(&self) -> ::std::option::Option<&str> {
232        self.expected_bucket_owner.as_deref()
233    }
234    /// <p>To retrieve the checksum, this parameter must be enabled.</p>
235    /// <p><b>General purpose buckets</b> - If you enable checksum mode and the object is uploaded with a <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_Checksum.html">checksum</a> and encrypted with an Key Management Service (KMS) key, you must have permission to use the <code>kms:Decrypt</code> action to retrieve the checksum.</p>
236    /// <p><b>Directory buckets</b> - If you enable <code>ChecksumMode</code> and the object is encrypted with Amazon Web Services Key Management Service (Amazon Web Services KMS), you must also have the <code>kms:GenerateDataKey</code> and <code>kms:Decrypt</code> permissions in IAM identity-based policies and KMS key policies for the KMS key to retrieve the checksum of the object.</p>
237    pub fn checksum_mode(&self) -> ::std::option::Option<&crate::types::ChecksumMode> {
238        self.checksum_mode.as_ref()
239    }
240}
241impl ::std::fmt::Debug for HeadObjectInput {
242    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
243        let mut formatter = f.debug_struct("HeadObjectInput");
244        formatter.field("bucket", &self.bucket);
245        formatter.field("if_match", &self.if_match);
246        formatter.field("if_modified_since", &self.if_modified_since);
247        formatter.field("if_none_match", &self.if_none_match);
248        formatter.field("if_unmodified_since", &self.if_unmodified_since);
249        formatter.field("key", &self.key);
250        formatter.field("range", &self.range);
251        formatter.field("response_cache_control", &self.response_cache_control);
252        formatter.field("response_content_disposition", &self.response_content_disposition);
253        formatter.field("response_content_encoding", &self.response_content_encoding);
254        formatter.field("response_content_language", &self.response_content_language);
255        formatter.field("response_content_type", &self.response_content_type);
256        formatter.field("response_expires", &self.response_expires);
257        formatter.field("version_id", &self.version_id);
258        formatter.field("sse_customer_algorithm", &self.sse_customer_algorithm);
259        formatter.field("sse_customer_key", &"*** Sensitive Data Redacted ***");
260        formatter.field("sse_customer_key_md5", &self.sse_customer_key_md5);
261        formatter.field("request_payer", &self.request_payer);
262        formatter.field("part_number", &self.part_number);
263        formatter.field("expected_bucket_owner", &self.expected_bucket_owner);
264        formatter.field("checksum_mode", &self.checksum_mode);
265        formatter.finish()
266    }
267}
268impl HeadObjectInput {
269    /// Creates a new builder-style object to manufacture [`HeadObjectInput`](crate::operation::head_object::HeadObjectInput).
270    pub fn builder() -> crate::operation::head_object::builders::HeadObjectInputBuilder {
271        crate::operation::head_object::builders::HeadObjectInputBuilder::default()
272    }
273}
274
275/// A builder for [`HeadObjectInput`](crate::operation::head_object::HeadObjectInput).
276#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
277#[non_exhaustive]
278pub struct HeadObjectInputBuilder {
279    pub(crate) bucket: ::std::option::Option<::std::string::String>,
280    pub(crate) if_match: ::std::option::Option<::std::string::String>,
281    pub(crate) if_modified_since: ::std::option::Option<::aws_smithy_types::DateTime>,
282    pub(crate) if_none_match: ::std::option::Option<::std::string::String>,
283    pub(crate) if_unmodified_since: ::std::option::Option<::aws_smithy_types::DateTime>,
284    pub(crate) key: ::std::option::Option<::std::string::String>,
285    pub(crate) range: ::std::option::Option<::std::string::String>,
286    pub(crate) response_cache_control: ::std::option::Option<::std::string::String>,
287    pub(crate) response_content_disposition: ::std::option::Option<::std::string::String>,
288    pub(crate) response_content_encoding: ::std::option::Option<::std::string::String>,
289    pub(crate) response_content_language: ::std::option::Option<::std::string::String>,
290    pub(crate) response_content_type: ::std::option::Option<::std::string::String>,
291    pub(crate) response_expires: ::std::option::Option<::aws_smithy_types::DateTime>,
292    pub(crate) version_id: ::std::option::Option<::std::string::String>,
293    pub(crate) sse_customer_algorithm: ::std::option::Option<::std::string::String>,
294    pub(crate) sse_customer_key: ::std::option::Option<::std::string::String>,
295    pub(crate) sse_customer_key_md5: ::std::option::Option<::std::string::String>,
296    pub(crate) request_payer: ::std::option::Option<crate::types::RequestPayer>,
297    pub(crate) part_number: ::std::option::Option<i32>,
298    pub(crate) expected_bucket_owner: ::std::option::Option<::std::string::String>,
299    pub(crate) checksum_mode: ::std::option::Option<crate::types::ChecksumMode>,
300}
301impl HeadObjectInputBuilder {
302    /// <p>The name of the bucket that contains the object.</p>
303    /// <p><b>Directory buckets</b> - When you use this operation with a directory bucket, you must use virtual-hosted-style requests in the format <code> <i>Bucket-name</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must follow the format <code> <i>bucket-base-name</i>--<i>zone-id</i>--x-s3</code> (for example, <code> <i>amzn-s3-demo-bucket</i>--<i>usw2-az1</i>--x-s3</code>). For information about bucket naming restrictions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html">Directory bucket naming rules</a> in the <i>Amazon S3 User Guide</i>.</p>
304    /// <p><b>Access points</b> - When you use this action with an access point, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests to the access point hostname. The access point hostname takes the form <i>AccessPointName</i>-<i>AccountId</i>.s3-accesspoint.<i>Region</i>.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html">Using access points</a> in the <i>Amazon S3 User Guide</i>.</p><note>
305    /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
306    /// </note>
307    /// <p><b>S3 on Outposts</b> - When you use this action with S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form <code> <i>AccessPointName</i>-<i>AccountId</i>.<i>outpostID</i>.s3-outposts.<i>Region</i>.amazonaws.com</code>. When you use this action with S3 on Outposts, the destination bucket must be the Outposts access point ARN or the access point alias. For more information about S3 on Outposts, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">What is S3 on Outposts?</a> in the <i>Amazon S3 User Guide</i>.</p>
308    /// This field is required.
309    pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
310        self.bucket = ::std::option::Option::Some(input.into());
311        self
312    }
313    /// <p>The name of the bucket that contains the object.</p>
314    /// <p><b>Directory buckets</b> - When you use this operation with a directory bucket, you must use virtual-hosted-style requests in the format <code> <i>Bucket-name</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must follow the format <code> <i>bucket-base-name</i>--<i>zone-id</i>--x-s3</code> (for example, <code> <i>amzn-s3-demo-bucket</i>--<i>usw2-az1</i>--x-s3</code>). For information about bucket naming restrictions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html">Directory bucket naming rules</a> in the <i>Amazon S3 User Guide</i>.</p>
315    /// <p><b>Access points</b> - When you use this action with an access point, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests to the access point hostname. The access point hostname takes the form <i>AccessPointName</i>-<i>AccountId</i>.s3-accesspoint.<i>Region</i>.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html">Using access points</a> in the <i>Amazon S3 User Guide</i>.</p><note>
316    /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
317    /// </note>
318    /// <p><b>S3 on Outposts</b> - When you use this action with S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form <code> <i>AccessPointName</i>-<i>AccountId</i>.<i>outpostID</i>.s3-outposts.<i>Region</i>.amazonaws.com</code>. When you use this action with S3 on Outposts, the destination bucket must be the Outposts access point ARN or the access point alias. For more information about S3 on Outposts, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">What is S3 on Outposts?</a> in the <i>Amazon S3 User Guide</i>.</p>
319    pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
320        self.bucket = input;
321        self
322    }
323    /// <p>The name of the bucket that contains the object.</p>
324    /// <p><b>Directory buckets</b> - When you use this operation with a directory bucket, you must use virtual-hosted-style requests in the format <code> <i>Bucket-name</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must follow the format <code> <i>bucket-base-name</i>--<i>zone-id</i>--x-s3</code> (for example, <code> <i>amzn-s3-demo-bucket</i>--<i>usw2-az1</i>--x-s3</code>). For information about bucket naming restrictions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html">Directory bucket naming rules</a> in the <i>Amazon S3 User Guide</i>.</p>
325    /// <p><b>Access points</b> - When you use this action with an access point, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests to the access point hostname. The access point hostname takes the form <i>AccessPointName</i>-<i>AccountId</i>.s3-accesspoint.<i>Region</i>.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html">Using access points</a> in the <i>Amazon S3 User Guide</i>.</p><note>
326    /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
327    /// </note>
328    /// <p><b>S3 on Outposts</b> - When you use this action with S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form <code> <i>AccessPointName</i>-<i>AccountId</i>.<i>outpostID</i>.s3-outposts.<i>Region</i>.amazonaws.com</code>. When you use this action with S3 on Outposts, the destination bucket must be the Outposts access point ARN or the access point alias. For more information about S3 on Outposts, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">What is S3 on Outposts?</a> in the <i>Amazon S3 User Guide</i>.</p>
329    pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
330        &self.bucket
331    }
332    /// <p>Return the object only if its entity tag (ETag) is the same as the one specified; otherwise, return a 412 (precondition failed) error.</p>
333    /// <p>If both of the <code>If-Match</code> and <code>If-Unmodified-Since</code> headers are present in the request as follows:</p>
334    /// <ul>
335    /// <li>
336    /// <p><code>If-Match</code> condition evaluates to <code>true</code>, and;</p></li>
337    /// <li>
338    /// <p><code>If-Unmodified-Since</code> condition evaluates to <code>false</code>;</p></li>
339    /// </ul>
340    /// <p>Then Amazon S3 returns <code>200 OK</code> and the data requested.</p>
341    /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
342    pub fn if_match(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
343        self.if_match = ::std::option::Option::Some(input.into());
344        self
345    }
346    /// <p>Return the object only if its entity tag (ETag) is the same as the one specified; otherwise, return a 412 (precondition failed) error.</p>
347    /// <p>If both of the <code>If-Match</code> and <code>If-Unmodified-Since</code> headers are present in the request as follows:</p>
348    /// <ul>
349    /// <li>
350    /// <p><code>If-Match</code> condition evaluates to <code>true</code>, and;</p></li>
351    /// <li>
352    /// <p><code>If-Unmodified-Since</code> condition evaluates to <code>false</code>;</p></li>
353    /// </ul>
354    /// <p>Then Amazon S3 returns <code>200 OK</code> and the data requested.</p>
355    /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
356    pub fn set_if_match(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
357        self.if_match = input;
358        self
359    }
360    /// <p>Return the object only if its entity tag (ETag) is the same as the one specified; otherwise, return a 412 (precondition failed) error.</p>
361    /// <p>If both of the <code>If-Match</code> and <code>If-Unmodified-Since</code> headers are present in the request as follows:</p>
362    /// <ul>
363    /// <li>
364    /// <p><code>If-Match</code> condition evaluates to <code>true</code>, and;</p></li>
365    /// <li>
366    /// <p><code>If-Unmodified-Since</code> condition evaluates to <code>false</code>;</p></li>
367    /// </ul>
368    /// <p>Then Amazon S3 returns <code>200 OK</code> and the data requested.</p>
369    /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
370    pub fn get_if_match(&self) -> &::std::option::Option<::std::string::String> {
371        &self.if_match
372    }
373    /// <p>Return the object only if it has been modified since the specified time; otherwise, return a 304 (not modified) error.</p>
374    /// <p>If both of the <code>If-None-Match</code> and <code>If-Modified-Since</code> headers are present in the request as follows:</p>
375    /// <ul>
376    /// <li>
377    /// <p><code>If-None-Match</code> condition evaluates to <code>false</code>, and;</p></li>
378    /// <li>
379    /// <p><code>If-Modified-Since</code> condition evaluates to <code>true</code>;</p></li>
380    /// </ul>
381    /// <p>Then Amazon S3 returns the <code>304 Not Modified</code> response code.</p>
382    /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
383    pub fn if_modified_since(mut self, input: ::aws_smithy_types::DateTime) -> Self {
384        self.if_modified_since = ::std::option::Option::Some(input);
385        self
386    }
387    /// <p>Return the object only if it has been modified since the specified time; otherwise, return a 304 (not modified) error.</p>
388    /// <p>If both of the <code>If-None-Match</code> and <code>If-Modified-Since</code> headers are present in the request as follows:</p>
389    /// <ul>
390    /// <li>
391    /// <p><code>If-None-Match</code> condition evaluates to <code>false</code>, and;</p></li>
392    /// <li>
393    /// <p><code>If-Modified-Since</code> condition evaluates to <code>true</code>;</p></li>
394    /// </ul>
395    /// <p>Then Amazon S3 returns the <code>304 Not Modified</code> response code.</p>
396    /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
397    pub fn set_if_modified_since(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
398        self.if_modified_since = input;
399        self
400    }
401    /// <p>Return the object only if it has been modified since the specified time; otherwise, return a 304 (not modified) error.</p>
402    /// <p>If both of the <code>If-None-Match</code> and <code>If-Modified-Since</code> headers are present in the request as follows:</p>
403    /// <ul>
404    /// <li>
405    /// <p><code>If-None-Match</code> condition evaluates to <code>false</code>, and;</p></li>
406    /// <li>
407    /// <p><code>If-Modified-Since</code> condition evaluates to <code>true</code>;</p></li>
408    /// </ul>
409    /// <p>Then Amazon S3 returns the <code>304 Not Modified</code> response code.</p>
410    /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
411    pub fn get_if_modified_since(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
412        &self.if_modified_since
413    }
414    /// <p>Return the object only if its entity tag (ETag) is different from the one specified; otherwise, return a 304 (not modified) error.</p>
415    /// <p>If both of the <code>If-None-Match</code> and <code>If-Modified-Since</code> headers are present in the request as follows:</p>
416    /// <ul>
417    /// <li>
418    /// <p><code>If-None-Match</code> condition evaluates to <code>false</code>, and;</p></li>
419    /// <li>
420    /// <p><code>If-Modified-Since</code> condition evaluates to <code>true</code>;</p></li>
421    /// </ul>
422    /// <p>Then Amazon S3 returns the <code>304 Not Modified</code> response code.</p>
423    /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
424    pub fn if_none_match(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
425        self.if_none_match = ::std::option::Option::Some(input.into());
426        self
427    }
428    /// <p>Return the object only if its entity tag (ETag) is different from the one specified; otherwise, return a 304 (not modified) error.</p>
429    /// <p>If both of the <code>If-None-Match</code> and <code>If-Modified-Since</code> headers are present in the request as follows:</p>
430    /// <ul>
431    /// <li>
432    /// <p><code>If-None-Match</code> condition evaluates to <code>false</code>, and;</p></li>
433    /// <li>
434    /// <p><code>If-Modified-Since</code> condition evaluates to <code>true</code>;</p></li>
435    /// </ul>
436    /// <p>Then Amazon S3 returns the <code>304 Not Modified</code> response code.</p>
437    /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
438    pub fn set_if_none_match(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
439        self.if_none_match = input;
440        self
441    }
442    /// <p>Return the object only if its entity tag (ETag) is different from the one specified; otherwise, return a 304 (not modified) error.</p>
443    /// <p>If both of the <code>If-None-Match</code> and <code>If-Modified-Since</code> headers are present in the request as follows:</p>
444    /// <ul>
445    /// <li>
446    /// <p><code>If-None-Match</code> condition evaluates to <code>false</code>, and;</p></li>
447    /// <li>
448    /// <p><code>If-Modified-Since</code> condition evaluates to <code>true</code>;</p></li>
449    /// </ul>
450    /// <p>Then Amazon S3 returns the <code>304 Not Modified</code> response code.</p>
451    /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
452    pub fn get_if_none_match(&self) -> &::std::option::Option<::std::string::String> {
453        &self.if_none_match
454    }
455    /// <p>Return the object only if it has not been modified since the specified time; otherwise, return a 412 (precondition failed) error.</p>
456    /// <p>If both of the <code>If-Match</code> and <code>If-Unmodified-Since</code> headers are present in the request as follows:</p>
457    /// <ul>
458    /// <li>
459    /// <p><code>If-Match</code> condition evaluates to <code>true</code>, and;</p></li>
460    /// <li>
461    /// <p><code>If-Unmodified-Since</code> condition evaluates to <code>false</code>;</p></li>
462    /// </ul>
463    /// <p>Then Amazon S3 returns <code>200 OK</code> and the data requested.</p>
464    /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
465    pub fn if_unmodified_since(mut self, input: ::aws_smithy_types::DateTime) -> Self {
466        self.if_unmodified_since = ::std::option::Option::Some(input);
467        self
468    }
469    /// <p>Return the object only if it has not been modified since the specified time; otherwise, return a 412 (precondition failed) error.</p>
470    /// <p>If both of the <code>If-Match</code> and <code>If-Unmodified-Since</code> headers are present in the request as follows:</p>
471    /// <ul>
472    /// <li>
473    /// <p><code>If-Match</code> condition evaluates to <code>true</code>, and;</p></li>
474    /// <li>
475    /// <p><code>If-Unmodified-Since</code> condition evaluates to <code>false</code>;</p></li>
476    /// </ul>
477    /// <p>Then Amazon S3 returns <code>200 OK</code> and the data requested.</p>
478    /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
479    pub fn set_if_unmodified_since(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
480        self.if_unmodified_since = input;
481        self
482    }
483    /// <p>Return the object only if it has not been modified since the specified time; otherwise, return a 412 (precondition failed) error.</p>
484    /// <p>If both of the <code>If-Match</code> and <code>If-Unmodified-Since</code> headers are present in the request as follows:</p>
485    /// <ul>
486    /// <li>
487    /// <p><code>If-Match</code> condition evaluates to <code>true</code>, and;</p></li>
488    /// <li>
489    /// <p><code>If-Unmodified-Since</code> condition evaluates to <code>false</code>;</p></li>
490    /// </ul>
491    /// <p>Then Amazon S3 returns <code>200 OK</code> and the data requested.</p>
492    /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
493    pub fn get_if_unmodified_since(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
494        &self.if_unmodified_since
495    }
496    /// <p>The object key.</p>
497    /// This field is required.
498    pub fn key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
499        self.key = ::std::option::Option::Some(input.into());
500        self
501    }
502    /// <p>The object key.</p>
503    pub fn set_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
504        self.key = input;
505        self
506    }
507    /// <p>The object key.</p>
508    pub fn get_key(&self) -> &::std::option::Option<::std::string::String> {
509        &self.key
510    }
511    /// <p>HeadObject returns only the metadata for an object. If the Range is satisfiable, only the <code>ContentLength</code> is affected in the response. If the Range is not satisfiable, S3 returns a <code>416 - Requested Range Not Satisfiable</code> error.</p>
512    pub fn range(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
513        self.range = ::std::option::Option::Some(input.into());
514        self
515    }
516    /// <p>HeadObject returns only the metadata for an object. If the Range is satisfiable, only the <code>ContentLength</code> is affected in the response. If the Range is not satisfiable, S3 returns a <code>416 - Requested Range Not Satisfiable</code> error.</p>
517    pub fn set_range(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
518        self.range = input;
519        self
520    }
521    /// <p>HeadObject returns only the metadata for an object. If the Range is satisfiable, only the <code>ContentLength</code> is affected in the response. If the Range is not satisfiable, S3 returns a <code>416 - Requested Range Not Satisfiable</code> error.</p>
522    pub fn get_range(&self) -> &::std::option::Option<::std::string::String> {
523        &self.range
524    }
525    /// <p>Sets the <code>Cache-Control</code> header of the response.</p>
526    pub fn response_cache_control(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
527        self.response_cache_control = ::std::option::Option::Some(input.into());
528        self
529    }
530    /// <p>Sets the <code>Cache-Control</code> header of the response.</p>
531    pub fn set_response_cache_control(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
532        self.response_cache_control = input;
533        self
534    }
535    /// <p>Sets the <code>Cache-Control</code> header of the response.</p>
536    pub fn get_response_cache_control(&self) -> &::std::option::Option<::std::string::String> {
537        &self.response_cache_control
538    }
539    /// <p>Sets the <code>Content-Disposition</code> header of the response.</p>
540    pub fn response_content_disposition(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
541        self.response_content_disposition = ::std::option::Option::Some(input.into());
542        self
543    }
544    /// <p>Sets the <code>Content-Disposition</code> header of the response.</p>
545    pub fn set_response_content_disposition(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
546        self.response_content_disposition = input;
547        self
548    }
549    /// <p>Sets the <code>Content-Disposition</code> header of the response.</p>
550    pub fn get_response_content_disposition(&self) -> &::std::option::Option<::std::string::String> {
551        &self.response_content_disposition
552    }
553    /// <p>Sets the <code>Content-Encoding</code> header of the response.</p>
554    pub fn response_content_encoding(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
555        self.response_content_encoding = ::std::option::Option::Some(input.into());
556        self
557    }
558    /// <p>Sets the <code>Content-Encoding</code> header of the response.</p>
559    pub fn set_response_content_encoding(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
560        self.response_content_encoding = input;
561        self
562    }
563    /// <p>Sets the <code>Content-Encoding</code> header of the response.</p>
564    pub fn get_response_content_encoding(&self) -> &::std::option::Option<::std::string::String> {
565        &self.response_content_encoding
566    }
567    /// <p>Sets the <code>Content-Language</code> header of the response.</p>
568    pub fn response_content_language(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
569        self.response_content_language = ::std::option::Option::Some(input.into());
570        self
571    }
572    /// <p>Sets the <code>Content-Language</code> header of the response.</p>
573    pub fn set_response_content_language(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
574        self.response_content_language = input;
575        self
576    }
577    /// <p>Sets the <code>Content-Language</code> header of the response.</p>
578    pub fn get_response_content_language(&self) -> &::std::option::Option<::std::string::String> {
579        &self.response_content_language
580    }
581    /// <p>Sets the <code>Content-Type</code> header of the response.</p>
582    pub fn response_content_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
583        self.response_content_type = ::std::option::Option::Some(input.into());
584        self
585    }
586    /// <p>Sets the <code>Content-Type</code> header of the response.</p>
587    pub fn set_response_content_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
588        self.response_content_type = input;
589        self
590    }
591    /// <p>Sets the <code>Content-Type</code> header of the response.</p>
592    pub fn get_response_content_type(&self) -> &::std::option::Option<::std::string::String> {
593        &self.response_content_type
594    }
595    /// <p>Sets the <code>Expires</code> header of the response.</p>
596    pub fn response_expires(mut self, input: ::aws_smithy_types::DateTime) -> Self {
597        self.response_expires = ::std::option::Option::Some(input);
598        self
599    }
600    /// <p>Sets the <code>Expires</code> header of the response.</p>
601    pub fn set_response_expires(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
602        self.response_expires = input;
603        self
604    }
605    /// <p>Sets the <code>Expires</code> header of the response.</p>
606    pub fn get_response_expires(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
607        &self.response_expires
608    }
609    /// <p>Version ID used to reference a specific version of the object.</p><note>
610    /// <p>For directory buckets in this API operation, only the <code>null</code> value of the version ID is supported.</p>
611    /// </note>
612    pub fn version_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
613        self.version_id = ::std::option::Option::Some(input.into());
614        self
615    }
616    /// <p>Version ID used to reference a specific version of the object.</p><note>
617    /// <p>For directory buckets in this API operation, only the <code>null</code> value of the version ID is supported.</p>
618    /// </note>
619    pub fn set_version_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
620        self.version_id = input;
621        self
622    }
623    /// <p>Version ID used to reference a specific version of the object.</p><note>
624    /// <p>For directory buckets in this API operation, only the <code>null</code> value of the version ID is supported.</p>
625    /// </note>
626    pub fn get_version_id(&self) -> &::std::option::Option<::std::string::String> {
627        &self.version_id
628    }
629    /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
630    /// <p>This functionality is not supported for directory buckets.</p>
631    /// </note>
632    pub fn sse_customer_algorithm(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
633        self.sse_customer_algorithm = ::std::option::Option::Some(input.into());
634        self
635    }
636    /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
637    /// <p>This functionality is not supported for directory buckets.</p>
638    /// </note>
639    pub fn set_sse_customer_algorithm(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
640        self.sse_customer_algorithm = input;
641        self
642    }
643    /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
644    /// <p>This functionality is not supported for directory buckets.</p>
645    /// </note>
646    pub fn get_sse_customer_algorithm(&self) -> &::std::option::Option<::std::string::String> {
647        &self.sse_customer_algorithm
648    }
649    /// <p>Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the <code>x-amz-server-side-encryption-customer-algorithm</code> header.</p><note>
650    /// <p>This functionality is not supported for directory buckets.</p>
651    /// </note>
652    pub fn sse_customer_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
653        self.sse_customer_key = ::std::option::Option::Some(input.into());
654        self
655    }
656    /// <p>Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the <code>x-amz-server-side-encryption-customer-algorithm</code> header.</p><note>
657    /// <p>This functionality is not supported for directory buckets.</p>
658    /// </note>
659    pub fn set_sse_customer_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
660        self.sse_customer_key = input;
661        self
662    }
663    /// <p>Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the <code>x-amz-server-side-encryption-customer-algorithm</code> header.</p><note>
664    /// <p>This functionality is not supported for directory buckets.</p>
665    /// </note>
666    pub fn get_sse_customer_key(&self) -> &::std::option::Option<::std::string::String> {
667        &self.sse_customer_key
668    }
669    /// <p>Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.</p><note>
670    /// <p>This functionality is not supported for directory buckets.</p>
671    /// </note>
672    pub fn sse_customer_key_md5(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
673        self.sse_customer_key_md5 = ::std::option::Option::Some(input.into());
674        self
675    }
676    /// <p>Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.</p><note>
677    /// <p>This functionality is not supported for directory buckets.</p>
678    /// </note>
679    pub fn set_sse_customer_key_md5(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
680        self.sse_customer_key_md5 = input;
681        self
682    }
683    /// <p>Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.</p><note>
684    /// <p>This functionality is not supported for directory buckets.</p>
685    /// </note>
686    pub fn get_sse_customer_key_md5(&self) -> &::std::option::Option<::std::string::String> {
687        &self.sse_customer_key_md5
688    }
689    /// <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. If either the source or destination S3 bucket has Requester Pays enabled, the requester will pay for corresponding charges to copy the object. For information about downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays Buckets</a> in the <i>Amazon S3 User Guide</i>.</p><note>
690    /// <p>This functionality is not supported for directory buckets.</p>
691    /// </note>
692    pub fn request_payer(mut self, input: crate::types::RequestPayer) -> Self {
693        self.request_payer = ::std::option::Option::Some(input);
694        self
695    }
696    /// <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. If either the source or destination S3 bucket has Requester Pays enabled, the requester will pay for corresponding charges to copy the object. For information about downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays Buckets</a> in the <i>Amazon S3 User Guide</i>.</p><note>
697    /// <p>This functionality is not supported for directory buckets.</p>
698    /// </note>
699    pub fn set_request_payer(mut self, input: ::std::option::Option<crate::types::RequestPayer>) -> Self {
700        self.request_payer = input;
701        self
702    }
703    /// <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. If either the source or destination S3 bucket has Requester Pays enabled, the requester will pay for corresponding charges to copy the object. For information about downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays Buckets</a> in the <i>Amazon S3 User Guide</i>.</p><note>
704    /// <p>This functionality is not supported for directory buckets.</p>
705    /// </note>
706    pub fn get_request_payer(&self) -> &::std::option::Option<crate::types::RequestPayer> {
707        &self.request_payer
708    }
709    /// <p>Part number of the object being read. This is a positive integer between 1 and 10,000. Effectively performs a 'ranged' HEAD request for the part specified. Useful querying about the size of the part and the number of parts in this object.</p>
710    pub fn part_number(mut self, input: i32) -> Self {
711        self.part_number = ::std::option::Option::Some(input);
712        self
713    }
714    /// <p>Part number of the object being read. This is a positive integer between 1 and 10,000. Effectively performs a 'ranged' HEAD request for the part specified. Useful querying about the size of the part and the number of parts in this object.</p>
715    pub fn set_part_number(mut self, input: ::std::option::Option<i32>) -> Self {
716        self.part_number = input;
717        self
718    }
719    /// <p>Part number of the object being read. This is a positive integer between 1 and 10,000. Effectively performs a 'ranged' HEAD request for the part specified. Useful querying about the size of the part and the number of parts in this object.</p>
720    pub fn get_part_number(&self) -> &::std::option::Option<i32> {
721        &self.part_number
722    }
723    /// <p>The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code <code>403 Forbidden</code> (access denied).</p>
724    pub fn expected_bucket_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
725        self.expected_bucket_owner = ::std::option::Option::Some(input.into());
726        self
727    }
728    /// <p>The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code <code>403 Forbidden</code> (access denied).</p>
729    pub fn set_expected_bucket_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
730        self.expected_bucket_owner = input;
731        self
732    }
733    /// <p>The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code <code>403 Forbidden</code> (access denied).</p>
734    pub fn get_expected_bucket_owner(&self) -> &::std::option::Option<::std::string::String> {
735        &self.expected_bucket_owner
736    }
737    /// <p>To retrieve the checksum, this parameter must be enabled.</p>
738    /// <p><b>General purpose buckets</b> - If you enable checksum mode and the object is uploaded with a <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_Checksum.html">checksum</a> and encrypted with an Key Management Service (KMS) key, you must have permission to use the <code>kms:Decrypt</code> action to retrieve the checksum.</p>
739    /// <p><b>Directory buckets</b> - If you enable <code>ChecksumMode</code> and the object is encrypted with Amazon Web Services Key Management Service (Amazon Web Services KMS), you must also have the <code>kms:GenerateDataKey</code> and <code>kms:Decrypt</code> permissions in IAM identity-based policies and KMS key policies for the KMS key to retrieve the checksum of the object.</p>
740    pub fn checksum_mode(mut self, input: crate::types::ChecksumMode) -> Self {
741        self.checksum_mode = ::std::option::Option::Some(input);
742        self
743    }
744    /// <p>To retrieve the checksum, this parameter must be enabled.</p>
745    /// <p><b>General purpose buckets</b> - If you enable checksum mode and the object is uploaded with a <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_Checksum.html">checksum</a> and encrypted with an Key Management Service (KMS) key, you must have permission to use the <code>kms:Decrypt</code> action to retrieve the checksum.</p>
746    /// <p><b>Directory buckets</b> - If you enable <code>ChecksumMode</code> and the object is encrypted with Amazon Web Services Key Management Service (Amazon Web Services KMS), you must also have the <code>kms:GenerateDataKey</code> and <code>kms:Decrypt</code> permissions in IAM identity-based policies and KMS key policies for the KMS key to retrieve the checksum of the object.</p>
747    pub fn set_checksum_mode(mut self, input: ::std::option::Option<crate::types::ChecksumMode>) -> Self {
748        self.checksum_mode = input;
749        self
750    }
751    /// <p>To retrieve the checksum, this parameter must be enabled.</p>
752    /// <p><b>General purpose buckets</b> - If you enable checksum mode and the object is uploaded with a <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_Checksum.html">checksum</a> and encrypted with an Key Management Service (KMS) key, you must have permission to use the <code>kms:Decrypt</code> action to retrieve the checksum.</p>
753    /// <p><b>Directory buckets</b> - If you enable <code>ChecksumMode</code> and the object is encrypted with Amazon Web Services Key Management Service (Amazon Web Services KMS), you must also have the <code>kms:GenerateDataKey</code> and <code>kms:Decrypt</code> permissions in IAM identity-based policies and KMS key policies for the KMS key to retrieve the checksum of the object.</p>
754    pub fn get_checksum_mode(&self) -> &::std::option::Option<crate::types::ChecksumMode> {
755        &self.checksum_mode
756    }
757    /// Consumes the builder and constructs a [`HeadObjectInput`](crate::operation::head_object::HeadObjectInput).
758    pub fn build(self) -> ::std::result::Result<crate::operation::head_object::HeadObjectInput, ::aws_smithy_types::error::operation::BuildError> {
759        ::std::result::Result::Ok(crate::operation::head_object::HeadObjectInput {
760            bucket: self.bucket,
761            if_match: self.if_match,
762            if_modified_since: self.if_modified_since,
763            if_none_match: self.if_none_match,
764            if_unmodified_since: self.if_unmodified_since,
765            key: self.key,
766            range: self.range,
767            response_cache_control: self.response_cache_control,
768            response_content_disposition: self.response_content_disposition,
769            response_content_encoding: self.response_content_encoding,
770            response_content_language: self.response_content_language,
771            response_content_type: self.response_content_type,
772            response_expires: self.response_expires,
773            version_id: self.version_id,
774            sse_customer_algorithm: self.sse_customer_algorithm,
775            sse_customer_key: self.sse_customer_key,
776            sse_customer_key_md5: self.sse_customer_key_md5,
777            request_payer: self.request_payer,
778            part_number: self.part_number,
779            expected_bucket_owner: self.expected_bucket_owner,
780            checksum_mode: self.checksum_mode,
781        })
782    }
783}
784impl ::std::fmt::Debug for HeadObjectInputBuilder {
785    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
786        let mut formatter = f.debug_struct("HeadObjectInputBuilder");
787        formatter.field("bucket", &self.bucket);
788        formatter.field("if_match", &self.if_match);
789        formatter.field("if_modified_since", &self.if_modified_since);
790        formatter.field("if_none_match", &self.if_none_match);
791        formatter.field("if_unmodified_since", &self.if_unmodified_since);
792        formatter.field("key", &self.key);
793        formatter.field("range", &self.range);
794        formatter.field("response_cache_control", &self.response_cache_control);
795        formatter.field("response_content_disposition", &self.response_content_disposition);
796        formatter.field("response_content_encoding", &self.response_content_encoding);
797        formatter.field("response_content_language", &self.response_content_language);
798        formatter.field("response_content_type", &self.response_content_type);
799        formatter.field("response_expires", &self.response_expires);
800        formatter.field("version_id", &self.version_id);
801        formatter.field("sse_customer_algorithm", &self.sse_customer_algorithm);
802        formatter.field("sse_customer_key", &"*** Sensitive Data Redacted ***");
803        formatter.field("sse_customer_key_md5", &self.sse_customer_key_md5);
804        formatter.field("request_payer", &self.request_payer);
805        formatter.field("part_number", &self.part_number);
806        formatter.field("expected_bucket_owner", &self.expected_bucket_owner);
807        formatter.field("checksum_mode", &self.checksum_mode);
808        formatter.finish()
809    }
810}