pub use crate::deps::aws_cryptography_materialProviders::operation::get_cache_entry::_get_cache_entry_output::GetCacheEntryOutputBuilder;
pub use crate::deps::aws_cryptography_materialProviders::operation::get_cache_entry::_get_cache_entry_input::GetCacheEntryInputBuilder;
impl GetCacheEntryInputBuilder {
pub async fn send_with(
self,
cryptographic_materials_cache: &crate::deps::aws_cryptography_materialProviders::types::cryptographic_materials_cache::CryptographicMaterialsCacheRef,
) -> ::std::result::Result<
crate::deps::aws_cryptography_materialProviders::operation::get_cache_entry::GetCacheEntryOutput,
crate::deps::aws_cryptography_materialProviders::types::error::Error,
>{
let mut fluent_builder = cryptographic_materials_cache.get_cache_entry();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct GetCacheEntryFluentBuilder {
cryptographic_materials_cache: crate::deps::aws_cryptography_materialProviders::types::cryptographic_materials_cache::CryptographicMaterialsCacheRef,
pub(crate) inner: crate::deps::aws_cryptography_materialProviders::operation::get_cache_entry::builders::GetCacheEntryInputBuilder,
}
impl GetCacheEntryFluentBuilder {
pub(crate) fn new(
cryptographic_materials_cache: crate::deps::aws_cryptography_materialProviders::types::cryptographic_materials_cache::CryptographicMaterialsCacheRef,
) -> Self {
Self {
cryptographic_materials_cache,
inner: ::std::default::Default::default(),
}
}
pub fn as_input(&self) -> &crate::deps::aws_cryptography_materialProviders::operation::get_cache_entry::builders::GetCacheEntryInputBuilder{
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::deps::aws_cryptography_materialProviders::operation::get_cache_entry::GetCacheEntryOutput,
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_cache_entry::GetCacheEntry::send(&self.cryptographic_materials_cache, input).await
}
#[allow(missing_docs)]
pub fn bytes_used(mut self, input: impl ::std::convert::Into<::std::primitive::i64>) -> Self {
self.inner = self.inner.bytes_used(input.into());
self
}
#[allow(missing_docs)]
pub fn set_bytes_used(mut self, input: ::std::option::Option<::std::primitive::i64>) -> Self {
self.inner = self.inner.set_bytes_used(input);
self
}
#[allow(missing_docs)]
pub fn get_bytes_used(&self) -> &::std::option::Option<::std::primitive::i64> {
self.inner.get_bytes_used()
}
#[allow(missing_docs)]
pub fn identifier(
mut self,
input: impl ::std::convert::Into<::aws_smithy_types::Blob>,
) -> Self {
self.inner = self.inner.identifier(input.into());
self
}
#[allow(missing_docs)]
pub fn set_identifier(
mut self,
input: ::std::option::Option<::aws_smithy_types::Blob>,
) -> Self {
self.inner = self.inner.set_identifier(input);
self
}
#[allow(missing_docs)]
pub fn get_identifier(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
self.inner.get_identifier()
}
}