pub use crate::deps::aws_cryptography_materialProviders::operation::get_client::_get_client_output::GetClientOutputBuilder;
pub use crate::deps::aws_cryptography_materialProviders::operation::get_client::_get_client_input::GetClientInputBuilder;
impl GetClientInputBuilder {
pub async fn send_with(
self,
client_supplier: &crate::deps::aws_cryptography_materialProviders::types::client_supplier::ClientSupplierRef,
) -> ::std::result::Result<
crate::deps::com_amazonaws_kms::client::Client,
crate::deps::aws_cryptography_materialProviders::types::error::Error,
> {
let mut fluent_builder = client_supplier.get_client();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct GetClientFluentBuilder {
client_supplier: crate::deps::aws_cryptography_materialProviders::types::client_supplier::ClientSupplierRef,
pub(crate) inner: crate::deps::aws_cryptography_materialProviders::operation::get_client::builders::GetClientInputBuilder,
}
impl GetClientFluentBuilder {
pub(crate) fn new(
client_supplier: crate::deps::aws_cryptography_materialProviders::types::client_supplier::ClientSupplierRef,
) -> Self {
Self {
client_supplier,
inner: ::std::default::Default::default(),
}
}
pub fn as_input(&self) -> &crate::deps::aws_cryptography_materialProviders::operation::get_client::builders::GetClientInputBuilder{
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::deps::com_amazonaws_kms::client::Client,
crate::deps::aws_cryptography_materialProviders::types::error::Error,
> {
let input = self
.inner
.build()
.map_err(|mut e| {
let msg = format!("{:?}", e);
crate::deps::aws_cryptography_materialProviders::types::error::Error::OpaqueWithText {
obj: ::dafny_runtime::Object::from_ref(&mut e as &mut ::dafny_runtime::DynAny),
objMessage: msg
}})?;
crate::deps::aws_cryptography_materialProviders::operation::get_client::GetClient::send(
&self.client_supplier,
input,
)
.await
}
pub fn region(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.region(input.into());
self
}
pub fn set_region(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_region(input);
self
}
pub fn get_region(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_region()
}
}