pub use crate::operation::get_map_tile::_get_map_tile_output::GetMapTileOutputBuilder;
pub use crate::operation::get_map_tile::_get_map_tile_input::GetMapTileInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetMapTileFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::get_map_tile::builders::GetMapTileInputBuilder,
}
impl GetMapTileFluentBuilder {
pub(crate) fn new(handle: std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
pub async fn customize(
self,
) -> std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::get_map_tile::GetMapTile,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::operation::get_map_tile::GetMapTileError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::client::customize::CustomizableOperation { handle, operation })
}
pub async fn send(
self,
) -> std::result::Result<
crate::operation::get_map_tile::GetMapTileOutput,
aws_smithy_http::result::SdkError<crate::operation::get_map_tile::GetMapTileError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
pub fn map_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.map_name(input.into());
self
}
pub fn set_map_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_map_name(input);
self
}
pub fn z(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.z(input.into());
self
}
pub fn set_z(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_z(input);
self
}
pub fn x(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.x(input.into());
self
}
pub fn set_x(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_x(input);
self
}
pub fn y(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.y(input.into());
self
}
pub fn set_y(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_y(input);
self
}
pub fn key(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.key(input.into());
self
}
pub fn set_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_key(input);
self
}
}