aws_sdk_s3/operation/put_object_annotation/
builders.rs1pub use crate::operation::put_object_annotation::_put_object_annotation_input::PutObjectAnnotationInputBuilder;
3
4pub use crate::operation::put_object_annotation::_put_object_annotation_output::PutObjectAnnotationOutputBuilder;
5
6impl crate::operation::put_object_annotation::builders::PutObjectAnnotationInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::put_object_annotation::PutObjectAnnotationOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::put_object_annotation::PutObjectAnnotationError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.put_object_annotation();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::fmt::Debug)]
41pub struct PutObjectAnnotationFluentBuilder {
42 handle: ::std::sync::Arc<crate::client::Handle>,
43 inner: crate::operation::put_object_annotation::builders::PutObjectAnnotationInputBuilder,
44 config_override: ::std::option::Option<crate::config::Builder>,
45}
46impl
47 crate::client::customize::internal::CustomizableSend<
48 crate::operation::put_object_annotation::PutObjectAnnotationOutput,
49 crate::operation::put_object_annotation::PutObjectAnnotationError,
50 > for PutObjectAnnotationFluentBuilder
51{
52 fn send(
53 self,
54 config_override: crate::config::Builder,
55 ) -> crate::client::customize::internal::BoxFuture<
56 crate::client::customize::internal::SendResult<
57 crate::operation::put_object_annotation::PutObjectAnnotationOutput,
58 crate::operation::put_object_annotation::PutObjectAnnotationError,
59 >,
60 > {
61 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
62 }
63}
64impl PutObjectAnnotationFluentBuilder {
65 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
67 Self {
68 handle,
69 inner: ::std::default::Default::default(),
70 config_override: ::std::option::Option::None,
71 }
72 }
73 pub fn as_input(&self) -> &crate::operation::put_object_annotation::builders::PutObjectAnnotationInputBuilder {
75 &self.inner
76 }
77 pub async fn send(
86 self,
87 ) -> ::std::result::Result<
88 crate::operation::put_object_annotation::PutObjectAnnotationOutput,
89 ::aws_smithy_runtime_api::client::result::SdkError<
90 crate::operation::put_object_annotation::PutObjectAnnotationError,
91 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
92 >,
93 > {
94 let input = self
95 .inner
96 .build()
97 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
98 let runtime_plugins = crate::operation::put_object_annotation::PutObjectAnnotation::operation_runtime_plugins(
99 self.handle.runtime_plugins.clone(),
100 &self.handle.conf,
101 self.config_override,
102 );
103 crate::operation::put_object_annotation::PutObjectAnnotation::orchestrate(&runtime_plugins, input).await
104 }
105
106 pub fn customize(
108 self,
109 ) -> crate::client::customize::CustomizableOperation<
110 crate::operation::put_object_annotation::PutObjectAnnotationOutput,
111 crate::operation::put_object_annotation::PutObjectAnnotationError,
112 Self,
113 > {
114 crate::client::customize::CustomizableOperation::new(self)
115 }
116 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
117 self.set_config_override(::std::option::Option::Some(config_override.into()));
118 self
119 }
120
121 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
122 self.config_override = config_override;
123 self
124 }
125 pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
127 self.inner = self.inner.bucket(input.into());
128 self
129 }
130 pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
132 self.inner = self.inner.set_bucket(input);
133 self
134 }
135 pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
137 self.inner.get_bucket()
138 }
139 pub fn key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
141 self.inner = self.inner.key(input.into());
142 self
143 }
144 pub fn set_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
146 self.inner = self.inner.set_key(input);
147 self
148 }
149 pub fn get_key(&self) -> &::std::option::Option<::std::string::String> {
151 self.inner.get_key()
152 }
153 pub fn version_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
155 self.inner = self.inner.version_id(input.into());
156 self
157 }
158 pub fn set_version_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
160 self.inner = self.inner.set_version_id(input);
161 self
162 }
163 pub fn get_version_id(&self) -> &::std::option::Option<::std::string::String> {
165 self.inner.get_version_id()
166 }
167 pub fn annotation_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
170 self.inner = self.inner.annotation_name(input.into());
171 self
172 }
173 pub fn set_annotation_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
176 self.inner = self.inner.set_annotation_name(input);
177 self
178 }
179 pub fn get_annotation_name(&self) -> &::std::option::Option<::std::string::String> {
182 self.inner.get_annotation_name()
183 }
184 pub fn annotation_payload(mut self, input: ::aws_smithy_types::byte_stream::ByteStream) -> Self {
186 self.inner = self.inner.annotation_payload(input);
187 self
188 }
189 pub fn set_annotation_payload(mut self, input: ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>) -> Self {
191 self.inner = self.inner.set_annotation_payload(input);
192 self
193 }
194 pub fn get_annotation_payload(&self) -> &::std::option::Option<::aws_smithy_types::byte_stream::ByteStream> {
196 self.inner.get_annotation_payload()
197 }
198 pub fn object_if_match(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
200 self.inner = self.inner.object_if_match(input.into());
201 self
202 }
203 pub fn set_object_if_match(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
205 self.inner = self.inner.set_object_if_match(input);
206 self
207 }
208 pub fn get_object_if_match(&self) -> &::std::option::Option<::std::string::String> {
210 self.inner.get_object_if_match()
211 }
212 pub fn checksum_algorithm(mut self, input: crate::types::ChecksumAlgorithm) -> Self {
214 self.inner = self.inner.checksum_algorithm(input);
215 self
216 }
217 pub fn set_checksum_algorithm(mut self, input: ::std::option::Option<crate::types::ChecksumAlgorithm>) -> Self {
219 self.inner = self.inner.set_checksum_algorithm(input);
220 self
221 }
222 pub fn get_checksum_algorithm(&self) -> &::std::option::Option<crate::types::ChecksumAlgorithm> {
224 self.inner.get_checksum_algorithm()
225 }
226 pub fn checksum_crc32(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
228 self.inner = self.inner.checksum_crc32(input.into());
229 self
230 }
231 pub fn set_checksum_crc32(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
233 self.inner = self.inner.set_checksum_crc32(input);
234 self
235 }
236 pub fn get_checksum_crc32(&self) -> &::std::option::Option<::std::string::String> {
238 self.inner.get_checksum_crc32()
239 }
240 pub fn checksum_crc32_c(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
242 self.inner = self.inner.checksum_crc32_c(input.into());
243 self
244 }
245 pub fn set_checksum_crc32_c(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
247 self.inner = self.inner.set_checksum_crc32_c(input);
248 self
249 }
250 pub fn get_checksum_crc32_c(&self) -> &::std::option::Option<::std::string::String> {
252 self.inner.get_checksum_crc32_c()
253 }
254 pub fn checksum_crc64_nvme(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
256 self.inner = self.inner.checksum_crc64_nvme(input.into());
257 self
258 }
259 pub fn set_checksum_crc64_nvme(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
261 self.inner = self.inner.set_checksum_crc64_nvme(input);
262 self
263 }
264 pub fn get_checksum_crc64_nvme(&self) -> &::std::option::Option<::std::string::String> {
266 self.inner.get_checksum_crc64_nvme()
267 }
268 pub fn checksum_sha1(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
270 self.inner = self.inner.checksum_sha1(input.into());
271 self
272 }
273 pub fn set_checksum_sha1(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
275 self.inner = self.inner.set_checksum_sha1(input);
276 self
277 }
278 pub fn get_checksum_sha1(&self) -> &::std::option::Option<::std::string::String> {
280 self.inner.get_checksum_sha1()
281 }
282 pub fn checksum_sha256(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
284 self.inner = self.inner.checksum_sha256(input.into());
285 self
286 }
287 pub fn set_checksum_sha256(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
289 self.inner = self.inner.set_checksum_sha256(input);
290 self
291 }
292 pub fn get_checksum_sha256(&self) -> &::std::option::Option<::std::string::String> {
294 self.inner.get_checksum_sha256()
295 }
296 pub fn checksum_sha512(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
298 self.inner = self.inner.checksum_sha512(input.into());
299 self
300 }
301 pub fn set_checksum_sha512(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
303 self.inner = self.inner.set_checksum_sha512(input);
304 self
305 }
306 pub fn get_checksum_sha512(&self) -> &::std::option::Option<::std::string::String> {
308 self.inner.get_checksum_sha512()
309 }
310 pub fn checksum_md5(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
312 self.inner = self.inner.checksum_md5(input.into());
313 self
314 }
315 pub fn set_checksum_md5(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
317 self.inner = self.inner.set_checksum_md5(input);
318 self
319 }
320 pub fn get_checksum_md5(&self) -> &::std::option::Option<::std::string::String> {
322 self.inner.get_checksum_md5()
323 }
324 pub fn checksum_xxhash64(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
326 self.inner = self.inner.checksum_xxhash64(input.into());
327 self
328 }
329 pub fn set_checksum_xxhash64(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
331 self.inner = self.inner.set_checksum_xxhash64(input);
332 self
333 }
334 pub fn get_checksum_xxhash64(&self) -> &::std::option::Option<::std::string::String> {
336 self.inner.get_checksum_xxhash64()
337 }
338 pub fn checksum_xxhash3(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
340 self.inner = self.inner.checksum_xxhash3(input.into());
341 self
342 }
343 pub fn set_checksum_xxhash3(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
345 self.inner = self.inner.set_checksum_xxhash3(input);
346 self
347 }
348 pub fn get_checksum_xxhash3(&self) -> &::std::option::Option<::std::string::String> {
350 self.inner.get_checksum_xxhash3()
351 }
352 pub fn checksum_xxhash128(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
354 self.inner = self.inner.checksum_xxhash128(input.into());
355 self
356 }
357 pub fn set_checksum_xxhash128(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
359 self.inner = self.inner.set_checksum_xxhash128(input);
360 self
361 }
362 pub fn get_checksum_xxhash128(&self) -> &::std::option::Option<::std::string::String> {
364 self.inner.get_checksum_xxhash128()
365 }
366 pub fn content_md5(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
368 self.inner = self.inner.content_md5(input.into());
369 self
370 }
371 pub fn set_content_md5(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
373 self.inner = self.inner.set_content_md5(input);
374 self
375 }
376 pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> {
378 self.inner.get_content_md5()
379 }
380 pub fn request_payer(mut self, input: crate::types::RequestPayer) -> Self {
384 self.inner = self.inner.request_payer(input);
385 self
386 }
387 pub fn set_request_payer(mut self, input: ::std::option::Option<crate::types::RequestPayer>) -> Self {
391 self.inner = self.inner.set_request_payer(input);
392 self
393 }
394 pub fn get_request_payer(&self) -> &::std::option::Option<crate::types::RequestPayer> {
398 self.inner.get_request_payer()
399 }
400 pub fn expected_bucket_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
402 self.inner = self.inner.expected_bucket_owner(input.into());
403 self
404 }
405 pub fn set_expected_bucket_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
407 self.inner = self.inner.set_expected_bucket_owner(input);
408 self
409 }
410 pub fn get_expected_bucket_owner(&self) -> &::std::option::Option<::std::string::String> {
412 self.inner.get_expected_bucket_owner()
413 }
414}