pub fn ser_modify_user_input_input_input(
input: &crate::operation::modify_user::ModifyUserInput,
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
let mut out = String::new();
#[allow(unused_mut)]
let mut writer = ::aws_smithy_query::QueryWriter::new(&mut out, "ModifyUser", "2015-02-02");
#[allow(unused_mut)]
let mut scope_1 = writer.prefix("UserId");
if let Some(var_2) = &input.user_id {
scope_1.string(var_2);
}
#[allow(unused_mut)]
let mut scope_3 = writer.prefix("AccessString");
if let Some(var_4) = &input.access_string {
scope_3.string(var_4);
}
#[allow(unused_mut)]
let mut scope_5 = writer.prefix("AppendAccessString");
if let Some(var_6) = &input.append_access_string {
scope_5.string(var_6);
}
#[allow(unused_mut)]
let mut scope_7 = writer.prefix("Passwords");
if let Some(var_8) = &input.passwords {
let mut list_10 = scope_7.start_list(false, None);
for item_9 in var_8 {
#[allow(unused_mut)]
let mut entry_11 = list_10.entry();
entry_11.string(item_9);
}
list_10.finish();
}
#[allow(unused_mut)]
let mut scope_12 = writer.prefix("NoPasswordRequired");
if let Some(var_13) = &input.no_password_required {
scope_12.boolean(*var_13);
}
#[allow(unused_mut)]
let mut scope_14 = writer.prefix("AuthenticationMode");
if let Some(var_15) = &input.authentication_mode {
crate::protocol_serde::shape_authentication_mode::ser_authentication_mode(scope_14, var_15)?;
}
#[allow(unused_mut)]
let mut scope_16 = writer.prefix("Engine");
if let Some(var_17) = &input.engine {
scope_16.string(var_17);
}
writer.finish();
Ok(::aws_smithy_types::body::SdkBody::from(out))
}