aws_sdk_sso/operation/list_account_roles/
builders.rs1pub use crate::operation::list_account_roles::_list_account_roles_output::ListAccountRolesOutputBuilder;
3
4pub use crate::operation::list_account_roles::_list_account_roles_input::ListAccountRolesInputBuilder;
5
6impl crate::operation::list_account_roles::builders::ListAccountRolesInputBuilder {
7                    pub async fn send_with(self, client: &crate::Client) -> ::std::result::Result<
9                        crate::operation::list_account_roles::ListAccountRolesOutput,
10                        ::aws_smithy_runtime_api::client::result::SdkError<
11                            crate::operation::list_account_roles::ListAccountRolesError,
12                            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse
13                        >
14                    > {
15                        let mut fluent_builder = client.list_account_roles();
16                        fluent_builder.inner = self;
17                        fluent_builder.send().await
18                    }
19                }
20#[derive(::std::clone::Clone, ::std::fmt::Debug)]
24pub struct ListAccountRolesFluentBuilder {
25                handle: ::std::sync::Arc<crate::client::Handle>,
26                inner: crate::operation::list_account_roles::builders::ListAccountRolesInputBuilder,
27config_override: ::std::option::Option<crate::config::Builder>,
28            }
29impl
30                crate::client::customize::internal::CustomizableSend<
31                    crate::operation::list_account_roles::ListAccountRolesOutput,
32                    crate::operation::list_account_roles::ListAccountRolesError,
33                > for ListAccountRolesFluentBuilder
34            {
35                fn send(
36                    self,
37                    config_override: crate::config::Builder,
38                ) -> crate::client::customize::internal::BoxFuture<
39                    crate::client::customize::internal::SendResult<
40                        crate::operation::list_account_roles::ListAccountRolesOutput,
41                        crate::operation::list_account_roles::ListAccountRolesError,
42                    >,
43                > {
44                    ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
45                }
46            }
47impl ListAccountRolesFluentBuilder {
48    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
50                        Self {
51                            handle,
52                            inner: ::std::default::Default::default(),
53    config_override: ::std::option::Option::None,
54                        }
55                    }
56    pub fn as_input(&self) -> &crate::operation::list_account_roles::builders::ListAccountRolesInputBuilder {
58                        &self.inner
59                    }
60    pub async fn send(self) -> ::std::result::Result<crate::operation::list_account_roles::ListAccountRolesOutput, ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_account_roles::ListAccountRolesError, ::aws_smithy_runtime_api::client::orchestrator::HttpResponse>> {
69                        let input = self.inner.build().map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
70                        let runtime_plugins = crate::operation::list_account_roles::ListAccountRoles::operation_runtime_plugins(
71                            self.handle.runtime_plugins.clone(),
72                            &self.handle.conf,
73                            self.config_override,
74                        );
75                        crate::operation::list_account_roles::ListAccountRoles::orchestrate(&runtime_plugins, input).await
76                    }
77    
78                    pub fn customize(
80                        self,
81                    ) -> crate::client::customize::CustomizableOperation<crate::operation::list_account_roles::ListAccountRolesOutput, crate::operation::list_account_roles::ListAccountRolesError, Self> {
82                        crate::client::customize::CustomizableOperation::new(self)
83                    }
84    pub(crate) fn config_override(
85                            mut self,
86                            config_override: impl ::std::convert::Into<crate::config::Builder>,
87                        ) -> Self {
88                            self.set_config_override(::std::option::Option::Some(config_override.into()));
89                            self
90                        }
91    
92                        pub(crate) fn set_config_override(
93                            &mut self,
94                            config_override: ::std::option::Option<crate::config::Builder>,
95                        ) -> &mut Self {
96                            self.config_override = config_override;
97                            self
98                        }
99    pub fn into_paginator(self) -> crate::operation::list_account_roles::paginator::ListAccountRolesPaginator {
103                                    crate::operation::list_account_roles::paginator::ListAccountRolesPaginator::new(self.handle, self.inner)
104                                }
105    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
107                    self.inner = self.inner.next_token(input.into());
108                    self
109                }
110    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
112                    self.inner = self.inner.set_next_token(input);
113                    self
114                }
115    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
117                    self.inner.get_next_token()
118                }
119    pub fn max_results(mut self, input: i32) -> Self {
121                    self.inner = self.inner.max_results(input);
122                    self
123                }
124    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
126                    self.inner = self.inner.set_max_results(input);
127                    self
128                }
129    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
131                    self.inner.get_max_results()
132                }
133    pub fn access_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
135                    self.inner = self.inner.access_token(input.into());
136                    self
137                }
138    pub fn set_access_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
140                    self.inner = self.inner.set_access_token(input);
141                    self
142                }
143    pub fn get_access_token(&self) -> &::std::option::Option<::std::string::String> {
145                    self.inner.get_access_token()
146                }
147    pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
149                    self.inner = self.inner.account_id(input.into());
150                    self
151                }
152    pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
154                    self.inner = self.inner.set_account_id(input);
155                    self
156                }
157    pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
159                    self.inner.get_account_id()
160                }
161}
162