aws_sdk_s3/operation/update_bucket_metadata_annotation_table_configuration/
builders.rs1pub use crate::operation::update_bucket_metadata_annotation_table_configuration::_update_bucket_metadata_annotation_table_configuration_input::UpdateBucketMetadataAnnotationTableConfigurationInputBuilder;
3
4pub use crate::operation::update_bucket_metadata_annotation_table_configuration::_update_bucket_metadata_annotation_table_configuration_output::UpdateBucketMetadataAnnotationTableConfigurationOutputBuilder;
5
6impl crate::operation::update_bucket_metadata_annotation_table_configuration::builders::UpdateBucketMetadataAnnotationTableConfigurationInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.update_bucket_metadata_annotation_table_configuration();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
37pub struct UpdateBucketMetadataAnnotationTableConfigurationFluentBuilder {
38 handle: ::std::sync::Arc<crate::client::Handle>,
39 inner: crate::operation::update_bucket_metadata_annotation_table_configuration::builders::UpdateBucketMetadataAnnotationTableConfigurationInputBuilder,
40config_override: ::std::option::Option<crate::config::Builder>,
41 }
42impl
43 crate::client::customize::internal::CustomizableSend<
44 crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationOutput,
45 crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationError,
46 > for UpdateBucketMetadataAnnotationTableConfigurationFluentBuilder
47{
48 fn send(
49 self,
50 config_override: crate::config::Builder,
51 ) -> crate::client::customize::internal::BoxFuture<
52 crate::client::customize::internal::SendResult<
53 crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationOutput,
54 crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationError,
55 >,
56 > {
57 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
58 }
59}
60impl UpdateBucketMetadataAnnotationTableConfigurationFluentBuilder {
61 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
63 Self {
64 handle,
65 inner: ::std::default::Default::default(),
66 config_override: ::std::option::Option::None,
67 }
68 }
69 pub fn as_input(&self) -> &crate::operation::update_bucket_metadata_annotation_table_configuration::builders::UpdateBucketMetadataAnnotationTableConfigurationInputBuilder{
71 &self.inner
72 }
73 pub async fn send(
82 self,
83 ) -> ::std::result::Result<
84 crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationOutput,
85 ::aws_smithy_runtime_api::client::result::SdkError<
86 crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationError,
87 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
88 >,
89 > {
90 let input = self
91 .inner
92 .build()
93 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
94 let runtime_plugins = crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfiguration::operation_runtime_plugins(
95 self.handle.runtime_plugins.clone(),
96 &self.handle.conf,
97 self.config_override,
98 );
99 crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfiguration::orchestrate(
100 &runtime_plugins,
101 input,
102 )
103 .await
104 }
105
106 pub fn customize(
108 self,
109 ) -> crate::client::customize::CustomizableOperation<
110 crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationOutput,
111 crate::operation::update_bucket_metadata_annotation_table_configuration::UpdateBucketMetadataAnnotationTableConfigurationError,
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 content_md5(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
141 self.inner = self.inner.content_md5(input.into());
142 self
143 }
144 pub fn set_content_md5(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
146 self.inner = self.inner.set_content_md5(input);
147 self
148 }
149 pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> {
151 self.inner.get_content_md5()
152 }
153 pub fn checksum_algorithm(mut self, input: crate::types::ChecksumAlgorithm) -> Self {
155 self.inner = self.inner.checksum_algorithm(input);
156 self
157 }
158 pub fn set_checksum_algorithm(mut self, input: ::std::option::Option<crate::types::ChecksumAlgorithm>) -> Self {
160 self.inner = self.inner.set_checksum_algorithm(input);
161 self
162 }
163 pub fn get_checksum_algorithm(&self) -> &::std::option::Option<crate::types::ChecksumAlgorithm> {
165 self.inner.get_checksum_algorithm()
166 }
167 pub fn annotation_table_configuration(mut self, input: crate::types::AnnotationTableConfigurationUpdates) -> Self {
169 self.inner = self.inner.annotation_table_configuration(input);
170 self
171 }
172 pub fn set_annotation_table_configuration(mut self, input: ::std::option::Option<crate::types::AnnotationTableConfigurationUpdates>) -> Self {
174 self.inner = self.inner.set_annotation_table_configuration(input);
175 self
176 }
177 pub fn get_annotation_table_configuration(&self) -> &::std::option::Option<crate::types::AnnotationTableConfigurationUpdates> {
179 self.inner.get_annotation_table_configuration()
180 }
181 pub fn expected_bucket_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
183 self.inner = self.inner.expected_bucket_owner(input.into());
184 self
185 }
186 pub fn set_expected_bucket_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
188 self.inner = self.inner.set_expected_bucket_owner(input);
189 self
190 }
191 pub fn get_expected_bucket_owner(&self) -> &::std::option::Option<::std::string::String> {
193 self.inner.get_expected_bucket_owner()
194 }
195}