pub use crate::deps::aws_cryptography_keyStore::operation::create_key::_create_key_output::CreateKeyOutputBuilder;
pub use crate::deps::aws_cryptography_keyStore::operation::create_key::_create_key_input::CreateKeyInputBuilder;
impl CreateKeyInputBuilder {
pub async fn send_with(
self,
client: &crate::deps::aws_cryptography_keyStore::client::Client,
) -> ::std::result::Result<
crate::deps::aws_cryptography_keyStore::operation::create_key::CreateKeyOutput,
crate::deps::aws_cryptography_keyStore::types::error::Error,
> {
let mut fluent_builder = client.create_key();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct CreateKeyFluentBuilder {
client: crate::deps::aws_cryptography_keyStore::client::Client,
pub(crate) inner: crate::deps::aws_cryptography_keyStore::operation::create_key::builders::CreateKeyInputBuilder,
}
impl CreateKeyFluentBuilder {
pub(crate) fn new(client: crate::deps::aws_cryptography_keyStore::client::Client) -> Self {
Self {
client,
inner: ::std::default::Default::default(),
}
}
pub fn as_input(&self) -> &crate::deps::aws_cryptography_keyStore::operation::create_key::builders::CreateKeyInputBuilder{
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::deps::aws_cryptography_keyStore::operation::create_key::CreateKeyOutput,
crate::deps::aws_cryptography_keyStore::types::error::Error,
> {
let input = self
.inner
.build()
.map_err(|mut e| {
let msg = format!("{:?}", e);
crate::deps::aws_cryptography_keyStore::types::error::Error::OpaqueWithText {
obj: ::dafny_runtime::Object::from_ref(&mut e as &mut ::dafny_runtime::DynAny),
objMessage: msg,
}
})?;
crate::deps::aws_cryptography_keyStore::operation::create_key::CreateKey::send(
&self.client,
input,
)
.await
}
pub fn branch_key_identifier(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.inner = self.inner.branch_key_identifier(input.into());
self
}
pub fn set_branch_key_identifier(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.inner = self.inner.set_branch_key_identifier(input);
self
}
pub fn get_branch_key_identifier(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_branch_key_identifier()
}
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
}
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
}
pub fn get_encryption_context(
&self,
) -> &::std::option::Option<
::std::collections::HashMap<::std::string::String, ::std::string::String>,
> {
self.inner.get_encryption_context()
}
}