aws_sdk_s3/operation/head_object/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::head_object::_head_object_output::HeadObjectOutputBuilder;
3
4pub use crate::operation::head_object::_head_object_input::HeadObjectInputBuilder;
5
6impl crate::operation::head_object::builders::HeadObjectInputBuilder {
7 /// Sends a request with this input using the given client.
8 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::head_object::HeadObjectOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::head_object::HeadObjectError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.head_object();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `HeadObject`.
24///
25/// <p>The <code>HEAD</code> operation retrieves metadata from an object without returning the object itself. This operation is useful if you're interested only in an object's metadata.</p><note>
26/// <p>A <code>HEAD</code> request has the same options as a <code>GET</code> operation on an object. The response is identical to the <code>GET</code> response except that there is no response body. Because of this, if the <code>HEAD</code> request generates an error, it returns a generic code, such as <code>400 Bad Request</code>, <code>403 Forbidden</code>, <code>404 Not Found</code>, <code>405 Method Not Allowed</code>, <code>412 Precondition Failed</code>, or <code>304 Not Modified</code>. It's not possible to retrieve the exact exception of these error codes.</p>
27/// </note>
28/// <p>Request headers are limited to 8 KB in size. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/RESTCommonRequestHeaders.html">Common Request Headers</a>.</p>
29/// <dl>
30/// <dt>
31/// Permissions
32/// </dt>
33/// <dd>
34/// <p></p>
35/// <ul>
36/// <li>
37/// <p><b>General purpose bucket permissions</b> - To use <code>HEAD</code>, you must have the <code>s3:GetObject</code> permission. You need the relevant read object (or version) permission for this operation. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/list_amazons3.html">Actions, resources, and condition keys for Amazon S3</a> in the <i>Amazon S3 User Guide</i>.</p>
38/// <p>If the object you request doesn't exist, the error that Amazon S3 returns depends on whether you also have the <code>s3:ListBucket</code> permission.</p>
39/// <ul>
40/// <li>
41/// <p>If you have the <code>s3:ListBucket</code> permission on the bucket, Amazon S3 returns an HTTP status code <code>404 Not Found</code> error.</p></li>
42/// <li>
43/// <p>If you don’t have the <code>s3:ListBucket</code> permission, Amazon S3 returns an HTTP status code <code>403 Forbidden</code> error.</p></li>
44/// </ul></li>
45/// <li>
46/// <p><b>Directory bucket permissions</b> - To grant access to this API operation on a directory bucket, we recommend that you use the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html"> <code>CreateSession</code> </a> API operation for session-based authorization. Specifically, you grant the <code>s3express:CreateSession</code> permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the <code>CreateSession</code> API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another <code>CreateSession</code> API call to generate a new session token for use. Amazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html"> <code>CreateSession</code> </a>.</p></li>
47/// </ul>
48/// </dd>
49/// <dt>
50/// Encryption
51/// </dt>
52/// <dd>
53/// <note>
54/// <p>Encryption request headers, like <code>x-amz-server-side-encryption</code>, should not be sent for <code>HEAD</code> requests if your object uses server-side encryption with Key Management Service (KMS) keys (SSE-KMS), dual-layer server-side encryption with Amazon Web Services KMS keys (DSSE-KMS), or server-side encryption with Amazon S3 managed encryption keys (SSE-S3). The <code>x-amz-server-side-encryption</code> header is used when you <code>PUT</code> an object to S3 and want to specify the encryption method. If you include this header in a <code>HEAD</code> request for an object that uses these types of keys, you’ll get an HTTP <code>400 Bad Request</code> error. It's because the encryption method can't be changed when you retrieve the object.</p>
55/// </note>
56/// <p>If you encrypt an object by using server-side encryption with customer-provided encryption keys (SSE-C) when you store the object in Amazon S3, then when you retrieve the metadata from the object, you must use the following headers to provide the encryption key for the server to be able to retrieve the object's metadata. The headers are:</p>
57/// <ul>
58/// <li>
59/// <p><code>x-amz-server-side-encryption-customer-algorithm</code></p></li>
60/// <li>
61/// <p><code>x-amz-server-side-encryption-customer-key</code></p></li>
62/// <li>
63/// <p><code>x-amz-server-side-encryption-customer-key-MD5</code></p></li>
64/// </ul>
65/// <p>For more information about SSE-C, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Server-Side Encryption (Using Customer-Provided Encryption Keys)</a> in the <i>Amazon S3 User Guide</i>.</p><note>
66/// <p><b>Directory bucket permissions</b> - For directory buckets, only server-side encryption with Amazon S3 managed keys (SSE-S3) (<code>AES256</code>) is supported.</p>
67/// </note>
68/// </dd>
69/// <dt>
70/// Versioning
71/// </dt>
72/// <dd>
73/// <ul>
74/// <li>
75/// <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>
76/// <li>
77/// <p>If the specified version 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>
78/// </ul><note>
79/// <ul>
80/// <li>
81/// <p><b>Directory buckets</b> - Delete marker is not supported by directory buckets.</p></li>
82/// <li>
83/// <p><b>Directory buckets</b> - S3 Versioning isn't enabled and supported for directory buckets. For this API operation, only the <code>null</code> value of the version ID is supported by directory buckets. You can only specify <code>null</code> to the <code>versionId</code> query parameter in the request.</p></li>
84/// </ul>
85/// </note>
86/// </dd>
87/// <dt>
88/// HTTP Host header syntax
89/// </dt>
90/// <dd>
91/// <p><b>Directory buckets </b> - The HTTP Host header syntax is <code> <i>Bucket_name</i>.s3express-<i>az_id</i>.<i>region</i>.amazonaws.com</code>.</p><note>
92/// <p>For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>bucket_name</i>.s3express-<i>az_id</i>.<i>region</i>.amazonaws.com/<i>key-name</i> </code>. Path-style requests are not supported. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Regions-and-Zones.html">Regional and Zonal endpoints</a> in the <i>Amazon S3 User Guide</i>.</p>
93/// </note>
94/// </dd>
95/// </dl>
96/// <p>The following actions are related to <code>HeadObject</code>:</p>
97/// <ul>
98/// <li>
99/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html">GetObject</a></p></li>
100/// <li>
101/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAttributes.html">GetObjectAttributes</a></p></li>
102/// </ul>
103#[derive(::std::clone::Clone, ::std::fmt::Debug)]
104pub struct HeadObjectFluentBuilder {
105 handle: ::std::sync::Arc<crate::client::Handle>,
106 inner: crate::operation::head_object::builders::HeadObjectInputBuilder,
107 config_override: ::std::option::Option<crate::config::Builder>,
108}
109impl
110 crate::client::customize::internal::CustomizableSend<
111 crate::operation::head_object::HeadObjectOutput,
112 crate::operation::head_object::HeadObjectError,
113 > for HeadObjectFluentBuilder
114{
115 fn send(
116 self,
117 config_override: crate::config::Builder,
118 ) -> crate::client::customize::internal::BoxFuture<
119 crate::client::customize::internal::SendResult<
120 crate::operation::head_object::HeadObjectOutput,
121 crate::operation::head_object::HeadObjectError,
122 >,
123 > {
124 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
125 }
126}
127impl HeadObjectFluentBuilder {
128 /// Creates a new `HeadObjectFluentBuilder`.
129 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
130 Self {
131 handle,
132 inner: ::std::default::Default::default(),
133 config_override: ::std::option::Option::None,
134 }
135 }
136 /// Access the HeadObject as a reference.
137 pub fn as_input(&self) -> &crate::operation::head_object::builders::HeadObjectInputBuilder {
138 &self.inner
139 }
140 /// Sends the request and returns the response.
141 ///
142 /// If an error occurs, an `SdkError` will be returned with additional details that
143 /// can be matched against.
144 ///
145 /// By default, any retryable failures will be retried twice. Retry behavior
146 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
147 /// set when configuring the client.
148 pub async fn send(
149 self,
150 ) -> ::std::result::Result<
151 crate::operation::head_object::HeadObjectOutput,
152 ::aws_smithy_runtime_api::client::result::SdkError<
153 crate::operation::head_object::HeadObjectError,
154 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
155 >,
156 > {
157 let input = self
158 .inner
159 .build()
160 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
161 let runtime_plugins = crate::operation::head_object::HeadObject::operation_runtime_plugins(
162 self.handle.runtime_plugins.clone(),
163 &self.handle.conf,
164 self.config_override,
165 );
166 crate::operation::head_object::HeadObject::orchestrate(&runtime_plugins, input).await
167 }
168
169 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
170 pub fn customize(
171 self,
172 ) -> crate::client::customize::CustomizableOperation<
173 crate::operation::head_object::HeadObjectOutput,
174 crate::operation::head_object::HeadObjectError,
175 Self,
176 > {
177 crate::client::customize::CustomizableOperation::new(self)
178 }
179 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
180 self.set_config_override(::std::option::Option::Some(config_override.into()));
181 self
182 }
183
184 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
185 self.config_override = config_override;
186 self
187 }
188 ///
189 /// Creates a presigned request for this operation.
190 ///
191 /// The `presigning_config` provides additional presigning-specific config values, such as the
192 /// amount of time the request should be valid for after creation.
193 ///
194 /// Presigned requests can be given to other users or applications to access a resource or perform
195 /// an operation without having access to the AWS security credentials.
196 ///
197 /// _Important:_ If you're using credentials that can expire, such as those from STS AssumeRole or SSO, then
198 /// the presigned request can only be valid for as long as the credentials used to create it are.
199 ///
200 #[allow(unused_mut)]
201 pub async fn presigned(
202 mut self,
203 presigning_config: crate::presigning::PresigningConfig,
204 ) -> ::std::result::Result<
205 crate::presigning::PresignedRequest,
206 ::aws_smithy_runtime_api::client::result::SdkError<
207 crate::operation::head_object::HeadObjectError,
208 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
209 >,
210 > {
211 let runtime_plugins = crate::operation::head_object::HeadObject::operation_runtime_plugins(
212 self.handle.runtime_plugins.clone(),
213 &self.handle.conf,
214 self.config_override,
215 )
216 .with_client_plugin(crate::presigning_interceptors::SigV4PresigningRuntimePlugin::new(
217 presigning_config,
218 ::aws_sigv4::http_request::SignableBody::UnsignedPayload,
219 ));
220
221 let input = self
222 .inner
223 .build()
224 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
225 let mut context = crate::operation::head_object::HeadObject::orchestrate_with_stop_point(
226 &runtime_plugins,
227 input,
228 ::aws_smithy_runtime::client::orchestrator::StopPoint::BeforeTransmit,
229 )
230 .await
231 .map_err(|err| {
232 err.map_service_error(|err| {
233 err.downcast::<crate::operation::head_object::HeadObjectError>()
234 .expect("correct error type")
235 })
236 })?;
237 let request = context.take_request().expect("request set before transmit");
238 crate::presigning::PresignedRequest::new(request).map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)
239 }
240 /// <p>The name of the bucket that contains the object.</p>
241 /// <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>az_id</i>.<i>region</i>.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format <code> <i>bucket_base_name</i>--<i>az-id</i>--x-s3</code> (for example, <code> <i>DOC-EXAMPLE-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>
242 /// <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>
243 /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
244 /// </note>
245 /// <p><b>S3 on Outposts</b> - When you use this action with Amazon 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 through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, 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>
246 pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
247 self.inner = self.inner.bucket(input.into());
248 self
249 }
250 /// <p>The name of the bucket that contains the object.</p>
251 /// <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>az_id</i>.<i>region</i>.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format <code> <i>bucket_base_name</i>--<i>az-id</i>--x-s3</code> (for example, <code> <i>DOC-EXAMPLE-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>
252 /// <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>
253 /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
254 /// </note>
255 /// <p><b>S3 on Outposts</b> - When you use this action with Amazon 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 through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, 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>
256 pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
257 self.inner = self.inner.set_bucket(input);
258 self
259 }
260 /// <p>The name of the bucket that contains the object.</p>
261 /// <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>az_id</i>.<i>region</i>.amazonaws.com</code>. Path-style requests are not supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format <code> <i>bucket_base_name</i>--<i>az-id</i>--x-s3</code> (for example, <code> <i>DOC-EXAMPLE-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>
262 /// <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>
263 /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
264 /// </note>
265 /// <p><b>S3 on Outposts</b> - When you use this action with Amazon 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 through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, 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>
266 pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
267 self.inner.get_bucket()
268 }
269 /// <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>
270 /// <p>If both of the <code>If-Match</code> and <code>If-Unmodified-Since</code> headers are present in the request as follows:</p>
271 /// <ul>
272 /// <li>
273 /// <p><code>If-Match</code> condition evaluates to <code>true</code>, and;</p></li>
274 /// <li>
275 /// <p><code>If-Unmodified-Since</code> condition evaluates to <code>false</code>;</p></li>
276 /// </ul>
277 /// <p>Then Amazon S3 returns <code>200 OK</code> and the data requested.</p>
278 /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
279 pub fn if_match(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
280 self.inner = self.inner.if_match(input.into());
281 self
282 }
283 /// <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>
284 /// <p>If both of the <code>If-Match</code> and <code>If-Unmodified-Since</code> headers are present in the request as follows:</p>
285 /// <ul>
286 /// <li>
287 /// <p><code>If-Match</code> condition evaluates to <code>true</code>, and;</p></li>
288 /// <li>
289 /// <p><code>If-Unmodified-Since</code> condition evaluates to <code>false</code>;</p></li>
290 /// </ul>
291 /// <p>Then Amazon S3 returns <code>200 OK</code> and the data requested.</p>
292 /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
293 pub fn set_if_match(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
294 self.inner = self.inner.set_if_match(input);
295 self
296 }
297 /// <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>
298 /// <p>If both of the <code>If-Match</code> and <code>If-Unmodified-Since</code> headers are present in the request as follows:</p>
299 /// <ul>
300 /// <li>
301 /// <p><code>If-Match</code> condition evaluates to <code>true</code>, and;</p></li>
302 /// <li>
303 /// <p><code>If-Unmodified-Since</code> condition evaluates to <code>false</code>;</p></li>
304 /// </ul>
305 /// <p>Then Amazon S3 returns <code>200 OK</code> and the data requested.</p>
306 /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
307 pub fn get_if_match(&self) -> &::std::option::Option<::std::string::String> {
308 self.inner.get_if_match()
309 }
310 /// <p>Return the object only if it has been modified since the specified time; otherwise, return a 304 (not modified) error.</p>
311 /// <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>
312 /// <ul>
313 /// <li>
314 /// <p><code>If-None-Match</code> condition evaluates to <code>false</code>, and;</p></li>
315 /// <li>
316 /// <p><code>If-Modified-Since</code> condition evaluates to <code>true</code>;</p></li>
317 /// </ul>
318 /// <p>Then Amazon S3 returns the <code>304 Not Modified</code> response code.</p>
319 /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
320 pub fn if_modified_since(mut self, input: ::aws_smithy_types::DateTime) -> Self {
321 self.inner = self.inner.if_modified_since(input);
322 self
323 }
324 /// <p>Return the object only if it has been modified since the specified time; otherwise, return a 304 (not modified) error.</p>
325 /// <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>
326 /// <ul>
327 /// <li>
328 /// <p><code>If-None-Match</code> condition evaluates to <code>false</code>, and;</p></li>
329 /// <li>
330 /// <p><code>If-Modified-Since</code> condition evaluates to <code>true</code>;</p></li>
331 /// </ul>
332 /// <p>Then Amazon S3 returns the <code>304 Not Modified</code> response code.</p>
333 /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
334 pub fn set_if_modified_since(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
335 self.inner = self.inner.set_if_modified_since(input);
336 self
337 }
338 /// <p>Return the object only if it has been modified since the specified time; otherwise, return a 304 (not modified) error.</p>
339 /// <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>
340 /// <ul>
341 /// <li>
342 /// <p><code>If-None-Match</code> condition evaluates to <code>false</code>, and;</p></li>
343 /// <li>
344 /// <p><code>If-Modified-Since</code> condition evaluates to <code>true</code>;</p></li>
345 /// </ul>
346 /// <p>Then Amazon S3 returns the <code>304 Not Modified</code> response code.</p>
347 /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
348 pub fn get_if_modified_since(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
349 self.inner.get_if_modified_since()
350 }
351 /// <p>Return the object only if its entity tag (ETag) is different from the one specified; otherwise, return a 304 (not modified) error.</p>
352 /// <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>
353 /// <ul>
354 /// <li>
355 /// <p><code>If-None-Match</code> condition evaluates to <code>false</code>, and;</p></li>
356 /// <li>
357 /// <p><code>If-Modified-Since</code> condition evaluates to <code>true</code>;</p></li>
358 /// </ul>
359 /// <p>Then Amazon S3 returns the <code>304 Not Modified</code> response code.</p>
360 /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
361 pub fn if_none_match(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
362 self.inner = self.inner.if_none_match(input.into());
363 self
364 }
365 /// <p>Return the object only if its entity tag (ETag) is different from the one specified; otherwise, return a 304 (not modified) error.</p>
366 /// <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>
367 /// <ul>
368 /// <li>
369 /// <p><code>If-None-Match</code> condition evaluates to <code>false</code>, and;</p></li>
370 /// <li>
371 /// <p><code>If-Modified-Since</code> condition evaluates to <code>true</code>;</p></li>
372 /// </ul>
373 /// <p>Then Amazon S3 returns the <code>304 Not Modified</code> response code.</p>
374 /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
375 pub fn set_if_none_match(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
376 self.inner = self.inner.set_if_none_match(input);
377 self
378 }
379 /// <p>Return the object only if its entity tag (ETag) is different from the one specified; otherwise, return a 304 (not modified) error.</p>
380 /// <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>
381 /// <ul>
382 /// <li>
383 /// <p><code>If-None-Match</code> condition evaluates to <code>false</code>, and;</p></li>
384 /// <li>
385 /// <p><code>If-Modified-Since</code> condition evaluates to <code>true</code>;</p></li>
386 /// </ul>
387 /// <p>Then Amazon S3 returns the <code>304 Not Modified</code> response code.</p>
388 /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
389 pub fn get_if_none_match(&self) -> &::std::option::Option<::std::string::String> {
390 self.inner.get_if_none_match()
391 }
392 /// <p>Return the object only if it has not been modified since the specified time; otherwise, return a 412 (precondition failed) error.</p>
393 /// <p>If both of the <code>If-Match</code> and <code>If-Unmodified-Since</code> headers are present in the request as follows:</p>
394 /// <ul>
395 /// <li>
396 /// <p><code>If-Match</code> condition evaluates to <code>true</code>, and;</p></li>
397 /// <li>
398 /// <p><code>If-Unmodified-Since</code> condition evaluates to <code>false</code>;</p></li>
399 /// </ul>
400 /// <p>Then Amazon S3 returns <code>200 OK</code> and the data requested.</p>
401 /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
402 pub fn if_unmodified_since(mut self, input: ::aws_smithy_types::DateTime) -> Self {
403 self.inner = self.inner.if_unmodified_since(input);
404 self
405 }
406 /// <p>Return the object only if it has not been modified since the specified time; otherwise, return a 412 (precondition failed) error.</p>
407 /// <p>If both of the <code>If-Match</code> and <code>If-Unmodified-Since</code> headers are present in the request as follows:</p>
408 /// <ul>
409 /// <li>
410 /// <p><code>If-Match</code> condition evaluates to <code>true</code>, and;</p></li>
411 /// <li>
412 /// <p><code>If-Unmodified-Since</code> condition evaluates to <code>false</code>;</p></li>
413 /// </ul>
414 /// <p>Then Amazon S3 returns <code>200 OK</code> and the data requested.</p>
415 /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
416 pub fn set_if_unmodified_since(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
417 self.inner = self.inner.set_if_unmodified_since(input);
418 self
419 }
420 /// <p>Return the object only if it has not been modified since the specified time; otherwise, return a 412 (precondition failed) error.</p>
421 /// <p>If both of the <code>If-Match</code> and <code>If-Unmodified-Since</code> headers are present in the request as follows:</p>
422 /// <ul>
423 /// <li>
424 /// <p><code>If-Match</code> condition evaluates to <code>true</code>, and;</p></li>
425 /// <li>
426 /// <p><code>If-Unmodified-Since</code> condition evaluates to <code>false</code>;</p></li>
427 /// </ul>
428 /// <p>Then Amazon S3 returns <code>200 OK</code> and the data requested.</p>
429 /// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
430 pub fn get_if_unmodified_since(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
431 self.inner.get_if_unmodified_since()
432 }
433 /// <p>The object key.</p>
434 pub fn key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
435 self.inner = self.inner.key(input.into());
436 self
437 }
438 /// <p>The object key.</p>
439 pub fn set_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
440 self.inner = self.inner.set_key(input);
441 self
442 }
443 /// <p>The object key.</p>
444 pub fn get_key(&self) -> &::std::option::Option<::std::string::String> {
445 self.inner.get_key()
446 }
447 /// <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>
448 pub fn range(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
449 self.inner = self.inner.range(input.into());
450 self
451 }
452 /// <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>
453 pub fn set_range(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
454 self.inner = self.inner.set_range(input);
455 self
456 }
457 /// <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>
458 pub fn get_range(&self) -> &::std::option::Option<::std::string::String> {
459 self.inner.get_range()
460 }
461 /// <p>Sets the <code>Cache-Control</code> header of the response.</p>
462 pub fn response_cache_control(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
463 self.inner = self.inner.response_cache_control(input.into());
464 self
465 }
466 /// <p>Sets the <code>Cache-Control</code> header of the response.</p>
467 pub fn set_response_cache_control(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
468 self.inner = self.inner.set_response_cache_control(input);
469 self
470 }
471 /// <p>Sets the <code>Cache-Control</code> header of the response.</p>
472 pub fn get_response_cache_control(&self) -> &::std::option::Option<::std::string::String> {
473 self.inner.get_response_cache_control()
474 }
475 /// <p>Sets the <code>Content-Disposition</code> header of the response.</p>
476 pub fn response_content_disposition(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
477 self.inner = self.inner.response_content_disposition(input.into());
478 self
479 }
480 /// <p>Sets the <code>Content-Disposition</code> header of the response.</p>
481 pub fn set_response_content_disposition(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
482 self.inner = self.inner.set_response_content_disposition(input);
483 self
484 }
485 /// <p>Sets the <code>Content-Disposition</code> header of the response.</p>
486 pub fn get_response_content_disposition(&self) -> &::std::option::Option<::std::string::String> {
487 self.inner.get_response_content_disposition()
488 }
489 /// <p>Sets the <code>Content-Encoding</code> header of the response.</p>
490 pub fn response_content_encoding(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
491 self.inner = self.inner.response_content_encoding(input.into());
492 self
493 }
494 /// <p>Sets the <code>Content-Encoding</code> header of the response.</p>
495 pub fn set_response_content_encoding(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
496 self.inner = self.inner.set_response_content_encoding(input);
497 self
498 }
499 /// <p>Sets the <code>Content-Encoding</code> header of the response.</p>
500 pub fn get_response_content_encoding(&self) -> &::std::option::Option<::std::string::String> {
501 self.inner.get_response_content_encoding()
502 }
503 /// <p>Sets the <code>Content-Language</code> header of the response.</p>
504 pub fn response_content_language(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
505 self.inner = self.inner.response_content_language(input.into());
506 self
507 }
508 /// <p>Sets the <code>Content-Language</code> header of the response.</p>
509 pub fn set_response_content_language(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
510 self.inner = self.inner.set_response_content_language(input);
511 self
512 }
513 /// <p>Sets the <code>Content-Language</code> header of the response.</p>
514 pub fn get_response_content_language(&self) -> &::std::option::Option<::std::string::String> {
515 self.inner.get_response_content_language()
516 }
517 /// <p>Sets the <code>Content-Type</code> header of the response.</p>
518 pub fn response_content_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
519 self.inner = self.inner.response_content_type(input.into());
520 self
521 }
522 /// <p>Sets the <code>Content-Type</code> header of the response.</p>
523 pub fn set_response_content_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
524 self.inner = self.inner.set_response_content_type(input);
525 self
526 }
527 /// <p>Sets the <code>Content-Type</code> header of the response.</p>
528 pub fn get_response_content_type(&self) -> &::std::option::Option<::std::string::String> {
529 self.inner.get_response_content_type()
530 }
531 /// <p>Sets the <code>Expires</code> header of the response.</p>
532 pub fn response_expires(mut self, input: ::aws_smithy_types::DateTime) -> Self {
533 self.inner = self.inner.response_expires(input);
534 self
535 }
536 /// <p>Sets the <code>Expires</code> header of the response.</p>
537 pub fn set_response_expires(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
538 self.inner = self.inner.set_response_expires(input);
539 self
540 }
541 /// <p>Sets the <code>Expires</code> header of the response.</p>
542 pub fn get_response_expires(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
543 self.inner.get_response_expires()
544 }
545 /// <p>Version ID used to reference a specific version of the object.</p><note>
546 /// <p>For directory buckets in this API operation, only the <code>null</code> value of the version ID is supported.</p>
547 /// </note>
548 pub fn version_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
549 self.inner = self.inner.version_id(input.into());
550 self
551 }
552 /// <p>Version ID used to reference a specific version of the object.</p><note>
553 /// <p>For directory buckets in this API operation, only the <code>null</code> value of the version ID is supported.</p>
554 /// </note>
555 pub fn set_version_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
556 self.inner = self.inner.set_version_id(input);
557 self
558 }
559 /// <p>Version ID used to reference a specific version of the object.</p><note>
560 /// <p>For directory buckets in this API operation, only the <code>null</code> value of the version ID is supported.</p>
561 /// </note>
562 pub fn get_version_id(&self) -> &::std::option::Option<::std::string::String> {
563 self.inner.get_version_id()
564 }
565 /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
566 /// <p>This functionality is not supported for directory buckets.</p>
567 /// </note>
568 pub fn sse_customer_algorithm(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
569 self.inner = self.inner.sse_customer_algorithm(input.into());
570 self
571 }
572 /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
573 /// <p>This functionality is not supported for directory buckets.</p>
574 /// </note>
575 pub fn set_sse_customer_algorithm(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
576 self.inner = self.inner.set_sse_customer_algorithm(input);
577 self
578 }
579 /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
580 /// <p>This functionality is not supported for directory buckets.</p>
581 /// </note>
582 pub fn get_sse_customer_algorithm(&self) -> &::std::option::Option<::std::string::String> {
583 self.inner.get_sse_customer_algorithm()
584 }
585 /// <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>
586 /// <p>This functionality is not supported for directory buckets.</p>
587 /// </note>
588 pub fn sse_customer_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
589 self.inner = self.inner.sse_customer_key(input.into());
590 self
591 }
592 /// <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>
593 /// <p>This functionality is not supported for directory buckets.</p>
594 /// </note>
595 pub fn set_sse_customer_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
596 self.inner = self.inner.set_sse_customer_key(input);
597 self
598 }
599 /// <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>
600 /// <p>This functionality is not supported for directory buckets.</p>
601 /// </note>
602 pub fn get_sse_customer_key(&self) -> &::std::option::Option<::std::string::String> {
603 self.inner.get_sse_customer_key()
604 }
605 /// <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>
606 /// <p>This functionality is not supported for directory buckets.</p>
607 /// </note>
608 pub fn sse_customer_key_md5(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
609 self.inner = self.inner.sse_customer_key_md5(input.into());
610 self
611 }
612 /// <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>
613 /// <p>This functionality is not supported for directory buckets.</p>
614 /// </note>
615 pub fn set_sse_customer_key_md5(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
616 self.inner = self.inner.set_sse_customer_key_md5(input);
617 self
618 }
619 /// <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>
620 /// <p>This functionality is not supported for directory buckets.</p>
621 /// </note>
622 pub fn get_sse_customer_key_md5(&self) -> &::std::option::Option<::std::string::String> {
623 self.inner.get_sse_customer_key_md5()
624 }
625 /// <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>
626 /// <p>This functionality is not supported for directory buckets.</p>
627 /// </note>
628 pub fn request_payer(mut self, input: crate::types::RequestPayer) -> Self {
629 self.inner = self.inner.request_payer(input);
630 self
631 }
632 /// <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>
633 /// <p>This functionality is not supported for directory buckets.</p>
634 /// </note>
635 pub fn set_request_payer(mut self, input: ::std::option::Option<crate::types::RequestPayer>) -> Self {
636 self.inner = self.inner.set_request_payer(input);
637 self
638 }
639 /// <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>
640 /// <p>This functionality is not supported for directory buckets.</p>
641 /// </note>
642 pub fn get_request_payer(&self) -> &::std::option::Option<crate::types::RequestPayer> {
643 self.inner.get_request_payer()
644 }
645 /// <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>
646 pub fn part_number(mut self, input: i32) -> Self {
647 self.inner = self.inner.part_number(input);
648 self
649 }
650 /// <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>
651 pub fn set_part_number(mut self, input: ::std::option::Option<i32>) -> Self {
652 self.inner = self.inner.set_part_number(input);
653 self
654 }
655 /// <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>
656 pub fn get_part_number(&self) -> &::std::option::Option<i32> {
657 self.inner.get_part_number()
658 }
659 /// <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>
660 pub fn expected_bucket_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
661 self.inner = self.inner.expected_bucket_owner(input.into());
662 self
663 }
664 /// <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>
665 pub fn set_expected_bucket_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
666 self.inner = self.inner.set_expected_bucket_owner(input);
667 self
668 }
669 /// <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>
670 pub fn get_expected_bucket_owner(&self) -> &::std::option::Option<::std::string::String> {
671 self.inner.get_expected_bucket_owner()
672 }
673 /// <p>To retrieve the checksum, this parameter must be enabled.</p>
674 /// <p>In addition, 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>
675 pub fn checksum_mode(mut self, input: crate::types::ChecksumMode) -> Self {
676 self.inner = self.inner.checksum_mode(input);
677 self
678 }
679 /// <p>To retrieve the checksum, this parameter must be enabled.</p>
680 /// <p>In addition, 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>
681 pub fn set_checksum_mode(mut self, input: ::std::option::Option<crate::types::ChecksumMode>) -> Self {
682 self.inner = self.inner.set_checksum_mode(input);
683 self
684 }
685 /// <p>To retrieve the checksum, this parameter must be enabled.</p>
686 /// <p>In addition, 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>
687 pub fn get_checksum_mode(&self) -> &::std::option::Option<crate::types::ChecksumMode> {
688 self.inner.get_checksum_mode()
689 }
690}
691
692impl crate::client::customize::internal::CustomizablePresigned<crate::operation::head_object::HeadObjectError> for HeadObjectFluentBuilder {
693 fn presign(
694 self,
695 config_override: crate::config::Builder,
696 presigning_config: crate::presigning::PresigningConfig,
697 ) -> crate::client::customize::internal::BoxFuture<
698 crate::client::customize::internal::SendResult<crate::presigning::PresignedRequest, crate::operation::head_object::HeadObjectError>,
699 > {
700 ::std::boxed::Box::pin(async move { self.config_override(config_override).presigned(presigning_config).await })
701 }
702}