pub fn ser_create_matchmaking_configuration_input_input(
encoder: &mut ::aws_smithy_cbor::Encoder,
#[allow(unused)] input: &crate::operation::create_matchmaking_configuration::CreateMatchmakingConfigurationInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
encoder.begin_map();
if let Some(var_1) = &input.name {
encoder.str("Name").str(var_1.as_str());
}
if let Some(var_2) = &input.description {
encoder.str("Description").str(var_2.as_str());
}
if let Some(var_3) = &input.game_session_queue_arns {
encoder.str("GameSessionQueueArns");
encoder.array((*var_3).len());
for item_4 in var_3 {
{
encoder.str(item_4.as_str());
}
}
}
if let Some(var_5) = &input.request_timeout_seconds {
encoder.str("RequestTimeoutSeconds").integer(*var_5);
}
if let Some(var_6) = &input.acceptance_timeout_seconds {
encoder.str("AcceptanceTimeoutSeconds").integer(*var_6);
}
if let Some(var_7) = &input.acceptance_required {
encoder.str("AcceptanceRequired").boolean(*var_7);
}
if let Some(var_8) = &input.rule_set_name {
encoder.str("RuleSetName").str(var_8.as_str());
}
if let Some(var_9) = &input.notification_target {
encoder.str("NotificationTarget").str(var_9.as_str());
}
if let Some(var_10) = &input.additional_player_count {
encoder.str("AdditionalPlayerCount").integer(*var_10);
}
if let Some(var_11) = &input.custom_event_data {
encoder.str("CustomEventData").str(var_11.as_str());
}
if let Some(var_12) = &input.game_properties {
encoder.str("GameProperties");
encoder.array((*var_12).len());
for item_13 in var_12 {
{
crate::protocol_serde::shape_game_property::ser_game_property(encoder, item_13)?;
}
}
}
if let Some(var_14) = &input.game_session_data {
encoder.str("GameSessionData").str(var_14.as_str());
}
if let Some(var_15) = &input.backfill_mode {
encoder.str("BackfillMode").str(var_15.as_str());
}
if let Some(var_16) = &input.flex_match_mode {
encoder.str("FlexMatchMode").str(var_16.as_str());
}
if let Some(var_17) = &input.tags {
encoder.str("Tags");
encoder.array((*var_17).len());
for item_18 in var_17 {
{
crate::protocol_serde::shape_tag::ser_tag(encoder, item_18)?;
}
}
}
encoder.end();
Ok(())
}