pub use crate::deps::aws_cryptography_materialProviders::operation::on_decrypt::_on_decrypt_output::OnDecryptOutputBuilder;
pub use crate::deps::aws_cryptography_materialProviders::operation::on_decrypt::_on_decrypt_input::OnDecryptInputBuilder;
impl OnDecryptInputBuilder {
pub async fn send_with(
self,
keyring: &crate::deps::aws_cryptography_materialProviders::types::keyring::KeyringRef,
) -> ::std::result::Result<
crate::deps::aws_cryptography_materialProviders::operation::on_decrypt::OnDecryptOutput,
crate::deps::aws_cryptography_materialProviders::types::error::Error,
> {
let mut fluent_builder = keyring.on_decrypt();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct OnDecryptFluentBuilder {
keyring: crate::deps::aws_cryptography_materialProviders::types::keyring::KeyringRef,
pub(crate) inner: crate::deps::aws_cryptography_materialProviders::operation::on_decrypt::builders::OnDecryptInputBuilder,
}
impl OnDecryptFluentBuilder {
pub(crate) fn new(
keyring: crate::deps::aws_cryptography_materialProviders::types::keyring::KeyringRef,
) -> Self {
Self {
keyring,
inner: ::std::default::Default::default(),
}
}
pub fn as_input(&self) -> &crate::deps::aws_cryptography_materialProviders::operation::on_decrypt::builders::OnDecryptInputBuilder{
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::deps::aws_cryptography_materialProviders::operation::on_decrypt::OnDecryptOutput,
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::on_decrypt::OnDecrypt::send(
&self.keyring,
input,
)
.await
}
#[allow(missing_docs)]
pub fn encrypted_data_keys(
mut self,
input: impl ::std::convert::Into<
::std::vec::Vec<
crate::deps::aws_cryptography_materialProviders::types::EncryptedDataKey,
>,
>,
) -> Self {
self.inner = self.inner.encrypted_data_keys(input.into());
self
}
#[allow(missing_docs)]
pub fn set_encrypted_data_keys(
mut self,
input: ::std::option::Option<
::std::vec::Vec<
crate::deps::aws_cryptography_materialProviders::types::EncryptedDataKey,
>,
>,
) -> Self {
self.inner = self.inner.set_encrypted_data_keys(input);
self
}
#[allow(missing_docs)]
pub fn get_encrypted_data_keys(
&self,
) -> &::std::option::Option<
::std::vec::Vec<crate::deps::aws_cryptography_materialProviders::types::EncryptedDataKey>,
> {
self.inner.get_encrypted_data_keys()
}
#[allow(missing_docs)]
pub fn materials(
mut self,
input: impl ::std::convert::Into<
crate::deps::aws_cryptography_materialProviders::types::DecryptionMaterials,
>,
) -> Self {
self.inner = self.inner.materials(input.into());
self
}
#[allow(missing_docs)]
pub fn set_materials(
mut self,
input: ::std::option::Option<
crate::deps::aws_cryptography_materialProviders::types::DecryptionMaterials,
>,
) -> Self {
self.inner = self.inner.set_materials(input);
self
}
#[allow(missing_docs)]
pub fn get_materials(
&self,
) -> &::std::option::Option<
crate::deps::aws_cryptography_materialProviders::types::DecryptionMaterials,
> {
self.inner.get_materials()
}
}