aws_sdk_location/operation/update_map/
builders.rs1pub use crate::operation::update_map::_update_map_output::UpdateMapOutputBuilder;
3
4pub use crate::operation::update_map::_update_map_input::UpdateMapInputBuilder;
5
6impl crate::operation::update_map::builders::UpdateMapInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::update_map::UpdateMapOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::update_map::UpdateMapError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.update_map();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
42pub struct UpdateMapFluentBuilder {
43 handle: ::std::sync::Arc<crate::client::Handle>,
44 inner: crate::operation::update_map::builders::UpdateMapInputBuilder,
45 config_override: ::std::option::Option<crate::config::Builder>,
46}
47impl crate::client::customize::internal::CustomizableSend<crate::operation::update_map::UpdateMapOutput, crate::operation::update_map::UpdateMapError>
48 for UpdateMapFluentBuilder
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::update_map::UpdateMapOutput, crate::operation::update_map::UpdateMapError>,
55 > {
56 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
57 }
58}
59impl UpdateMapFluentBuilder {
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::update_map::builders::UpdateMapInputBuilder {
70 &self.inner
71 }
72 pub async fn send(
81 self,
82 ) -> ::std::result::Result<
83 crate::operation::update_map::UpdateMapOutput,
84 ::aws_smithy_runtime_api::client::result::SdkError<
85 crate::operation::update_map::UpdateMapError,
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::update_map::UpdateMap::operation_runtime_plugins(
94 self.handle.runtime_plugins.clone(),
95 &self.handle.conf,
96 self.config_override,
97 );
98 crate::operation::update_map::UpdateMap::orchestrate(&runtime_plugins, input).await
99 }
100
101 pub fn customize(
103 self,
104 ) -> crate::client::customize::CustomizableOperation<
105 crate::operation::update_map::UpdateMapOutput,
106 crate::operation::update_map::UpdateMapError,
107 Self,
108 > {
109 crate::client::customize::CustomizableOperation::new(self)
110 }
111 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
112 self.set_config_override(::std::option::Option::Some(config_override.into()));
113 self
114 }
115
116 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
117 self.config_override = config_override;
118 self
119 }
120 pub fn map_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
122 self.inner = self.inner.map_name(input.into());
123 self
124 }
125 pub fn set_map_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
127 self.inner = self.inner.set_map_name(input);
128 self
129 }
130 pub fn get_map_name(&self) -> &::std::option::Option<::std::string::String> {
132 self.inner.get_map_name()
133 }
134 #[deprecated(note = "Deprecated. If included, the only allowed value is RequestBasedUsage.", since = "2022-02-01")]
136 pub fn pricing_plan(mut self, input: crate::types::PricingPlan) -> Self {
137 self.inner = self.inner.pricing_plan(input);
138 self
139 }
140 #[deprecated(note = "Deprecated. If included, the only allowed value is RequestBasedUsage.", since = "2022-02-01")]
142 pub fn set_pricing_plan(mut self, input: ::std::option::Option<crate::types::PricingPlan>) -> Self {
143 self.inner = self.inner.set_pricing_plan(input);
144 self
145 }
146 #[deprecated(note = "Deprecated. If included, the only allowed value is RequestBasedUsage.", since = "2022-02-01")]
148 pub fn get_pricing_plan(&self) -> &::std::option::Option<crate::types::PricingPlan> {
149 self.inner.get_pricing_plan()
150 }
151 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
153 self.inner = self.inner.description(input.into());
154 self
155 }
156 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
158 self.inner = self.inner.set_description(input);
159 self
160 }
161 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
163 self.inner.get_description()
164 }
165 pub fn configuration_update(mut self, input: crate::types::MapConfigurationUpdate) -> Self {
167 self.inner = self.inner.configuration_update(input);
168 self
169 }
170 pub fn set_configuration_update(mut self, input: ::std::option::Option<crate::types::MapConfigurationUpdate>) -> Self {
172 self.inner = self.inner.set_configuration_update(input);
173 self
174 }
175 pub fn get_configuration_update(&self) -> &::std::option::Option<crate::types::MapConfigurationUpdate> {
177 self.inner.get_configuration_update()
178 }
179}