pub fn ser_update_game_session_input_input(
encoder: &mut ::aws_smithy_cbor::Encoder,
#[allow(unused)] input: &crate::operation::update_game_session::UpdateGameSessionInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
encoder.begin_map();
if let Some(var_1) = &input.game_session_id {
encoder.str("GameSessionId").str(var_1.as_str());
}
if let Some(var_2) = &input.maximum_player_session_count {
encoder.str("MaximumPlayerSessionCount").integer(*var_2);
}
if let Some(var_3) = &input.name {
encoder.str("Name").str(var_3.as_str());
}
if let Some(var_4) = &input.player_session_creation_policy {
encoder.str("PlayerSessionCreationPolicy").str(var_4.as_str());
}
if let Some(var_5) = &input.protection_policy {
encoder.str("ProtectionPolicy").str(var_5.as_str());
}
if let Some(var_6) = &input.game_properties {
encoder.str("GameProperties");
encoder.array((*var_6).len());
for item_7 in var_6 {
{
crate::protocol_serde::shape_game_property::ser_game_property(encoder, item_7)?;
}
}
}
encoder.end();
Ok(())
}