aws_sdk_location/operation/list_maps/
builders.rs1pub use crate::operation::list_maps::_list_maps_input::ListMapsInputBuilder;
3
4pub use crate::operation::list_maps::_list_maps_output::ListMapsOutputBuilder;
5
6impl crate::operation::list_maps::builders::ListMapsInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::list_maps::ListMapsOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::list_maps::ListMapsError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.list_maps();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
42pub struct ListMapsFluentBuilder {
43 handle: ::std::sync::Arc<crate::client::Handle>,
44 inner: crate::operation::list_maps::builders::ListMapsInputBuilder,
45 config_override: ::std::option::Option<crate::config::Builder>,
46}
47impl crate::client::customize::internal::CustomizableSend<crate::operation::list_maps::ListMapsOutput, crate::operation::list_maps::ListMapsError>
48 for ListMapsFluentBuilder
49{
50 fn send(
51 self,
52 config_override: crate::config::Builder,
53 ) -> crate::client::customize::internal::BoxFuture<
54 crate::client::customize::internal::SendResult<crate::operation::list_maps::ListMapsOutput, crate::operation::list_maps::ListMapsError>,
55 > {
56 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
57 }
58}
59impl ListMapsFluentBuilder {
60 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
62 Self {
63 handle,
64 inner: ::std::default::Default::default(),
65 config_override: ::std::option::Option::None,
66 }
67 }
68 pub fn as_input(&self) -> &crate::operation::list_maps::builders::ListMapsInputBuilder {
70 &self.inner
71 }
72 pub async fn send(
81 self,
82 ) -> ::std::result::Result<
83 crate::operation::list_maps::ListMapsOutput,
84 ::aws_smithy_runtime_api::client::result::SdkError<
85 crate::operation::list_maps::ListMapsError,
86 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
87 >,
88 > {
89 let input = self
90 .inner
91 .build()
92 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
93 let runtime_plugins = crate::operation::list_maps::ListMaps::operation_runtime_plugins(
94 self.handle.runtime_plugins.clone(),
95 &self.handle.conf,
96 self.config_override,
97 );
98 crate::operation::list_maps::ListMaps::orchestrate(&runtime_plugins, input).await
99 }
100
101 pub fn customize(
103 self,
104 ) -> crate::client::customize::CustomizableOperation<crate::operation::list_maps::ListMapsOutput, crate::operation::list_maps::ListMapsError, Self>
105 {
106 crate::client::customize::CustomizableOperation::new(self)
107 }
108 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
109 self.set_config_override(::std::option::Option::Some(config_override.into()));
110 self
111 }
112
113 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
114 self.config_override = config_override;
115 self
116 }
117 pub fn into_paginator(self) -> crate::operation::list_maps::paginator::ListMapsPaginator {
121 crate::operation::list_maps::paginator::ListMapsPaginator::new(self.handle, self.inner)
122 }
123 pub fn max_results(mut self, input: i32) -> Self {
126 self.inner = self.inner.max_results(input);
127 self
128 }
129 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
132 self.inner = self.inner.set_max_results(input);
133 self
134 }
135 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
138 self.inner.get_max_results()
139 }
140 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
143 self.inner = self.inner.next_token(input.into());
144 self
145 }
146 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
149 self.inner = self.inner.set_next_token(input);
150 self
151 }
152 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
155 self.inner.get_next_token()
156 }
157}