pub use crate::operation::create_hsm::_create_hsm_output::CreateHsmOutputBuilder;
pub use crate::operation::create_hsm::_create_hsm_input::CreateHsmInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateHsmFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_hsm::builders::CreateHsmInputBuilder,
}
impl CreateHsmFluentBuilder {
pub(crate) fn new(handle: std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
pub async fn customize(
self,
) -> std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::create_hsm::CreateHsm,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::operation::create_hsm::CreateHsmError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::client::customize::CustomizableOperation { handle, operation })
}
pub async fn send(
self,
) -> std::result::Result<
crate::operation::create_hsm::CreateHsmOutput,
aws_smithy_http::result::SdkError<crate::operation::create_hsm::CreateHsmError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
pub fn subnet_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.subnet_id(input.into());
self
}
pub fn set_subnet_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_subnet_id(input);
self
}
pub fn ssh_key(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.ssh_key(input.into());
self
}
pub fn set_ssh_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_ssh_key(input);
self
}
pub fn eni_ip(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.eni_ip(input.into());
self
}
pub fn set_eni_ip(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_eni_ip(input);
self
}
pub fn iam_role_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.iam_role_arn(input.into());
self
}
pub fn set_iam_role_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_iam_role_arn(input);
self
}
pub fn external_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.external_id(input.into());
self
}
pub fn set_external_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_external_id(input);
self
}
pub fn subscription_type(mut self, input: crate::types::SubscriptionType) -> Self {
self.inner = self.inner.subscription_type(input);
self
}
pub fn set_subscription_type(
mut self,
input: std::option::Option<crate::types::SubscriptionType>,
) -> Self {
self.inner = self.inner.set_subscription_type(input);
self
}
pub fn client_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.client_token(input.into());
self
}
pub fn set_client_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_client_token(input);
self
}
pub fn syslog_ip(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.syslog_ip(input.into());
self
}
pub fn set_syslog_ip(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_syslog_ip(input);
self
}
}