aws_sdk_s3/operation/get_object_attributes/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::get_object_attributes::_get_object_attributes_output::GetObjectAttributesOutputBuilder;
3
4pub use crate::operation::get_object_attributes::_get_object_attributes_input::GetObjectAttributesInputBuilder;
5
6impl crate::operation::get_object_attributes::builders::GetObjectAttributesInputBuilder {
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::get_object_attributes::GetObjectAttributesOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::get_object_attributes::GetObjectAttributesError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.get_object_attributes();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `GetObjectAttributes`.
24///
25/// <p>Retrieves all the metadata from an object without returning the object itself. This operation is useful if you're interested only in an object's metadata.</p>
26/// <p><code>GetObjectAttributes</code> combines the functionality of <code>HeadObject</code> and <code>ListParts</code>. All of the data returned with each of those individual calls can be returned with a single call to <code>GetObjectAttributes</code>.</p><note>
27/// <p><b>Directory buckets</b> - 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>amzn-s3-demo-bucket</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com/<i>key-name</i> </code>. Path-style requests are not supported. For more information about endpoints in Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html">Regional and Zonal endpoints for directory buckets in Availability Zones</a> in the <i>Amazon S3 User Guide</i>. For more information about endpoints in Local Zones, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html">Concepts for directory buckets in Local Zones</a> in the <i>Amazon S3 User Guide</i>.</p>
28/// </note>
29/// <dl>
30/// <dt>
31/// Permissions
32/// </dt>
33/// <dd>
34/// <ul>
35/// <li>
36/// <p><b>General purpose bucket permissions</b> - To use <code>GetObjectAttributes</code>, you must have READ access to the object. The permissions that you need to use this operation depend on whether the bucket is versioned. If the bucket is versioned, you need both the <code>s3:GetObjectVersion</code> and <code>s3:GetObjectVersionAttributes</code> permissions for this operation. If the bucket is not versioned, you need the <code>s3:GetObject</code> and <code>s3:GetObjectAttributes</code> permissions. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying Permissions in a Policy</a> in the <i>Amazon S3 User Guide</i>. If the object that you request does not exist, the error Amazon S3 returns depends on whether you also have the <code>s3:ListBucket</code> permission.</p>
37/// <ul>
38/// <li>
39/// <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> ("no such key") error.</p></li>
40/// <li>
41/// <p>If you don't have the <code>s3:ListBucket</code> permission, Amazon S3 returns an HTTP status code <code>403 Forbidden</code> ("access denied") error.</p></li>
42/// </ul></li>
43/// <li>
44/// <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>
45/// <p>If the object is encrypted with SSE-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.</p></li>
46/// </ul>
47/// </dd>
48/// <dt>
49/// Encryption
50/// </dt>
51/// <dd>
52/// <note>
53/// <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>GET</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>
54/// </note>
55/// <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>
56/// <ul>
57/// <li>
58/// <p><code>x-amz-server-side-encryption-customer-algorithm</code></p></li>
59/// <li>
60/// <p><code>x-amz-server-side-encryption-customer-key</code></p></li>
61/// <li>
62/// <p><code>x-amz-server-side-encryption-customer-key-MD5</code></p></li>
63/// </ul>
64/// <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>
65/// <p><b>Directory bucket permissions</b> - For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (<code>AES256</code>) and server-side encryption with KMS keys (SSE-KMS) (<code>aws:kms</code>). We recommend that the bucket's default encryption uses the desired encryption configuration and you don't override the bucket default encryption in your <code>CreateSession</code> requests or <code>PUT</code> object requests. Then, new objects are automatically encrypted with the desired encryption settings. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html">Protecting data with server-side encryption</a> in the <i>Amazon S3 User Guide</i>. For more information about the encryption overriding behaviors in directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-specifying-kms-encryption.html">Specifying server-side encryption with KMS for new object uploads</a>.</p>
66/// </note>
67/// </dd>
68/// <dt>
69/// Versioning
70/// </dt>
71/// <dd>
72/// <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>
73/// </dd>
74/// <dt>
75/// Conditional request headers
76/// </dt>
77/// <dd>
78/// <p>Consider the following when using request headers:</p>
79/// <ul>
80/// <li>
81/// <p>If both of the <code>If-Match</code> and <code>If-Unmodified-Since</code> headers are present in the request as follows, then Amazon S3 returns the HTTP status code <code>200 OK</code> and the data requested:</p>
82/// <ul>
83/// <li>
84/// <p><code>If-Match</code> condition evaluates to <code>true</code>.</p></li>
85/// <li>
86/// <p><code>If-Unmodified-Since</code> condition evaluates to <code>false</code>.</p></li>
87/// </ul>
88/// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p></li>
89/// <li>
90/// <p>If both of the <code>If-None-Match</code> and <code>If-Modified-Since</code> headers are present in the request as follows, then Amazon S3 returns the HTTP status code <code>304 Not Modified</code>:</p>
91/// <ul>
92/// <li>
93/// <p><code>If-None-Match</code> condition evaluates to <code>false</code>.</p></li>
94/// <li>
95/// <p><code>If-Modified-Since</code> condition evaluates to <code>true</code>.</p></li>
96/// </ul>
97/// <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p></li>
98/// </ul>
99/// </dd>
100/// <dt>
101/// HTTP Host header syntax
102/// </dt>
103/// <dd>
104/// <p><b>Directory buckets </b> - The HTTP Host header syntax is <code> <i>Bucket-name</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com</code>.</p>
105/// </dd>
106/// </dl>
107/// <p>The following actions are related to <code>GetObjectAttributes</code>:</p>
108/// <ul>
109/// <li>
110/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html">GetObject</a></p></li>
111/// <li>
112/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAcl.html">GetObjectAcl</a></p></li>
113/// <li>
114/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectLegalHold.html">GetObjectLegalHold</a></p></li>
115/// <li>
116/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectLockConfiguration.html">GetObjectLockConfiguration</a></p></li>
117/// <li>
118/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectRetention.html">GetObjectRetention</a></p></li>
119/// <li>
120/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectTagging.html">GetObjectTagging</a></p></li>
121/// <li>
122/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadObject.html">HeadObject</a></p></li>
123/// <li>
124/// <p><a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html">ListParts</a></p></li>
125/// </ul>
126#[derive(::std::clone::Clone, ::std::fmt::Debug)]
127pub struct GetObjectAttributesFluentBuilder {
128 handle: ::std::sync::Arc<crate::client::Handle>,
129 inner: crate::operation::get_object_attributes::builders::GetObjectAttributesInputBuilder,
130 config_override: ::std::option::Option<crate::config::Builder>,
131}
132impl
133 crate::client::customize::internal::CustomizableSend<
134 crate::operation::get_object_attributes::GetObjectAttributesOutput,
135 crate::operation::get_object_attributes::GetObjectAttributesError,
136 > for GetObjectAttributesFluentBuilder
137{
138 fn send(
139 self,
140 config_override: crate::config::Builder,
141 ) -> crate::client::customize::internal::BoxFuture<
142 crate::client::customize::internal::SendResult<
143 crate::operation::get_object_attributes::GetObjectAttributesOutput,
144 crate::operation::get_object_attributes::GetObjectAttributesError,
145 >,
146 > {
147 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
148 }
149}
150impl GetObjectAttributesFluentBuilder {
151 /// Creates a new `GetObjectAttributesFluentBuilder`.
152 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
153 Self {
154 handle,
155 inner: ::std::default::Default::default(),
156 config_override: ::std::option::Option::None,
157 }
158 }
159 /// Access the GetObjectAttributes as a reference.
160 pub fn as_input(&self) -> &crate::operation::get_object_attributes::builders::GetObjectAttributesInputBuilder {
161 &self.inner
162 }
163 /// Sends the request and returns the response.
164 ///
165 /// If an error occurs, an `SdkError` will be returned with additional details that
166 /// can be matched against.
167 ///
168 /// By default, any retryable failures will be retried twice. Retry behavior
169 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
170 /// set when configuring the client.
171 pub async fn send(
172 self,
173 ) -> ::std::result::Result<
174 crate::operation::get_object_attributes::GetObjectAttributesOutput,
175 ::aws_smithy_runtime_api::client::result::SdkError<
176 crate::operation::get_object_attributes::GetObjectAttributesError,
177 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
178 >,
179 > {
180 let input = self
181 .inner
182 .build()
183 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
184 let runtime_plugins = crate::operation::get_object_attributes::GetObjectAttributes::operation_runtime_plugins(
185 self.handle.runtime_plugins.clone(),
186 &self.handle.conf,
187 self.config_override,
188 );
189 crate::operation::get_object_attributes::GetObjectAttributes::orchestrate(&runtime_plugins, input).await
190 }
191
192 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
193 pub fn customize(
194 self,
195 ) -> crate::client::customize::CustomizableOperation<
196 crate::operation::get_object_attributes::GetObjectAttributesOutput,
197 crate::operation::get_object_attributes::GetObjectAttributesError,
198 Self,
199 > {
200 crate::client::customize::CustomizableOperation::new(self)
201 }
202 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
203 self.set_config_override(::std::option::Option::Some(config_override.into()));
204 self
205 }
206
207 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
208 self.config_override = config_override;
209 self
210 }
211 /// <p>The name of the bucket that contains the object.</p>
212 /// <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>
213 /// <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>
214 /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
215 /// </note>
216 /// <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>
217 pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
218 self.inner = self.inner.bucket(input.into());
219 self
220 }
221 /// <p>The name of the bucket that contains the object.</p>
222 /// <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>
223 /// <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>
224 /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
225 /// </note>
226 /// <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>
227 pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
228 self.inner = self.inner.set_bucket(input);
229 self
230 }
231 /// <p>The name of the bucket that contains the object.</p>
232 /// <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>
233 /// <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>
234 /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
235 /// </note>
236 /// <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>
237 pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
238 self.inner.get_bucket()
239 }
240 /// <p>The object key.</p>
241 pub fn key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
242 self.inner = self.inner.key(input.into());
243 self
244 }
245 /// <p>The object key.</p>
246 pub fn set_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
247 self.inner = self.inner.set_key(input);
248 self
249 }
250 /// <p>The object key.</p>
251 pub fn get_key(&self) -> &::std::option::Option<::std::string::String> {
252 self.inner.get_key()
253 }
254 /// <p>The version ID used to reference a specific version of the object.</p><note>
255 /// <p>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>
256 /// </note>
257 pub fn version_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
258 self.inner = self.inner.version_id(input.into());
259 self
260 }
261 /// <p>The version ID used to reference a specific version of the object.</p><note>
262 /// <p>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>
263 /// </note>
264 pub fn set_version_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
265 self.inner = self.inner.set_version_id(input);
266 self
267 }
268 /// <p>The version ID used to reference a specific version of the object.</p><note>
269 /// <p>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>
270 /// </note>
271 pub fn get_version_id(&self) -> &::std::option::Option<::std::string::String> {
272 self.inner.get_version_id()
273 }
274 /// <p>Sets the maximum number of parts to return.</p>
275 pub fn max_parts(mut self, input: i32) -> Self {
276 self.inner = self.inner.max_parts(input);
277 self
278 }
279 /// <p>Sets the maximum number of parts to return.</p>
280 pub fn set_max_parts(mut self, input: ::std::option::Option<i32>) -> Self {
281 self.inner = self.inner.set_max_parts(input);
282 self
283 }
284 /// <p>Sets the maximum number of parts to return.</p>
285 pub fn get_max_parts(&self) -> &::std::option::Option<i32> {
286 self.inner.get_max_parts()
287 }
288 /// <p>Specifies the part after which listing should begin. Only parts with higher part numbers will be listed.</p>
289 pub fn part_number_marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
290 self.inner = self.inner.part_number_marker(input.into());
291 self
292 }
293 /// <p>Specifies the part after which listing should begin. Only parts with higher part numbers will be listed.</p>
294 pub fn set_part_number_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
295 self.inner = self.inner.set_part_number_marker(input);
296 self
297 }
298 /// <p>Specifies the part after which listing should begin. Only parts with higher part numbers will be listed.</p>
299 pub fn get_part_number_marker(&self) -> &::std::option::Option<::std::string::String> {
300 self.inner.get_part_number_marker()
301 }
302 /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
303 /// <p>This functionality is not supported for directory buckets.</p>
304 /// </note>
305 pub fn sse_customer_algorithm(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
306 self.inner = self.inner.sse_customer_algorithm(input.into());
307 self
308 }
309 /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
310 /// <p>This functionality is not supported for directory buckets.</p>
311 /// </note>
312 pub fn set_sse_customer_algorithm(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
313 self.inner = self.inner.set_sse_customer_algorithm(input);
314 self
315 }
316 /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
317 /// <p>This functionality is not supported for directory buckets.</p>
318 /// </note>
319 pub fn get_sse_customer_algorithm(&self) -> &::std::option::Option<::std::string::String> {
320 self.inner.get_sse_customer_algorithm()
321 }
322 /// <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>
323 /// <p>This functionality is not supported for directory buckets.</p>
324 /// </note>
325 pub fn sse_customer_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
326 self.inner = self.inner.sse_customer_key(input.into());
327 self
328 }
329 /// <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>
330 /// <p>This functionality is not supported for directory buckets.</p>
331 /// </note>
332 pub fn set_sse_customer_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
333 self.inner = self.inner.set_sse_customer_key(input);
334 self
335 }
336 /// <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>
337 /// <p>This functionality is not supported for directory buckets.</p>
338 /// </note>
339 pub fn get_sse_customer_key(&self) -> &::std::option::Option<::std::string::String> {
340 self.inner.get_sse_customer_key()
341 }
342 /// <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>
343 /// <p>This functionality is not supported for directory buckets.</p>
344 /// </note>
345 pub fn sse_customer_key_md5(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
346 self.inner = self.inner.sse_customer_key_md5(input.into());
347 self
348 }
349 /// <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>
350 /// <p>This functionality is not supported for directory buckets.</p>
351 /// </note>
352 pub fn set_sse_customer_key_md5(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
353 self.inner = self.inner.set_sse_customer_key_md5(input);
354 self
355 }
356 /// <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>
357 /// <p>This functionality is not supported for directory buckets.</p>
358 /// </note>
359 pub fn get_sse_customer_key_md5(&self) -> &::std::option::Option<::std::string::String> {
360 self.inner.get_sse_customer_key_md5()
361 }
362 /// <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>
363 /// <p>This functionality is not supported for directory buckets.</p>
364 /// </note>
365 pub fn request_payer(mut self, input: crate::types::RequestPayer) -> Self {
366 self.inner = self.inner.request_payer(input);
367 self
368 }
369 /// <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>
370 /// <p>This functionality is not supported for directory buckets.</p>
371 /// </note>
372 pub fn set_request_payer(mut self, input: ::std::option::Option<crate::types::RequestPayer>) -> Self {
373 self.inner = self.inner.set_request_payer(input);
374 self
375 }
376 /// <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>
377 /// <p>This functionality is not supported for directory buckets.</p>
378 /// </note>
379 pub fn get_request_payer(&self) -> &::std::option::Option<crate::types::RequestPayer> {
380 self.inner.get_request_payer()
381 }
382 /// <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>
383 pub fn expected_bucket_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
384 self.inner = self.inner.expected_bucket_owner(input.into());
385 self
386 }
387 /// <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>
388 pub fn set_expected_bucket_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
389 self.inner = self.inner.set_expected_bucket_owner(input);
390 self
391 }
392 /// <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>
393 pub fn get_expected_bucket_owner(&self) -> &::std::option::Option<::std::string::String> {
394 self.inner.get_expected_bucket_owner()
395 }
396 ///
397 /// Appends an item to `ObjectAttributes`.
398 ///
399 /// To override the contents of this collection use [`set_object_attributes`](Self::set_object_attributes).
400 ///
401 /// <p>Specifies the fields at the root level that you want returned in the response. Fields that you do not specify are not returned.</p>
402 pub fn object_attributes(mut self, input: crate::types::ObjectAttributes) -> Self {
403 self.inner = self.inner.object_attributes(input);
404 self
405 }
406 /// <p>Specifies the fields at the root level that you want returned in the response. Fields that you do not specify are not returned.</p>
407 pub fn set_object_attributes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ObjectAttributes>>) -> Self {
408 self.inner = self.inner.set_object_attributes(input);
409 self
410 }
411 /// <p>Specifies the fields at the root level that you want returned in the response. Fields that you do not specify are not returned.</p>
412 pub fn get_object_attributes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ObjectAttributes>> {
413 self.inner.get_object_attributes()
414 }
415}