aws_sdk_s3/operation/upload_part/_upload_part_output.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
5pub struct UploadPartOutput {
6 /// <p>The server-side encryption algorithm used when you store this object in Amazon S3 or Amazon FSx.</p><note>
7 /// <p>When accessing data stored in Amazon FSx file systems using S3 access points, the only valid server side encryption option is <code>aws:fsx</code>.</p>
8 /// </note>
9 pub server_side_encryption: ::std::option::Option<crate::types::ServerSideEncryption>,
10 /// <p>Entity tag for the uploaded object.</p>
11 pub e_tag: ::std::option::Option<::std::string::String>,
12 /// <p>The Base64 encoded, 32-bit <code>CRC32</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
13 pub checksum_crc32: ::std::option::Option<::std::string::String>,
14 /// <p>The Base64 encoded, 32-bit <code>CRC32C</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
15 pub checksum_crc32_c: ::std::option::Option<::std::string::String>,
16 /// <p>The Base64 encoded, 64-bit <code>CRC64NVME</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
17 pub checksum_crc64_nvme: ::std::option::Option<::std::string::String>,
18 /// <p>The Base64 encoded, 160-bit <code>SHA1</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
19 pub checksum_sha1: ::std::option::Option<::std::string::String>,
20 /// <p>The Base64 encoded, 256-bit <code>SHA256</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
21 pub checksum_sha256: ::std::option::Option<::std::string::String>,
22 /// <p>The Base64 encoded, 512-bit <code>SHA512</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
23 pub checksum_sha512: ::std::option::Option<::std::string::String>,
24 /// <p>The Base64 encoded, 128-bit <code>MD5</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
25 pub checksum_md5: ::std::option::Option<::std::string::String>,
26 /// <p>The Base64 encoded, 64-bit <code>XXHASH64</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
27 pub checksum_xxhash64: ::std::option::Option<::std::string::String>,
28 /// <p>The Base64 encoded, 64-bit <code>XXHASH3</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
29 pub checksum_xxhash3: ::std::option::Option<::std::string::String>,
30 /// <p>The Base64 encoded, 128-bit <code>XXHASH128</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
31 pub checksum_xxhash128: ::std::option::Option<::std::string::String>,
32 /// <p>If server-side encryption with a customer-provided encryption key was requested, the response will include this header to confirm the encryption algorithm that's used.</p><note>
33 /// <p>This functionality is not supported for directory buckets.</p>
34 /// </note>
35 pub sse_customer_algorithm: ::std::option::Option<::std::string::String>,
36 /// <p>If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide the round-trip message integrity verification of the customer-provided encryption key.</p><note>
37 /// <p>This functionality is not supported for directory buckets.</p>
38 /// </note>
39 pub sse_customer_key_md5: ::std::option::Option<::std::string::String>,
40 /// <p>If present, indicates the ID of the KMS key that was used for object encryption.</p>
41 pub ssekms_key_id: ::std::option::Option<::std::string::String>,
42 /// <p>Indicates whether the multipart upload uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS).</p>
43 pub bucket_key_enabled: ::std::option::Option<bool>,
44 /// <p>If present, indicates that the requester was successfully charged for the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html">Using Requester Pays buckets for storage transfers and usage</a> in the <i>Amazon Simple Storage Service user guide</i>.</p><note>
45 /// <p>This functionality is not supported for directory buckets.</p>
46 /// </note>
47 pub request_charged: ::std::option::Option<crate::types::RequestCharged>,
48 /// <p>Version ID of the object.</p>
49 /// <p>Returns the Version ID of the object for the uploaded part, if bucket versioning is enabled.</p><note>
50 /// <p>This functionality is not supported for directory buckets.</p>
51 /// </note>
52 pub version_id: ::std::option::Option<::std::string::String>,
53 _extended_request_id: Option<String>,
54 _request_id: Option<String>,
55}
56impl UploadPartOutput {
57 /// <p>The server-side encryption algorithm used when you store this object in Amazon S3 or Amazon FSx.</p><note>
58 /// <p>When accessing data stored in Amazon FSx file systems using S3 access points, the only valid server side encryption option is <code>aws:fsx</code>.</p>
59 /// </note>
60 pub fn server_side_encryption(&self) -> ::std::option::Option<&crate::types::ServerSideEncryption> {
61 self.server_side_encryption.as_ref()
62 }
63 /// <p>Entity tag for the uploaded object.</p>
64 pub fn e_tag(&self) -> ::std::option::Option<&str> {
65 self.e_tag.as_deref()
66 }
67 /// <p>The Base64 encoded, 32-bit <code>CRC32</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
68 pub fn checksum_crc32(&self) -> ::std::option::Option<&str> {
69 self.checksum_crc32.as_deref()
70 }
71 /// <p>The Base64 encoded, 32-bit <code>CRC32C</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
72 pub fn checksum_crc32_c(&self) -> ::std::option::Option<&str> {
73 self.checksum_crc32_c.as_deref()
74 }
75 /// <p>The Base64 encoded, 64-bit <code>CRC64NVME</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
76 pub fn checksum_crc64_nvme(&self) -> ::std::option::Option<&str> {
77 self.checksum_crc64_nvme.as_deref()
78 }
79 /// <p>The Base64 encoded, 160-bit <code>SHA1</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
80 pub fn checksum_sha1(&self) -> ::std::option::Option<&str> {
81 self.checksum_sha1.as_deref()
82 }
83 /// <p>The Base64 encoded, 256-bit <code>SHA256</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
84 pub fn checksum_sha256(&self) -> ::std::option::Option<&str> {
85 self.checksum_sha256.as_deref()
86 }
87 /// <p>The Base64 encoded, 512-bit <code>SHA512</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
88 pub fn checksum_sha512(&self) -> ::std::option::Option<&str> {
89 self.checksum_sha512.as_deref()
90 }
91 /// <p>The Base64 encoded, 128-bit <code>MD5</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
92 pub fn checksum_md5(&self) -> ::std::option::Option<&str> {
93 self.checksum_md5.as_deref()
94 }
95 /// <p>The Base64 encoded, 64-bit <code>XXHASH64</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
96 pub fn checksum_xxhash64(&self) -> ::std::option::Option<&str> {
97 self.checksum_xxhash64.as_deref()
98 }
99 /// <p>The Base64 encoded, 64-bit <code>XXHASH3</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
100 pub fn checksum_xxhash3(&self) -> ::std::option::Option<&str> {
101 self.checksum_xxhash3.as_deref()
102 }
103 /// <p>The Base64 encoded, 128-bit <code>XXHASH128</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
104 pub fn checksum_xxhash128(&self) -> ::std::option::Option<&str> {
105 self.checksum_xxhash128.as_deref()
106 }
107 /// <p>If server-side encryption with a customer-provided encryption key was requested, the response will include this header to confirm the encryption algorithm that's used.</p><note>
108 /// <p>This functionality is not supported for directory buckets.</p>
109 /// </note>
110 pub fn sse_customer_algorithm(&self) -> ::std::option::Option<&str> {
111 self.sse_customer_algorithm.as_deref()
112 }
113 /// <p>If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide the round-trip message integrity verification of the customer-provided encryption key.</p><note>
114 /// <p>This functionality is not supported for directory buckets.</p>
115 /// </note>
116 pub fn sse_customer_key_md5(&self) -> ::std::option::Option<&str> {
117 self.sse_customer_key_md5.as_deref()
118 }
119 /// <p>If present, indicates the ID of the KMS key that was used for object encryption.</p>
120 pub fn ssekms_key_id(&self) -> ::std::option::Option<&str> {
121 self.ssekms_key_id.as_deref()
122 }
123 /// <p>Indicates whether the multipart upload uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS).</p>
124 pub fn bucket_key_enabled(&self) -> ::std::option::Option<bool> {
125 self.bucket_key_enabled
126 }
127 /// <p>If present, indicates that the requester was successfully charged for the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html">Using Requester Pays buckets for storage transfers and usage</a> in the <i>Amazon Simple Storage Service user guide</i>.</p><note>
128 /// <p>This functionality is not supported for directory buckets.</p>
129 /// </note>
130 pub fn request_charged(&self) -> ::std::option::Option<&crate::types::RequestCharged> {
131 self.request_charged.as_ref()
132 }
133 /// <p>Version ID of the object.</p>
134 /// <p>Returns the Version ID of the object for the uploaded part, if bucket versioning is enabled.</p><note>
135 /// <p>This functionality is not supported for directory buckets.</p>
136 /// </note>
137 pub fn version_id(&self) -> ::std::option::Option<&str> {
138 self.version_id.as_deref()
139 }
140}
141impl ::std::fmt::Debug for UploadPartOutput {
142 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
143 let mut formatter = f.debug_struct("UploadPartOutput");
144 formatter.field("server_side_encryption", &self.server_side_encryption);
145 formatter.field("e_tag", &self.e_tag);
146 formatter.field("checksum_crc32", &self.checksum_crc32);
147 formatter.field("checksum_crc32_c", &self.checksum_crc32_c);
148 formatter.field("checksum_crc64_nvme", &self.checksum_crc64_nvme);
149 formatter.field("checksum_sha1", &self.checksum_sha1);
150 formatter.field("checksum_sha256", &self.checksum_sha256);
151 formatter.field("checksum_sha512", &self.checksum_sha512);
152 formatter.field("checksum_md5", &self.checksum_md5);
153 formatter.field("checksum_xxhash64", &self.checksum_xxhash64);
154 formatter.field("checksum_xxhash3", &self.checksum_xxhash3);
155 formatter.field("checksum_xxhash128", &self.checksum_xxhash128);
156 formatter.field("sse_customer_algorithm", &self.sse_customer_algorithm);
157 formatter.field("sse_customer_key_md5", &self.sse_customer_key_md5);
158 formatter.field("ssekms_key_id", &"*** Sensitive Data Redacted ***");
159 formatter.field("bucket_key_enabled", &self.bucket_key_enabled);
160 formatter.field("request_charged", &self.request_charged);
161 formatter.field("version_id", &self.version_id);
162 formatter.field("_extended_request_id", &self._extended_request_id);
163 formatter.field("_request_id", &self._request_id);
164 formatter.finish()
165 }
166}
167impl crate::s3_request_id::RequestIdExt for UploadPartOutput {
168 fn extended_request_id(&self) -> Option<&str> {
169 self._extended_request_id.as_deref()
170 }
171}
172impl ::aws_types::request_id::RequestId for UploadPartOutput {
173 fn request_id(&self) -> Option<&str> {
174 self._request_id.as_deref()
175 }
176}
177impl UploadPartOutput {
178 /// Creates a new builder-style object to manufacture [`UploadPartOutput`](crate::operation::upload_part::UploadPartOutput).
179 pub fn builder() -> crate::operation::upload_part::builders::UploadPartOutputBuilder {
180 crate::operation::upload_part::builders::UploadPartOutputBuilder::default()
181 }
182}
183
184/// A builder for [`UploadPartOutput`](crate::operation::upload_part::UploadPartOutput).
185#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
186#[non_exhaustive]
187pub struct UploadPartOutputBuilder {
188 pub(crate) server_side_encryption: ::std::option::Option<crate::types::ServerSideEncryption>,
189 pub(crate) e_tag: ::std::option::Option<::std::string::String>,
190 pub(crate) checksum_crc32: ::std::option::Option<::std::string::String>,
191 pub(crate) checksum_crc32_c: ::std::option::Option<::std::string::String>,
192 pub(crate) checksum_crc64_nvme: ::std::option::Option<::std::string::String>,
193 pub(crate) checksum_sha1: ::std::option::Option<::std::string::String>,
194 pub(crate) checksum_sha256: ::std::option::Option<::std::string::String>,
195 pub(crate) checksum_sha512: ::std::option::Option<::std::string::String>,
196 pub(crate) checksum_md5: ::std::option::Option<::std::string::String>,
197 pub(crate) checksum_xxhash64: ::std::option::Option<::std::string::String>,
198 pub(crate) checksum_xxhash3: ::std::option::Option<::std::string::String>,
199 pub(crate) checksum_xxhash128: ::std::option::Option<::std::string::String>,
200 pub(crate) sse_customer_algorithm: ::std::option::Option<::std::string::String>,
201 pub(crate) sse_customer_key_md5: ::std::option::Option<::std::string::String>,
202 pub(crate) ssekms_key_id: ::std::option::Option<::std::string::String>,
203 pub(crate) bucket_key_enabled: ::std::option::Option<bool>,
204 pub(crate) request_charged: ::std::option::Option<crate::types::RequestCharged>,
205 pub(crate) version_id: ::std::option::Option<::std::string::String>,
206 _extended_request_id: Option<String>,
207 _request_id: Option<String>,
208}
209impl UploadPartOutputBuilder {
210 /// <p>The server-side encryption algorithm used when you store this object in Amazon S3 or Amazon FSx.</p><note>
211 /// <p>When accessing data stored in Amazon FSx file systems using S3 access points, the only valid server side encryption option is <code>aws:fsx</code>.</p>
212 /// </note>
213 pub fn server_side_encryption(mut self, input: crate::types::ServerSideEncryption) -> Self {
214 self.server_side_encryption = ::std::option::Option::Some(input);
215 self
216 }
217 /// <p>The server-side encryption algorithm used when you store this object in Amazon S3 or Amazon FSx.</p><note>
218 /// <p>When accessing data stored in Amazon FSx file systems using S3 access points, the only valid server side encryption option is <code>aws:fsx</code>.</p>
219 /// </note>
220 pub fn set_server_side_encryption(mut self, input: ::std::option::Option<crate::types::ServerSideEncryption>) -> Self {
221 self.server_side_encryption = input;
222 self
223 }
224 /// <p>The server-side encryption algorithm used when you store this object in Amazon S3 or Amazon FSx.</p><note>
225 /// <p>When accessing data stored in Amazon FSx file systems using S3 access points, the only valid server side encryption option is <code>aws:fsx</code>.</p>
226 /// </note>
227 pub fn get_server_side_encryption(&self) -> &::std::option::Option<crate::types::ServerSideEncryption> {
228 &self.server_side_encryption
229 }
230 /// <p>Entity tag for the uploaded object.</p>
231 pub fn e_tag(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
232 self.e_tag = ::std::option::Option::Some(input.into());
233 self
234 }
235 /// <p>Entity tag for the uploaded object.</p>
236 pub fn set_e_tag(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
237 self.e_tag = input;
238 self
239 }
240 /// <p>Entity tag for the uploaded object.</p>
241 pub fn get_e_tag(&self) -> &::std::option::Option<::std::string::String> {
242 &self.e_tag
243 }
244 /// <p>The Base64 encoded, 32-bit <code>CRC32</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
245 pub fn checksum_crc32(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
246 self.checksum_crc32 = ::std::option::Option::Some(input.into());
247 self
248 }
249 /// <p>The Base64 encoded, 32-bit <code>CRC32</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
250 pub fn set_checksum_crc32(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
251 self.checksum_crc32 = input;
252 self
253 }
254 /// <p>The Base64 encoded, 32-bit <code>CRC32</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
255 pub fn get_checksum_crc32(&self) -> &::std::option::Option<::std::string::String> {
256 &self.checksum_crc32
257 }
258 /// <p>The Base64 encoded, 32-bit <code>CRC32C</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
259 pub fn checksum_crc32_c(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
260 self.checksum_crc32_c = ::std::option::Option::Some(input.into());
261 self
262 }
263 /// <p>The Base64 encoded, 32-bit <code>CRC32C</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
264 pub fn set_checksum_crc32_c(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
265 self.checksum_crc32_c = input;
266 self
267 }
268 /// <p>The Base64 encoded, 32-bit <code>CRC32C</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
269 pub fn get_checksum_crc32_c(&self) -> &::std::option::Option<::std::string::String> {
270 &self.checksum_crc32_c
271 }
272 /// <p>The Base64 encoded, 64-bit <code>CRC64NVME</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
273 pub fn checksum_crc64_nvme(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
274 self.checksum_crc64_nvme = ::std::option::Option::Some(input.into());
275 self
276 }
277 /// <p>The Base64 encoded, 64-bit <code>CRC64NVME</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
278 pub fn set_checksum_crc64_nvme(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
279 self.checksum_crc64_nvme = input;
280 self
281 }
282 /// <p>The Base64 encoded, 64-bit <code>CRC64NVME</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
283 pub fn get_checksum_crc64_nvme(&self) -> &::std::option::Option<::std::string::String> {
284 &self.checksum_crc64_nvme
285 }
286 /// <p>The Base64 encoded, 160-bit <code>SHA1</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
287 pub fn checksum_sha1(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
288 self.checksum_sha1 = ::std::option::Option::Some(input.into());
289 self
290 }
291 /// <p>The Base64 encoded, 160-bit <code>SHA1</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
292 pub fn set_checksum_sha1(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
293 self.checksum_sha1 = input;
294 self
295 }
296 /// <p>The Base64 encoded, 160-bit <code>SHA1</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
297 pub fn get_checksum_sha1(&self) -> &::std::option::Option<::std::string::String> {
298 &self.checksum_sha1
299 }
300 /// <p>The Base64 encoded, 256-bit <code>SHA256</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
301 pub fn checksum_sha256(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
302 self.checksum_sha256 = ::std::option::Option::Some(input.into());
303 self
304 }
305 /// <p>The Base64 encoded, 256-bit <code>SHA256</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
306 pub fn set_checksum_sha256(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
307 self.checksum_sha256 = input;
308 self
309 }
310 /// <p>The Base64 encoded, 256-bit <code>SHA256</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
311 pub fn get_checksum_sha256(&self) -> &::std::option::Option<::std::string::String> {
312 &self.checksum_sha256
313 }
314 /// <p>The Base64 encoded, 512-bit <code>SHA512</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
315 pub fn checksum_sha512(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
316 self.checksum_sha512 = ::std::option::Option::Some(input.into());
317 self
318 }
319 /// <p>The Base64 encoded, 512-bit <code>SHA512</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
320 pub fn set_checksum_sha512(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
321 self.checksum_sha512 = input;
322 self
323 }
324 /// <p>The Base64 encoded, 512-bit <code>SHA512</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
325 pub fn get_checksum_sha512(&self) -> &::std::option::Option<::std::string::String> {
326 &self.checksum_sha512
327 }
328 /// <p>The Base64 encoded, 128-bit <code>MD5</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
329 pub fn checksum_md5(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
330 self.checksum_md5 = ::std::option::Option::Some(input.into());
331 self
332 }
333 /// <p>The Base64 encoded, 128-bit <code>MD5</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
334 pub fn set_checksum_md5(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
335 self.checksum_md5 = input;
336 self
337 }
338 /// <p>The Base64 encoded, 128-bit <code>MD5</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
339 pub fn get_checksum_md5(&self) -> &::std::option::Option<::std::string::String> {
340 &self.checksum_md5
341 }
342 /// <p>The Base64 encoded, 64-bit <code>XXHASH64</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
343 pub fn checksum_xxhash64(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
344 self.checksum_xxhash64 = ::std::option::Option::Some(input.into());
345 self
346 }
347 /// <p>The Base64 encoded, 64-bit <code>XXHASH64</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
348 pub fn set_checksum_xxhash64(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
349 self.checksum_xxhash64 = input;
350 self
351 }
352 /// <p>The Base64 encoded, 64-bit <code>XXHASH64</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
353 pub fn get_checksum_xxhash64(&self) -> &::std::option::Option<::std::string::String> {
354 &self.checksum_xxhash64
355 }
356 /// <p>The Base64 encoded, 64-bit <code>XXHASH3</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
357 pub fn checksum_xxhash3(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
358 self.checksum_xxhash3 = ::std::option::Option::Some(input.into());
359 self
360 }
361 /// <p>The Base64 encoded, 64-bit <code>XXHASH3</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
362 pub fn set_checksum_xxhash3(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
363 self.checksum_xxhash3 = input;
364 self
365 }
366 /// <p>The Base64 encoded, 64-bit <code>XXHASH3</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
367 pub fn get_checksum_xxhash3(&self) -> &::std::option::Option<::std::string::String> {
368 &self.checksum_xxhash3
369 }
370 /// <p>The Base64 encoded, 128-bit <code>XXHASH128</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
371 pub fn checksum_xxhash128(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
372 self.checksum_xxhash128 = ::std::option::Option::Some(input.into());
373 self
374 }
375 /// <p>The Base64 encoded, 128-bit <code>XXHASH128</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
376 pub fn set_checksum_xxhash128(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
377 self.checksum_xxhash128 = input;
378 self
379 }
380 /// <p>The Base64 encoded, 128-bit <code>XXHASH128</code> checksum of the part. This will only be present if the checksum was provided in the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">Checking object integrity</a> in the <i>Amazon S3 User Guide</i>.</p>
381 pub fn get_checksum_xxhash128(&self) -> &::std::option::Option<::std::string::String> {
382 &self.checksum_xxhash128
383 }
384 /// <p>If server-side encryption with a customer-provided encryption key was requested, the response will include this header to confirm the encryption algorithm that's used.</p><note>
385 /// <p>This functionality is not supported for directory buckets.</p>
386 /// </note>
387 pub fn sse_customer_algorithm(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
388 self.sse_customer_algorithm = ::std::option::Option::Some(input.into());
389 self
390 }
391 /// <p>If server-side encryption with a customer-provided encryption key was requested, the response will include this header to confirm the encryption algorithm that's used.</p><note>
392 /// <p>This functionality is not supported for directory buckets.</p>
393 /// </note>
394 pub fn set_sse_customer_algorithm(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
395 self.sse_customer_algorithm = input;
396 self
397 }
398 /// <p>If server-side encryption with a customer-provided encryption key was requested, the response will include this header to confirm the encryption algorithm that's used.</p><note>
399 /// <p>This functionality is not supported for directory buckets.</p>
400 /// </note>
401 pub fn get_sse_customer_algorithm(&self) -> &::std::option::Option<::std::string::String> {
402 &self.sse_customer_algorithm
403 }
404 /// <p>If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide the round-trip message integrity verification of the customer-provided encryption key.</p><note>
405 /// <p>This functionality is not supported for directory buckets.</p>
406 /// </note>
407 pub fn sse_customer_key_md5(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
408 self.sse_customer_key_md5 = ::std::option::Option::Some(input.into());
409 self
410 }
411 /// <p>If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide the round-trip message integrity verification of the customer-provided encryption key.</p><note>
412 /// <p>This functionality is not supported for directory buckets.</p>
413 /// </note>
414 pub fn set_sse_customer_key_md5(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
415 self.sse_customer_key_md5 = input;
416 self
417 }
418 /// <p>If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide the round-trip message integrity verification of the customer-provided encryption key.</p><note>
419 /// <p>This functionality is not supported for directory buckets.</p>
420 /// </note>
421 pub fn get_sse_customer_key_md5(&self) -> &::std::option::Option<::std::string::String> {
422 &self.sse_customer_key_md5
423 }
424 /// <p>If present, indicates the ID of the KMS key that was used for object encryption.</p>
425 pub fn ssekms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
426 self.ssekms_key_id = ::std::option::Option::Some(input.into());
427 self
428 }
429 /// <p>If present, indicates the ID of the KMS key that was used for object encryption.</p>
430 pub fn set_ssekms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
431 self.ssekms_key_id = input;
432 self
433 }
434 /// <p>If present, indicates the ID of the KMS key that was used for object encryption.</p>
435 pub fn get_ssekms_key_id(&self) -> &::std::option::Option<::std::string::String> {
436 &self.ssekms_key_id
437 }
438 /// <p>Indicates whether the multipart upload uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS).</p>
439 pub fn bucket_key_enabled(mut self, input: bool) -> Self {
440 self.bucket_key_enabled = ::std::option::Option::Some(input);
441 self
442 }
443 /// <p>Indicates whether the multipart upload uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS).</p>
444 pub fn set_bucket_key_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
445 self.bucket_key_enabled = input;
446 self
447 }
448 /// <p>Indicates whether the multipart upload uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS).</p>
449 pub fn get_bucket_key_enabled(&self) -> &::std::option::Option<bool> {
450 &self.bucket_key_enabled
451 }
452 /// <p>If present, indicates that the requester was successfully charged for the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html">Using Requester Pays buckets for storage transfers and usage</a> in the <i>Amazon Simple Storage Service user guide</i>.</p><note>
453 /// <p>This functionality is not supported for directory buckets.</p>
454 /// </note>
455 pub fn request_charged(mut self, input: crate::types::RequestCharged) -> Self {
456 self.request_charged = ::std::option::Option::Some(input);
457 self
458 }
459 /// <p>If present, indicates that the requester was successfully charged for the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html">Using Requester Pays buckets for storage transfers and usage</a> in the <i>Amazon Simple Storage Service user guide</i>.</p><note>
460 /// <p>This functionality is not supported for directory buckets.</p>
461 /// </note>
462 pub fn set_request_charged(mut self, input: ::std::option::Option<crate::types::RequestCharged>) -> Self {
463 self.request_charged = input;
464 self
465 }
466 /// <p>If present, indicates that the requester was successfully charged for the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html">Using Requester Pays buckets for storage transfers and usage</a> in the <i>Amazon Simple Storage Service user guide</i>.</p><note>
467 /// <p>This functionality is not supported for directory buckets.</p>
468 /// </note>
469 pub fn get_request_charged(&self) -> &::std::option::Option<crate::types::RequestCharged> {
470 &self.request_charged
471 }
472 /// <p>Version ID of the object.</p>
473 /// <p>Returns the Version ID of the object for the uploaded part, if bucket versioning is enabled.</p><note>
474 /// <p>This functionality is not supported for directory buckets.</p>
475 /// </note>
476 pub fn version_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
477 self.version_id = ::std::option::Option::Some(input.into());
478 self
479 }
480 /// <p>Version ID of the object.</p>
481 /// <p>Returns the Version ID of the object for the uploaded part, if bucket versioning is enabled.</p><note>
482 /// <p>This functionality is not supported for directory buckets.</p>
483 /// </note>
484 pub fn set_version_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
485 self.version_id = input;
486 self
487 }
488 /// <p>Version ID of the object.</p>
489 /// <p>Returns the Version ID of the object for the uploaded part, if bucket versioning is enabled.</p><note>
490 /// <p>This functionality is not supported for directory buckets.</p>
491 /// </note>
492 pub fn get_version_id(&self) -> &::std::option::Option<::std::string::String> {
493 &self.version_id
494 }
495 pub(crate) fn _extended_request_id(mut self, extended_request_id: impl Into<String>) -> Self {
496 self._extended_request_id = Some(extended_request_id.into());
497 self
498 }
499
500 pub(crate) fn _set_extended_request_id(&mut self, extended_request_id: Option<String>) -> &mut Self {
501 self._extended_request_id = extended_request_id;
502 self
503 }
504 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
505 self._request_id = Some(request_id.into());
506 self
507 }
508
509 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
510 self._request_id = request_id;
511 self
512 }
513 /// Consumes the builder and constructs a [`UploadPartOutput`](crate::operation::upload_part::UploadPartOutput).
514 pub fn build(self) -> crate::operation::upload_part::UploadPartOutput {
515 crate::operation::upload_part::UploadPartOutput {
516 server_side_encryption: self.server_side_encryption,
517 e_tag: self.e_tag,
518 checksum_crc32: self.checksum_crc32,
519 checksum_crc32_c: self.checksum_crc32_c,
520 checksum_crc64_nvme: self.checksum_crc64_nvme,
521 checksum_sha1: self.checksum_sha1,
522 checksum_sha256: self.checksum_sha256,
523 checksum_sha512: self.checksum_sha512,
524 checksum_md5: self.checksum_md5,
525 checksum_xxhash64: self.checksum_xxhash64,
526 checksum_xxhash3: self.checksum_xxhash3,
527 checksum_xxhash128: self.checksum_xxhash128,
528 sse_customer_algorithm: self.sse_customer_algorithm,
529 sse_customer_key_md5: self.sse_customer_key_md5,
530 ssekms_key_id: self.ssekms_key_id,
531 bucket_key_enabled: self.bucket_key_enabled,
532 request_charged: self.request_charged,
533 version_id: self.version_id,
534 _extended_request_id: self._extended_request_id,
535 _request_id: self._request_id,
536 }
537 }
538}
539impl ::std::fmt::Debug for UploadPartOutputBuilder {
540 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
541 let mut formatter = f.debug_struct("UploadPartOutputBuilder");
542 formatter.field("server_side_encryption", &self.server_side_encryption);
543 formatter.field("e_tag", &self.e_tag);
544 formatter.field("checksum_crc32", &self.checksum_crc32);
545 formatter.field("checksum_crc32_c", &self.checksum_crc32_c);
546 formatter.field("checksum_crc64_nvme", &self.checksum_crc64_nvme);
547 formatter.field("checksum_sha1", &self.checksum_sha1);
548 formatter.field("checksum_sha256", &self.checksum_sha256);
549 formatter.field("checksum_sha512", &self.checksum_sha512);
550 formatter.field("checksum_md5", &self.checksum_md5);
551 formatter.field("checksum_xxhash64", &self.checksum_xxhash64);
552 formatter.field("checksum_xxhash3", &self.checksum_xxhash3);
553 formatter.field("checksum_xxhash128", &self.checksum_xxhash128);
554 formatter.field("sse_customer_algorithm", &self.sse_customer_algorithm);
555 formatter.field("sse_customer_key_md5", &self.sse_customer_key_md5);
556 formatter.field("ssekms_key_id", &"*** Sensitive Data Redacted ***");
557 formatter.field("bucket_key_enabled", &self.bucket_key_enabled);
558 formatter.field("request_charged", &self.request_charged);
559 formatter.field("version_id", &self.version_id);
560 formatter.field("_extended_request_id", &self._extended_request_id);
561 formatter.field("_request_id", &self._request_id);
562 formatter.finish()
563 }
564}