pub use crate::deps::aws_cryptography_primitives::operation::rsa_encrypt::_rsa_encrypt_output::RsaEncryptOutputBuilder;
pub use crate::deps::aws_cryptography_primitives::operation::rsa_encrypt::_rsa_encrypt_input::RsaEncryptInputBuilder;
impl RsaEncryptInputBuilder {
pub async fn send_with(
self,
client: &crate::deps::aws_cryptography_primitives::client::Client,
) -> ::std::result::Result<
::aws_smithy_types::Blob,
crate::deps::aws_cryptography_primitives::types::error::Error,
> {
let mut fluent_builder = client.rsa_encrypt();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct RsaEncryptFluentBuilder {
client: crate::deps::aws_cryptography_primitives::client::Client,
pub(crate) inner: crate::deps::aws_cryptography_primitives::operation::rsa_encrypt::builders::RsaEncryptInputBuilder,
}
impl RsaEncryptFluentBuilder {
pub(crate) fn new(client: crate::deps::aws_cryptography_primitives::client::Client) -> Self {
Self {
client,
inner: ::std::default::Default::default(),
}
}
pub fn as_input(&self) -> &crate::deps::aws_cryptography_primitives::operation::rsa_encrypt::builders::RsaEncryptInputBuilder{
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
::aws_smithy_types::Blob,
crate::deps::aws_cryptography_primitives::types::error::Error,
> {
let input = self
.inner
.build()
.map_err(|mut e| {
let msg = format!("{:?}", e);
crate::deps::aws_cryptography_primitives::types::error::Error::OpaqueWithText {
obj: ::dafny_runtime::Object::from_ref(&mut e as &mut ::dafny_runtime::DynAny),
objMessage: msg,
}
})?;
crate::deps::aws_cryptography_primitives::operation::rsa_encrypt::RsaEncrypt::send(
&self.client,
input,
)
.await
}
#[allow(missing_docs)]
pub fn padding(
mut self,
input: impl ::std::convert::Into<
crate::deps::aws_cryptography_primitives::types::RsaPaddingMode,
>,
) -> Self {
self.inner = self.inner.padding(input.into());
self
}
#[allow(missing_docs)]
pub fn set_padding(
mut self,
input: ::std::option::Option<
crate::deps::aws_cryptography_primitives::types::RsaPaddingMode,
>,
) -> Self {
self.inner = self.inner.set_padding(input);
self
}
#[allow(missing_docs)]
pub fn get_padding(
&self,
) -> &::std::option::Option<crate::deps::aws_cryptography_primitives::types::RsaPaddingMode>
{
self.inner.get_padding()
}
#[allow(missing_docs)]
pub fn plaintext(mut self, input: impl ::std::convert::Into<::aws_smithy_types::Blob>) -> Self {
self.inner = self.inner.plaintext(input.into());
self
}
#[allow(missing_docs)]
pub fn set_plaintext(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
self.inner = self.inner.set_plaintext(input);
self
}
#[allow(missing_docs)]
pub fn get_plaintext(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
self.inner.get_plaintext()
}
#[allow(missing_docs)]
pub fn public_key(
mut self,
input: impl ::std::convert::Into<::aws_smithy_types::Blob>,
) -> Self {
self.inner = self.inner.public_key(input.into());
self
}
#[allow(missing_docs)]
pub fn set_public_key(
mut self,
input: ::std::option::Option<::aws_smithy_types::Blob>,
) -> Self {
self.inner = self.inner.set_public_key(input);
self
}
#[allow(missing_docs)]
pub fn get_public_key(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
self.inner.get_public_key()
}
}