aws_sdk_sts/operation/get_caller_identity/
builders.rs1pub use crate::operation::get_caller_identity::_get_caller_identity_output::GetCallerIdentityOutputBuilder;
3
4pub use crate::operation::get_caller_identity::_get_caller_identity_input::GetCallerIdentityInputBuilder;
5
6impl crate::operation::get_caller_identity::builders::GetCallerIdentityInputBuilder {
7                    pub async fn send_with(self, client: &crate::Client) -> ::std::result::Result<
9                        crate::operation::get_caller_identity::GetCallerIdentityOutput,
10                        ::aws_smithy_runtime_api::client::result::SdkError<
11                            crate::operation::get_caller_identity::GetCallerIdentityError,
12                            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse
13                        >
14                    > {
15                        let mut fluent_builder = client.get_caller_identity();
16                        fluent_builder.inner = self;
17                        fluent_builder.send().await
18                    }
19                }
20#[derive(::std::clone::Clone, ::std::fmt::Debug)]
26pub struct GetCallerIdentityFluentBuilder {
27                handle: ::std::sync::Arc<crate::client::Handle>,
28                inner: crate::operation::get_caller_identity::builders::GetCallerIdentityInputBuilder,
29config_override: ::std::option::Option<crate::config::Builder>,
30            }
31impl
32                crate::client::customize::internal::CustomizableSend<
33                    crate::operation::get_caller_identity::GetCallerIdentityOutput,
34                    crate::operation::get_caller_identity::GetCallerIdentityError,
35                > for GetCallerIdentityFluentBuilder
36            {
37                fn send(
38                    self,
39                    config_override: crate::config::Builder,
40                ) -> crate::client::customize::internal::BoxFuture<
41                    crate::client::customize::internal::SendResult<
42                        crate::operation::get_caller_identity::GetCallerIdentityOutput,
43                        crate::operation::get_caller_identity::GetCallerIdentityError,
44                    >,
45                > {
46                    ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
47                }
48            }
49impl GetCallerIdentityFluentBuilder {
50    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
52                        Self {
53                            handle,
54                            inner: ::std::default::Default::default(),
55    config_override: ::std::option::Option::None,
56                        }
57                    }
58    pub fn as_input(&self) -> &crate::operation::get_caller_identity::builders::GetCallerIdentityInputBuilder {
60                        &self.inner
61                    }
62    pub async fn send(self) -> ::std::result::Result<crate::operation::get_caller_identity::GetCallerIdentityOutput, ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_caller_identity::GetCallerIdentityError, ::aws_smithy_runtime_api::client::orchestrator::HttpResponse>> {
71                        let input = self.inner.build().map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
72                        let runtime_plugins = crate::operation::get_caller_identity::GetCallerIdentity::operation_runtime_plugins(
73                            self.handle.runtime_plugins.clone(),
74                            &self.handle.conf,
75                            self.config_override,
76                        );
77                        crate::operation::get_caller_identity::GetCallerIdentity::orchestrate(&runtime_plugins, input).await
78                    }
79    
80                    pub fn customize(
82                        self,
83                    ) -> crate::client::customize::CustomizableOperation<crate::operation::get_caller_identity::GetCallerIdentityOutput, crate::operation::get_caller_identity::GetCallerIdentityError, Self> {
84                        crate::client::customize::CustomizableOperation::new(self)
85                    }
86    pub(crate) fn config_override(
87                            mut self,
88                            config_override: impl ::std::convert::Into<crate::config::Builder>,
89                        ) -> Self {
90                            self.set_config_override(::std::option::Option::Some(config_override.into()));
91                            self
92                        }
93    
94                        pub(crate) fn set_config_override(
95                            &mut self,
96                            config_override: ::std::option::Option<crate::config::Builder>,
97                        ) -> &mut Self {
98                            self.config_override = config_override;
99                            self
100                        }
101}
102