aws_sdk_s3/operation/upload_part/_upload_part_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]
4pub struct UploadPartInput {
5 /// <p>Object data.</p>
6 pub body: ::aws_smithy_types::byte_stream::ByteStream,
7 /// <p>The name of the bucket to which the multipart upload was initiated.</p>
8 /// <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>
9 /// <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>
10 /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
11 /// </note>
12 /// <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>
13 pub bucket: ::std::option::Option<::std::string::String>,
14 /// <p>Size of the body in bytes. This parameter is useful when the size of the body cannot be determined automatically.</p>
15 pub content_length: ::std::option::Option<i64>,
16 /// <p>The base64-encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.</p><note>
17 /// <p>This functionality is not supported for directory buckets.</p>
18 /// </note>
19 pub content_md5: ::std::option::Option<::std::string::String>,
20 /// <p>Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding <code>x-amz-checksum</code> or <code>x-amz-trailer</code> header sent. Otherwise, Amazon S3 fails the request with the HTTP status code <code>400 Bad Request</code>. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
21 /// <p>If you provide an individual checksum, Amazon S3 ignores any provided <code>ChecksumAlgorithm</code> parameter.</p>
22 /// <p>This checksum algorithm must be the same for all parts and it match the checksum value supplied in the <code>CreateMultipartUpload</code> request.</p>
23 pub checksum_algorithm: ::std::option::Option<crate::types::ChecksumAlgorithm>,
24 /// <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC32 checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
25 pub checksum_crc32: ::std::option::Option<::std::string::String>,
26 /// <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC32C checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
27 pub checksum_crc32_c: ::std::option::Option<::std::string::String>,
28 /// <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
29 pub checksum_sha1: ::std::option::Option<::std::string::String>,
30 /// <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
31 pub checksum_sha256: ::std::option::Option<::std::string::String>,
32 /// <p>Object key for which the multipart upload was initiated.</p>
33 pub key: ::std::option::Option<::std::string::String>,
34 /// <p>Part number of part being uploaded. This is a positive integer between 1 and 10,000.</p>
35 pub part_number: ::std::option::Option<i32>,
36 /// <p>Upload ID identifying the multipart upload whose part is being uploaded.</p>
37 pub upload_id: ::std::option::Option<::std::string::String>,
38 /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
39 /// <p>This functionality is not supported for directory buckets.</p>
40 /// </note>
41 pub sse_customer_algorithm: ::std::option::Option<::std::string::String>,
42 /// <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 header</code>. This must be the same encryption key specified in the initiate multipart upload request.</p><note>
43 /// <p>This functionality is not supported for directory buckets.</p>
44 /// </note>
45 pub sse_customer_key: ::std::option::Option<::std::string::String>,
46 /// <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>
47 /// <p>This functionality is not supported for directory buckets.</p>
48 /// </note>
49 pub sse_customer_key_md5: ::std::option::Option<::std::string::String>,
50 /// <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>
51 /// <p>This functionality is not supported for directory buckets.</p>
52 /// </note>
53 pub request_payer: ::std::option::Option<crate::types::RequestPayer>,
54 /// <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>
55 pub expected_bucket_owner: ::std::option::Option<::std::string::String>,
56}
57impl UploadPartInput {
58 /// <p>Object data.</p>
59 pub fn body(&self) -> &::aws_smithy_types::byte_stream::ByteStream {
60 &self.body
61 }
62 /// <p>The name of the bucket to which the multipart upload was initiated.</p>
63 /// <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>
64 /// <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>
65 /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
66 /// </note>
67 /// <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>
68 pub fn bucket(&self) -> ::std::option::Option<&str> {
69 self.bucket.as_deref()
70 }
71 /// <p>Size of the body in bytes. This parameter is useful when the size of the body cannot be determined automatically.</p>
72 pub fn content_length(&self) -> ::std::option::Option<i64> {
73 self.content_length
74 }
75 /// <p>The base64-encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.</p><note>
76 /// <p>This functionality is not supported for directory buckets.</p>
77 /// </note>
78 pub fn content_md5(&self) -> ::std::option::Option<&str> {
79 self.content_md5.as_deref()
80 }
81 /// <p>Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding <code>x-amz-checksum</code> or <code>x-amz-trailer</code> header sent. Otherwise, Amazon S3 fails the request with the HTTP status code <code>400 Bad Request</code>. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
82 /// <p>If you provide an individual checksum, Amazon S3 ignores any provided <code>ChecksumAlgorithm</code> parameter.</p>
83 /// <p>This checksum algorithm must be the same for all parts and it match the checksum value supplied in the <code>CreateMultipartUpload</code> request.</p>
84 pub fn checksum_algorithm(&self) -> ::std::option::Option<&crate::types::ChecksumAlgorithm> {
85 self.checksum_algorithm.as_ref()
86 }
87 /// <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC32 checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
88 pub fn checksum_crc32(&self) -> ::std::option::Option<&str> {
89 self.checksum_crc32.as_deref()
90 }
91 /// <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC32C checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
92 pub fn checksum_crc32_c(&self) -> ::std::option::Option<&str> {
93 self.checksum_crc32_c.as_deref()
94 }
95 /// <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
96 pub fn checksum_sha1(&self) -> ::std::option::Option<&str> {
97 self.checksum_sha1.as_deref()
98 }
99 /// <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
100 pub fn checksum_sha256(&self) -> ::std::option::Option<&str> {
101 self.checksum_sha256.as_deref()
102 }
103 /// <p>Object key for which the multipart upload was initiated.</p>
104 pub fn key(&self) -> ::std::option::Option<&str> {
105 self.key.as_deref()
106 }
107 /// <p>Part number of part being uploaded. This is a positive integer between 1 and 10,000.</p>
108 pub fn part_number(&self) -> ::std::option::Option<i32> {
109 self.part_number
110 }
111 /// <p>Upload ID identifying the multipart upload whose part is being uploaded.</p>
112 pub fn upload_id(&self) -> ::std::option::Option<&str> {
113 self.upload_id.as_deref()
114 }
115 /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
116 /// <p>This functionality is not supported for directory buckets.</p>
117 /// </note>
118 pub fn sse_customer_algorithm(&self) -> ::std::option::Option<&str> {
119 self.sse_customer_algorithm.as_deref()
120 }
121 /// <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 header</code>. This must be the same encryption key specified in the initiate multipart upload request.</p><note>
122 /// <p>This functionality is not supported for directory buckets.</p>
123 /// </note>
124 pub fn sse_customer_key(&self) -> ::std::option::Option<&str> {
125 self.sse_customer_key.as_deref()
126 }
127 /// <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>
128 /// <p>This functionality is not supported for directory buckets.</p>
129 /// </note>
130 pub fn sse_customer_key_md5(&self) -> ::std::option::Option<&str> {
131 self.sse_customer_key_md5.as_deref()
132 }
133 /// <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>
134 /// <p>This functionality is not supported for directory buckets.</p>
135 /// </note>
136 pub fn request_payer(&self) -> ::std::option::Option<&crate::types::RequestPayer> {
137 self.request_payer.as_ref()
138 }
139 /// <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>
140 pub fn expected_bucket_owner(&self) -> ::std::option::Option<&str> {
141 self.expected_bucket_owner.as_deref()
142 }
143}
144impl ::std::fmt::Debug for UploadPartInput {
145 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
146 let mut formatter = f.debug_struct("UploadPartInput");
147 formatter.field("body", &self.body);
148 formatter.field("bucket", &self.bucket);
149 formatter.field("content_length", &self.content_length);
150 formatter.field("content_md5", &self.content_md5);
151 formatter.field("checksum_algorithm", &self.checksum_algorithm);
152 formatter.field("checksum_crc32", &self.checksum_crc32);
153 formatter.field("checksum_crc32_c", &self.checksum_crc32_c);
154 formatter.field("checksum_sha1", &self.checksum_sha1);
155 formatter.field("checksum_sha256", &self.checksum_sha256);
156 formatter.field("key", &self.key);
157 formatter.field("part_number", &self.part_number);
158 formatter.field("upload_id", &self.upload_id);
159 formatter.field("sse_customer_algorithm", &self.sse_customer_algorithm);
160 formatter.field("sse_customer_key", &"*** Sensitive Data Redacted ***");
161 formatter.field("sse_customer_key_md5", &self.sse_customer_key_md5);
162 formatter.field("request_payer", &self.request_payer);
163 formatter.field("expected_bucket_owner", &self.expected_bucket_owner);
164 formatter.finish()
165 }
166}
167impl UploadPartInput {
168 /// Creates a new builder-style object to manufacture [`UploadPartInput`](crate::operation::upload_part::UploadPartInput).
169 pub fn builder() -> crate::operation::upload_part::builders::UploadPartInputBuilder {
170 crate::operation::upload_part::builders::UploadPartInputBuilder::default()
171 }
172}
173
174/// A builder for [`UploadPartInput`](crate::operation::upload_part::UploadPartInput).
175#[derive(::std::default::Default)]
176#[non_exhaustive]
177pub struct UploadPartInputBuilder {
178 pub(crate) body: ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>,
179 pub(crate) bucket: ::std::option::Option<::std::string::String>,
180 pub(crate) content_length: ::std::option::Option<i64>,
181 pub(crate) content_md5: ::std::option::Option<::std::string::String>,
182 pub(crate) checksum_algorithm: ::std::option::Option<crate::types::ChecksumAlgorithm>,
183 pub(crate) checksum_crc32: ::std::option::Option<::std::string::String>,
184 pub(crate) checksum_crc32_c: ::std::option::Option<::std::string::String>,
185 pub(crate) checksum_sha1: ::std::option::Option<::std::string::String>,
186 pub(crate) checksum_sha256: ::std::option::Option<::std::string::String>,
187 pub(crate) key: ::std::option::Option<::std::string::String>,
188 pub(crate) part_number: ::std::option::Option<i32>,
189 pub(crate) upload_id: ::std::option::Option<::std::string::String>,
190 pub(crate) sse_customer_algorithm: ::std::option::Option<::std::string::String>,
191 pub(crate) sse_customer_key: ::std::option::Option<::std::string::String>,
192 pub(crate) sse_customer_key_md5: ::std::option::Option<::std::string::String>,
193 pub(crate) request_payer: ::std::option::Option<crate::types::RequestPayer>,
194 pub(crate) expected_bucket_owner: ::std::option::Option<::std::string::String>,
195}
196impl UploadPartInputBuilder {
197 /// <p>Object data.</p>
198 pub fn body(mut self, input: ::aws_smithy_types::byte_stream::ByteStream) -> Self {
199 self.body = ::std::option::Option::Some(input);
200 self
201 }
202 /// <p>Object data.</p>
203 pub fn set_body(mut self, input: ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>) -> Self {
204 self.body = input;
205 self
206 }
207 /// <p>Object data.</p>
208 pub fn get_body(&self) -> &::std::option::Option<::aws_smithy_types::byte_stream::ByteStream> {
209 &self.body
210 }
211 /// <p>The name of the bucket to which the multipart upload was initiated.</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>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>
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 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>
217 /// This field is required.
218 pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
219 self.bucket = ::std::option::Option::Some(input.into());
220 self
221 }
222 /// <p>The name of the bucket to which the multipart upload was initiated.</p>
223 /// <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>
224 /// <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>
225 /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
226 /// </note>
227 /// <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>
228 pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
229 self.bucket = input;
230 self
231 }
232 /// <p>The name of the bucket to which the multipart upload was initiated.</p>
233 /// <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>
234 /// <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>
235 /// <p>Access points and Object Lambda access points are not supported by directory buckets.</p>
236 /// </note>
237 /// <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>
238 pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
239 &self.bucket
240 }
241 /// <p>Size of the body in bytes. This parameter is useful when the size of the body cannot be determined automatically.</p>
242 pub fn content_length(mut self, input: i64) -> Self {
243 self.content_length = ::std::option::Option::Some(input);
244 self
245 }
246 /// <p>Size of the body in bytes. This parameter is useful when the size of the body cannot be determined automatically.</p>
247 pub fn set_content_length(mut self, input: ::std::option::Option<i64>) -> Self {
248 self.content_length = input;
249 self
250 }
251 /// <p>Size of the body in bytes. This parameter is useful when the size of the body cannot be determined automatically.</p>
252 pub fn get_content_length(&self) -> &::std::option::Option<i64> {
253 &self.content_length
254 }
255 /// <p>The base64-encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.</p><note>
256 /// <p>This functionality is not supported for directory buckets.</p>
257 /// </note>
258 pub fn content_md5(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
259 self.content_md5 = ::std::option::Option::Some(input.into());
260 self
261 }
262 /// <p>The base64-encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.</p><note>
263 /// <p>This functionality is not supported for directory buckets.</p>
264 /// </note>
265 pub fn set_content_md5(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
266 self.content_md5 = input;
267 self
268 }
269 /// <p>The base64-encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.</p><note>
270 /// <p>This functionality is not supported for directory buckets.</p>
271 /// </note>
272 pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> {
273 &self.content_md5
274 }
275 /// <p>Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding <code>x-amz-checksum</code> or <code>x-amz-trailer</code> header sent. Otherwise, Amazon S3 fails the request with the HTTP status code <code>400 Bad Request</code>. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
276 /// <p>If you provide an individual checksum, Amazon S3 ignores any provided <code>ChecksumAlgorithm</code> parameter.</p>
277 /// <p>This checksum algorithm must be the same for all parts and it match the checksum value supplied in the <code>CreateMultipartUpload</code> request.</p>
278 pub fn checksum_algorithm(mut self, input: crate::types::ChecksumAlgorithm) -> Self {
279 self.checksum_algorithm = ::std::option::Option::Some(input);
280 self
281 }
282 /// <p>Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding <code>x-amz-checksum</code> or <code>x-amz-trailer</code> header sent. Otherwise, Amazon S3 fails the request with the HTTP status code <code>400 Bad Request</code>. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
283 /// <p>If you provide an individual checksum, Amazon S3 ignores any provided <code>ChecksumAlgorithm</code> parameter.</p>
284 /// <p>This checksum algorithm must be the same for all parts and it match the checksum value supplied in the <code>CreateMultipartUpload</code> request.</p>
285 pub fn set_checksum_algorithm(mut self, input: ::std::option::Option<crate::types::ChecksumAlgorithm>) -> Self {
286 self.checksum_algorithm = input;
287 self
288 }
289 /// <p>Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding <code>x-amz-checksum</code> or <code>x-amz-trailer</code> header sent. Otherwise, Amazon S3 fails the request with the HTTP status code <code>400 Bad Request</code>. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
290 /// <p>If you provide an individual checksum, Amazon S3 ignores any provided <code>ChecksumAlgorithm</code> parameter.</p>
291 /// <p>This checksum algorithm must be the same for all parts and it match the checksum value supplied in the <code>CreateMultipartUpload</code> request.</p>
292 pub fn get_checksum_algorithm(&self) -> &::std::option::Option<crate::types::ChecksumAlgorithm> {
293 &self.checksum_algorithm
294 }
295 /// <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC32 checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
296 pub fn checksum_crc32(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
297 self.checksum_crc32 = ::std::option::Option::Some(input.into());
298 self
299 }
300 /// <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC32 checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
301 pub fn set_checksum_crc32(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
302 self.checksum_crc32 = input;
303 self
304 }
305 /// <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC32 checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
306 pub fn get_checksum_crc32(&self) -> &::std::option::Option<::std::string::String> {
307 &self.checksum_crc32
308 }
309 /// <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC32C checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
310 pub fn checksum_crc32_c(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
311 self.checksum_crc32_c = ::std::option::Option::Some(input.into());
312 self
313 }
314 /// <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC32C checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
315 pub fn set_checksum_crc32_c(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
316 self.checksum_crc32_c = input;
317 self
318 }
319 /// <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC32C checksum of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
320 pub fn get_checksum_crc32_c(&self) -> &::std::option::Option<::std::string::String> {
321 &self.checksum_crc32_c
322 }
323 /// <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
324 pub fn checksum_sha1(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
325 self.checksum_sha1 = ::std::option::Option::Some(input.into());
326 self
327 }
328 /// <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
329 pub fn set_checksum_sha1(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
330 self.checksum_sha1 = input;
331 self
332 }
333 /// <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
334 pub fn get_checksum_sha1(&self) -> &::std::option::Option<::std::string::String> {
335 &self.checksum_sha1
336 }
337 /// <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
338 pub fn checksum_sha256(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
339 self.checksum_sha256 = ::std::option::Option::Some(input.into());
340 self
341 }
342 /// <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
343 pub fn set_checksum_sha256(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
344 self.checksum_sha256 = input;
345 self
346 }
347 /// <p>This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
348 pub fn get_checksum_sha256(&self) -> &::std::option::Option<::std::string::String> {
349 &self.checksum_sha256
350 }
351 /// <p>Object key for which the multipart upload was initiated.</p>
352 /// This field is required.
353 pub fn key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
354 self.key = ::std::option::Option::Some(input.into());
355 self
356 }
357 /// <p>Object key for which the multipart upload was initiated.</p>
358 pub fn set_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
359 self.key = input;
360 self
361 }
362 /// <p>Object key for which the multipart upload was initiated.</p>
363 pub fn get_key(&self) -> &::std::option::Option<::std::string::String> {
364 &self.key
365 }
366 /// <p>Part number of part being uploaded. This is a positive integer between 1 and 10,000.</p>
367 /// This field is required.
368 pub fn part_number(mut self, input: i32) -> Self {
369 self.part_number = ::std::option::Option::Some(input);
370 self
371 }
372 /// <p>Part number of part being uploaded. This is a positive integer between 1 and 10,000.</p>
373 pub fn set_part_number(mut self, input: ::std::option::Option<i32>) -> Self {
374 self.part_number = input;
375 self
376 }
377 /// <p>Part number of part being uploaded. This is a positive integer between 1 and 10,000.</p>
378 pub fn get_part_number(&self) -> &::std::option::Option<i32> {
379 &self.part_number
380 }
381 /// <p>Upload ID identifying the multipart upload whose part is being uploaded.</p>
382 /// This field is required.
383 pub fn upload_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
384 self.upload_id = ::std::option::Option::Some(input.into());
385 self
386 }
387 /// <p>Upload ID identifying the multipart upload whose part is being uploaded.</p>
388 pub fn set_upload_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
389 self.upload_id = input;
390 self
391 }
392 /// <p>Upload ID identifying the multipart upload whose part is being uploaded.</p>
393 pub fn get_upload_id(&self) -> &::std::option::Option<::std::string::String> {
394 &self.upload_id
395 }
396 /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
397 /// <p>This functionality is not supported for directory buckets.</p>
398 /// </note>
399 pub fn sse_customer_algorithm(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
400 self.sse_customer_algorithm = ::std::option::Option::Some(input.into());
401 self
402 }
403 /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
404 /// <p>This functionality is not supported for directory buckets.</p>
405 /// </note>
406 pub fn set_sse_customer_algorithm(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
407 self.sse_customer_algorithm = input;
408 self
409 }
410 /// <p>Specifies the algorithm to use when encrypting the object (for example, AES256).</p><note>
411 /// <p>This functionality is not supported for directory buckets.</p>
412 /// </note>
413 pub fn get_sse_customer_algorithm(&self) -> &::std::option::Option<::std::string::String> {
414 &self.sse_customer_algorithm
415 }
416 /// <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 header</code>. This must be the same encryption key specified in the initiate multipart upload request.</p><note>
417 /// <p>This functionality is not supported for directory buckets.</p>
418 /// </note>
419 pub fn sse_customer_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
420 self.sse_customer_key = ::std::option::Option::Some(input.into());
421 self
422 }
423 /// <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 header</code>. This must be the same encryption key specified in the initiate multipart upload request.</p><note>
424 /// <p>This functionality is not supported for directory buckets.</p>
425 /// </note>
426 pub fn set_sse_customer_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
427 self.sse_customer_key = input;
428 self
429 }
430 /// <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 header</code>. This must be the same encryption key specified in the initiate multipart upload request.</p><note>
431 /// <p>This functionality is not supported for directory buckets.</p>
432 /// </note>
433 pub fn get_sse_customer_key(&self) -> &::std::option::Option<::std::string::String> {
434 &self.sse_customer_key
435 }
436 /// <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>
437 /// <p>This functionality is not supported for directory buckets.</p>
438 /// </note>
439 pub fn sse_customer_key_md5(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
440 self.sse_customer_key_md5 = ::std::option::Option::Some(input.into());
441 self
442 }
443 /// <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>
444 /// <p>This functionality is not supported for directory buckets.</p>
445 /// </note>
446 pub fn set_sse_customer_key_md5(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
447 self.sse_customer_key_md5 = input;
448 self
449 }
450 /// <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>
451 /// <p>This functionality is not supported for directory buckets.</p>
452 /// </note>
453 pub fn get_sse_customer_key_md5(&self) -> &::std::option::Option<::std::string::String> {
454 &self.sse_customer_key_md5
455 }
456 /// <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>
457 /// <p>This functionality is not supported for directory buckets.</p>
458 /// </note>
459 pub fn request_payer(mut self, input: crate::types::RequestPayer) -> Self {
460 self.request_payer = ::std::option::Option::Some(input);
461 self
462 }
463 /// <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>
464 /// <p>This functionality is not supported for directory buckets.</p>
465 /// </note>
466 pub fn set_request_payer(mut self, input: ::std::option::Option<crate::types::RequestPayer>) -> Self {
467 self.request_payer = input;
468 self
469 }
470 /// <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>
471 /// <p>This functionality is not supported for directory buckets.</p>
472 /// </note>
473 pub fn get_request_payer(&self) -> &::std::option::Option<crate::types::RequestPayer> {
474 &self.request_payer
475 }
476 /// <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>
477 pub fn expected_bucket_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
478 self.expected_bucket_owner = ::std::option::Option::Some(input.into());
479 self
480 }
481 /// <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>
482 pub fn set_expected_bucket_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
483 self.expected_bucket_owner = input;
484 self
485 }
486 /// <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>
487 pub fn get_expected_bucket_owner(&self) -> &::std::option::Option<::std::string::String> {
488 &self.expected_bucket_owner
489 }
490 /// Consumes the builder and constructs a [`UploadPartInput`](crate::operation::upload_part::UploadPartInput).
491 pub fn build(self) -> ::std::result::Result<crate::operation::upload_part::UploadPartInput, ::aws_smithy_types::error::operation::BuildError> {
492 ::std::result::Result::Ok(crate::operation::upload_part::UploadPartInput {
493 body: self.body.unwrap_or_default(),
494 bucket: self.bucket,
495 content_length: self.content_length,
496 content_md5: self.content_md5,
497 checksum_algorithm: self.checksum_algorithm,
498 checksum_crc32: self.checksum_crc32,
499 checksum_crc32_c: self.checksum_crc32_c,
500 checksum_sha1: self.checksum_sha1,
501 checksum_sha256: self.checksum_sha256,
502 key: self.key,
503 part_number: self.part_number,
504 upload_id: self.upload_id,
505 sse_customer_algorithm: self.sse_customer_algorithm,
506 sse_customer_key: self.sse_customer_key,
507 sse_customer_key_md5: self.sse_customer_key_md5,
508 request_payer: self.request_payer,
509 expected_bucket_owner: self.expected_bucket_owner,
510 })
511 }
512}
513impl ::std::fmt::Debug for UploadPartInputBuilder {
514 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
515 let mut formatter = f.debug_struct("UploadPartInputBuilder");
516 formatter.field("body", &self.body);
517 formatter.field("bucket", &self.bucket);
518 formatter.field("content_length", &self.content_length);
519 formatter.field("content_md5", &self.content_md5);
520 formatter.field("checksum_algorithm", &self.checksum_algorithm);
521 formatter.field("checksum_crc32", &self.checksum_crc32);
522 formatter.field("checksum_crc32_c", &self.checksum_crc32_c);
523 formatter.field("checksum_sha1", &self.checksum_sha1);
524 formatter.field("checksum_sha256", &self.checksum_sha256);
525 formatter.field("key", &self.key);
526 formatter.field("part_number", &self.part_number);
527 formatter.field("upload_id", &self.upload_id);
528 formatter.field("sse_customer_algorithm", &self.sse_customer_algorithm);
529 formatter.field("sse_customer_key", &"*** Sensitive Data Redacted ***");
530 formatter.field("sse_customer_key_md5", &self.sse_customer_key_md5);
531 formatter.field("request_payer", &self.request_payer);
532 formatter.field("expected_bucket_owner", &self.expected_bucket_owner);
533 formatter.finish()
534 }
535}