aws_sdk_s3/operation/get_object_annotation/
builders.rs1pub use crate::operation::get_object_annotation::_get_object_annotation_input::GetObjectAnnotationInputBuilder;
3
4pub use crate::operation::get_object_annotation::_get_object_annotation_output::GetObjectAnnotationOutputBuilder;
5
6impl crate::operation::get_object_annotation::builders::GetObjectAnnotationInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::get_object_annotation::GetObjectAnnotationOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::get_object_annotation::GetObjectAnnotationError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.get_object_annotation();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
39pub struct GetObjectAnnotationFluentBuilder {
40 handle: ::std::sync::Arc<crate::client::Handle>,
41 inner: crate::operation::get_object_annotation::builders::GetObjectAnnotationInputBuilder,
42 config_override: ::std::option::Option<crate::config::Builder>,
43}
44impl
45 crate::client::customize::internal::CustomizableSend<
46 crate::operation::get_object_annotation::GetObjectAnnotationOutput,
47 crate::operation::get_object_annotation::GetObjectAnnotationError,
48 > for GetObjectAnnotationFluentBuilder
49{
50 fn send(
51 self,
52 config_override: crate::config::Builder,
53 ) -> crate::client::customize::internal::BoxFuture<
54 crate::client::customize::internal::SendResult<
55 crate::operation::get_object_annotation::GetObjectAnnotationOutput,
56 crate::operation::get_object_annotation::GetObjectAnnotationError,
57 >,
58 > {
59 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
60 }
61}
62impl GetObjectAnnotationFluentBuilder {
63 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
65 Self {
66 handle,
67 inner: ::std::default::Default::default(),
68 config_override: ::std::option::Option::None,
69 }
70 }
71 pub fn as_input(&self) -> &crate::operation::get_object_annotation::builders::GetObjectAnnotationInputBuilder {
73 &self.inner
74 }
75 pub async fn send(
84 self,
85 ) -> ::std::result::Result<
86 crate::operation::get_object_annotation::GetObjectAnnotationOutput,
87 ::aws_smithy_runtime_api::client::result::SdkError<
88 crate::operation::get_object_annotation::GetObjectAnnotationError,
89 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
90 >,
91 > {
92 let input = self
93 .inner
94 .build()
95 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
96 let runtime_plugins = crate::operation::get_object_annotation::GetObjectAnnotation::operation_runtime_plugins(
97 self.handle.runtime_plugins.clone(),
98 &self.handle.conf,
99 self.config_override,
100 );
101 crate::operation::get_object_annotation::GetObjectAnnotation::orchestrate(&runtime_plugins, input).await
102 }
103
104 pub fn customize(
106 self,
107 ) -> crate::client::customize::CustomizableOperation<
108 crate::operation::get_object_annotation::GetObjectAnnotationOutput,
109 crate::operation::get_object_annotation::GetObjectAnnotationError,
110 Self,
111 > {
112 crate::client::customize::CustomizableOperation::new(self)
113 }
114 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
115 self.set_config_override(::std::option::Option::Some(config_override.into()));
116 self
117 }
118
119 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
120 self.config_override = config_override;
121 self
122 }
123 pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
125 self.inner = self.inner.bucket(input.into());
126 self
127 }
128 pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
130 self.inner = self.inner.set_bucket(input);
131 self
132 }
133 pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
135 self.inner.get_bucket()
136 }
137 pub fn key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
139 self.inner = self.inner.key(input.into());
140 self
141 }
142 pub fn set_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
144 self.inner = self.inner.set_key(input);
145 self
146 }
147 pub fn get_key(&self) -> &::std::option::Option<::std::string::String> {
149 self.inner.get_key()
150 }
151 pub fn annotation_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
154 self.inner = self.inner.annotation_name(input.into());
155 self
156 }
157 pub fn set_annotation_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
160 self.inner = self.inner.set_annotation_name(input);
161 self
162 }
163 pub fn get_annotation_name(&self) -> &::std::option::Option<::std::string::String> {
166 self.inner.get_annotation_name()
167 }
168 pub fn version_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
170 self.inner = self.inner.version_id(input.into());
171 self
172 }
173 pub fn set_version_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
175 self.inner = self.inner.set_version_id(input);
176 self
177 }
178 pub fn get_version_id(&self) -> &::std::option::Option<::std::string::String> {
180 self.inner.get_version_id()
181 }
182 pub fn request_payer(mut self, input: crate::types::RequestPayer) -> Self {
186 self.inner = self.inner.request_payer(input);
187 self
188 }
189 pub fn set_request_payer(mut self, input: ::std::option::Option<crate::types::RequestPayer>) -> Self {
193 self.inner = self.inner.set_request_payer(input);
194 self
195 }
196 pub fn get_request_payer(&self) -> &::std::option::Option<crate::types::RequestPayer> {
200 self.inner.get_request_payer()
201 }
202 pub fn expected_bucket_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
204 self.inner = self.inner.expected_bucket_owner(input.into());
205 self
206 }
207 pub fn set_expected_bucket_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
209 self.inner = self.inner.set_expected_bucket_owner(input);
210 self
211 }
212 pub fn get_expected_bucket_owner(&self) -> &::std::option::Option<::std::string::String> {
214 self.inner.get_expected_bucket_owner()
215 }
216 pub fn checksum_mode(mut self, input: crate::types::ChecksumMode) -> Self {
218 self.inner = self.inner.checksum_mode(input);
219 self
220 }
221 pub fn set_checksum_mode(mut self, input: ::std::option::Option<crate::types::ChecksumMode>) -> Self {
223 self.inner = self.inner.set_checksum_mode(input);
224 self
225 }
226 pub fn get_checksum_mode(&self) -> &::std::option::Option<crate::types::ChecksumMode> {
228 self.inner.get_checksum_mode()
229 }
230}