#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteUserInput {
#[doc(hidden)]
pub user_id: std::option::Option<std::string::String>,
}
impl DeleteUserInput {
pub fn user_id(&self) -> std::option::Option<&str> {
self.user_id.as_deref()
}
}
impl DeleteUserInput {
pub fn builder() -> crate::operation::delete_user::builders::DeleteUserInputBuilder {
crate::operation::delete_user::builders::DeleteUserInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteUserInputBuilder {
pub(crate) user_id: std::option::Option<std::string::String>,
}
impl DeleteUserInputBuilder {
pub fn user_id(mut self, input: impl Into<std::string::String>) -> Self {
self.user_id = Some(input.into());
self
}
pub fn set_user_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.user_id = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::delete_user::DeleteUserInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::delete_user::DeleteUserInput {
user_id: self.user_id,
})
}
}