pub use crate::deps::aws_cryptography_materialProviders::operation::initialize_encryption_materials::_encryption_materials::EncryptionMaterialsBuilder;
pub use crate::deps::aws_cryptography_materialProviders::operation::initialize_encryption_materials::_initialize_encryption_materials_input::InitializeEncryptionMaterialsInputBuilder;
impl InitializeEncryptionMaterialsInputBuilder {
pub async fn send_with(
self,
client: &crate::deps::aws_cryptography_materialProviders::client::Client,
) -> ::std::result::Result<
crate::deps::aws_cryptography_materialProviders::operation::initialize_encryption_materials::EncryptionMaterials,
crate::deps::aws_cryptography_materialProviders::types::error::Error,
>{
let mut fluent_builder = client.initialize_encryption_materials();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct InitializeEncryptionMaterialsFluentBuilder {
client: crate::deps::aws_cryptography_materialProviders::client::Client,
pub(crate) inner: crate::deps::aws_cryptography_materialProviders::operation::initialize_encryption_materials::builders::InitializeEncryptionMaterialsInputBuilder,
}
impl InitializeEncryptionMaterialsFluentBuilder {
pub(crate) fn new(
client: crate::deps::aws_cryptography_materialProviders::client::Client,
) -> Self {
Self {
client,
inner: ::std::default::Default::default(),
}
}
pub fn as_input(&self) -> &crate::deps::aws_cryptography_materialProviders::operation::initialize_encryption_materials::builders::InitializeEncryptionMaterialsInputBuilder{
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::deps::aws_cryptography_materialProviders::operation::initialize_encryption_materials::EncryptionMaterials,
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::initialize_encryption_materials::InitializeEncryptionMaterials::send(&self.client, input).await
}
#[allow(missing_docs)]
pub fn algorithm_suite_id(
mut self,
input: impl ::std::convert::Into<
crate::deps::aws_cryptography_materialProviders::types::AlgorithmSuiteId,
>,
) -> Self {
self.inner = self.inner.algorithm_suite_id(input.into());
self
}
#[allow(missing_docs)]
pub fn set_algorithm_suite_id(
mut self,
input: ::std::option::Option<
crate::deps::aws_cryptography_materialProviders::types::AlgorithmSuiteId,
>,
) -> Self {
self.inner = self.inner.set_algorithm_suite_id(input);
self
}
#[allow(missing_docs)]
pub fn get_algorithm_suite_id(
&self,
) -> &::std::option::Option<
crate::deps::aws_cryptography_materialProviders::types::AlgorithmSuiteId,
> {
self.inner.get_algorithm_suite_id()
}
#[allow(missing_docs)]
pub fn encryption_context(
mut self,
input: impl ::std::convert::Into<
::std::collections::HashMap<::std::string::String, ::std::string::String>,
>,
) -> Self {
self.inner = self.inner.encryption_context(input.into());
self
}
#[allow(missing_docs)]
pub fn set_encryption_context(
mut self,
input: ::std::option::Option<
::std::collections::HashMap<::std::string::String, ::std::string::String>,
>,
) -> Self {
self.inner = self.inner.set_encryption_context(input);
self
}
#[allow(missing_docs)]
pub fn get_encryption_context(
&self,
) -> &::std::option::Option<
::std::collections::HashMap<::std::string::String, ::std::string::String>,
> {
self.inner.get_encryption_context()
}
#[allow(missing_docs)]
pub fn required_encryption_context_keys(
mut self,
input: impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>,
) -> Self {
self.inner = self.inner.required_encryption_context_keys(input.into());
self
}
#[allow(missing_docs)]
pub fn set_required_encryption_context_keys(
mut self,
input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
) -> Self {
self.inner = self.inner.set_required_encryption_context_keys(input);
self
}
#[allow(missing_docs)]
pub fn get_required_encryption_context_keys(
&self,
) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
self.inner.get_required_encryption_context_keys()
}
#[allow(missing_docs)]
pub fn signing_key(
mut self,
input: impl ::std::convert::Into<::aws_smithy_types::Blob>,
) -> Self {
self.inner = self.inner.signing_key(input.into());
self
}
#[allow(missing_docs)]
pub fn set_signing_key(
mut self,
input: ::std::option::Option<::aws_smithy_types::Blob>,
) -> Self {
self.inner = self.inner.set_signing_key(input);
self
}
#[allow(missing_docs)]
pub fn get_signing_key(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
self.inner.get_signing_key()
}
#[allow(missing_docs)]
pub fn verification_key(
mut self,
input: impl ::std::convert::Into<::aws_smithy_types::Blob>,
) -> Self {
self.inner = self.inner.verification_key(input.into());
self
}
#[allow(missing_docs)]
pub fn set_verification_key(
mut self,
input: ::std::option::Option<::aws_smithy_types::Blob>,
) -> Self {
self.inner = self.inner.set_verification_key(input);
self
}
#[allow(missing_docs)]
pub fn get_verification_key(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
self.inner.get_verification_key()
}
}