aws_sdk_cognitoidentity/operation/create_identity_pool/
builders.rs1pub use crate::operation::create_identity_pool::_create_identity_pool_output::CreateIdentityPoolOutputBuilder;
3
4pub use crate::operation::create_identity_pool::_create_identity_pool_input::CreateIdentityPoolInputBuilder;
5
6impl crate::operation::create_identity_pool::builders::CreateIdentityPoolInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::create_identity_pool::CreateIdentityPoolOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::create_identity_pool::CreateIdentityPoolError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.create_identity_pool();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
44pub struct CreateIdentityPoolFluentBuilder {
45 handle: ::std::sync::Arc<crate::client::Handle>,
46 inner: crate::operation::create_identity_pool::builders::CreateIdentityPoolInputBuilder,
47 config_override: ::std::option::Option<crate::config::Builder>,
48}
49impl
50 crate::client::customize::internal::CustomizableSend<
51 crate::operation::create_identity_pool::CreateIdentityPoolOutput,
52 crate::operation::create_identity_pool::CreateIdentityPoolError,
53 > for CreateIdentityPoolFluentBuilder
54{
55 fn send(
56 self,
57 config_override: crate::config::Builder,
58 ) -> crate::client::customize::internal::BoxFuture<
59 crate::client::customize::internal::SendResult<
60 crate::operation::create_identity_pool::CreateIdentityPoolOutput,
61 crate::operation::create_identity_pool::CreateIdentityPoolError,
62 >,
63 > {
64 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
65 }
66}
67impl CreateIdentityPoolFluentBuilder {
68 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
70 Self {
71 handle,
72 inner: ::std::default::Default::default(),
73 config_override: ::std::option::Option::None,
74 }
75 }
76 pub fn as_input(&self) -> &crate::operation::create_identity_pool::builders::CreateIdentityPoolInputBuilder {
78 &self.inner
79 }
80 pub async fn send(
89 self,
90 ) -> ::std::result::Result<
91 crate::operation::create_identity_pool::CreateIdentityPoolOutput,
92 ::aws_smithy_runtime_api::client::result::SdkError<
93 crate::operation::create_identity_pool::CreateIdentityPoolError,
94 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
95 >,
96 > {
97 let input = self
98 .inner
99 .build()
100 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
101 let runtime_plugins = crate::operation::create_identity_pool::CreateIdentityPool::operation_runtime_plugins(
102 self.handle.runtime_plugins.clone(),
103 &self.handle.conf,
104 self.config_override,
105 );
106 crate::operation::create_identity_pool::CreateIdentityPool::orchestrate(&runtime_plugins, input).await
107 }
108
109 pub fn customize(
111 self,
112 ) -> crate::client::customize::CustomizableOperation<
113 crate::operation::create_identity_pool::CreateIdentityPoolOutput,
114 crate::operation::create_identity_pool::CreateIdentityPoolError,
115 Self,
116 > {
117 crate::client::customize::CustomizableOperation::new(self)
118 }
119 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
120 self.set_config_override(::std::option::Option::Some(config_override.into()));
121 self
122 }
123
124 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
125 self.config_override = config_override;
126 self
127 }
128 pub fn identity_pool_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
130 self.inner = self.inner.identity_pool_name(input.into());
131 self
132 }
133 pub fn set_identity_pool_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
135 self.inner = self.inner.set_identity_pool_name(input);
136 self
137 }
138 pub fn get_identity_pool_name(&self) -> &::std::option::Option<::std::string::String> {
140 self.inner.get_identity_pool_name()
141 }
142 pub fn allow_unauthenticated_identities(mut self, input: bool) -> Self {
144 self.inner = self.inner.allow_unauthenticated_identities(input);
145 self
146 }
147 pub fn set_allow_unauthenticated_identities(mut self, input: ::std::option::Option<bool>) -> Self {
149 self.inner = self.inner.set_allow_unauthenticated_identities(input);
150 self
151 }
152 pub fn get_allow_unauthenticated_identities(&self) -> &::std::option::Option<bool> {
154 self.inner.get_allow_unauthenticated_identities()
155 }
156 pub fn allow_classic_flow(mut self, input: bool) -> Self {
158 self.inner = self.inner.allow_classic_flow(input);
159 self
160 }
161 pub fn set_allow_classic_flow(mut self, input: ::std::option::Option<bool>) -> Self {
163 self.inner = self.inner.set_allow_classic_flow(input);
164 self
165 }
166 pub fn get_allow_classic_flow(&self) -> &::std::option::Option<bool> {
168 self.inner.get_allow_classic_flow()
169 }
170 pub fn supported_login_providers(
177 mut self,
178 k: impl ::std::convert::Into<::std::string::String>,
179 v: impl ::std::convert::Into<::std::string::String>,
180 ) -> Self {
181 self.inner = self.inner.supported_login_providers(k.into(), v.into());
182 self
183 }
184 pub fn set_supported_login_providers(
186 mut self,
187 input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
188 ) -> Self {
189 self.inner = self.inner.set_supported_login_providers(input);
190 self
191 }
192 pub fn get_supported_login_providers(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
194 self.inner.get_supported_login_providers()
195 }
196 pub fn developer_provider_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
199 self.inner = self.inner.developer_provider_name(input.into());
200 self
201 }
202 pub fn set_developer_provider_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
205 self.inner = self.inner.set_developer_provider_name(input);
206 self
207 }
208 pub fn get_developer_provider_name(&self) -> &::std::option::Option<::std::string::String> {
211 self.inner.get_developer_provider_name()
212 }
213 pub fn open_id_connect_provider_arns(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
220 self.inner = self.inner.open_id_connect_provider_arns(input.into());
221 self
222 }
223 pub fn set_open_id_connect_provider_arns(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
225 self.inner = self.inner.set_open_id_connect_provider_arns(input);
226 self
227 }
228 pub fn get_open_id_connect_provider_arns(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
230 self.inner.get_open_id_connect_provider_arns()
231 }
232 pub fn cognito_identity_providers(mut self, input: crate::types::CognitoIdentityProvider) -> Self {
239 self.inner = self.inner.cognito_identity_providers(input);
240 self
241 }
242 pub fn set_cognito_identity_providers(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::CognitoIdentityProvider>>) -> Self {
244 self.inner = self.inner.set_cognito_identity_providers(input);
245 self
246 }
247 pub fn get_cognito_identity_providers(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::CognitoIdentityProvider>> {
249 self.inner.get_cognito_identity_providers()
250 }
251 pub fn saml_provider_arns(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
258 self.inner = self.inner.saml_provider_arns(input.into());
259 self
260 }
261 pub fn set_saml_provider_arns(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
263 self.inner = self.inner.set_saml_provider_arns(input);
264 self
265 }
266 pub fn get_saml_provider_arns(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
268 self.inner.get_saml_provider_arns()
269 }
270 pub fn identity_pool_tags(
277 mut self,
278 k: impl ::std::convert::Into<::std::string::String>,
279 v: impl ::std::convert::Into<::std::string::String>,
280 ) -> Self {
281 self.inner = self.inner.identity_pool_tags(k.into(), v.into());
282 self
283 }
284 pub fn set_identity_pool_tags(
286 mut self,
287 input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
288 ) -> Self {
289 self.inner = self.inner.set_identity_pool_tags(input);
290 self
291 }
292 pub fn get_identity_pool_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
294 self.inner.get_identity_pool_tags()
295 }
296}