pub use crate::operation::create_user_profile::_create_user_profile_output::CreateUserProfileOutputBuilder;
pub use crate::operation::create_user_profile::_create_user_profile_input::CreateUserProfileInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateUserProfileFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_user_profile::builders::CreateUserProfileInputBuilder,
}
impl CreateUserProfileFluentBuilder {
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_user_profile::CreateUserProfile,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::operation::create_user_profile::CreateUserProfileError,
>,
> {
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_user_profile::CreateUserProfileOutput,
aws_smithy_http::result::SdkError<
crate::operation::create_user_profile::CreateUserProfileError,
>,
> {
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 iam_user_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.iam_user_arn(input.into());
self
}
pub fn set_iam_user_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_iam_user_arn(input);
self
}
pub fn ssh_username(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.ssh_username(input.into());
self
}
pub fn set_ssh_username(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_ssh_username(input);
self
}
pub fn ssh_public_key(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.ssh_public_key(input.into());
self
}
pub fn set_ssh_public_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_ssh_public_key(input);
self
}
pub fn allow_self_management(mut self, input: bool) -> Self {
self.inner = self.inner.allow_self_management(input);
self
}
pub fn set_allow_self_management(mut self, input: std::option::Option<bool>) -> Self {
self.inner = self.inner.set_allow_self_management(input);
self
}
}