pub fn ser_create_workspace_bundle_input_input(
encoder: &mut ::aws_smithy_cbor::Encoder,
#[allow(unused)] input: &crate::operation::create_workspace_bundle::CreateWorkspaceBundleInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
encoder.begin_map();
if let Some(var_1) = &input.bundle_name {
encoder.str("BundleName").str(var_1.as_str());
}
if let Some(var_2) = &input.bundle_description {
encoder.str("BundleDescription").str(var_2.as_str());
}
if let Some(var_3) = &input.image_id {
encoder.str("ImageId").str(var_3.as_str());
}
if let Some(var_4) = &input.compute_type {
encoder.str("ComputeType");
crate::protocol_serde::shape_compute_type::ser_compute_type(encoder, var_4)?;
}
if let Some(var_5) = &input.user_storage {
encoder.str("UserStorage");
crate::protocol_serde::shape_user_storage::ser_user_storage(encoder, var_5)?;
}
if let Some(var_6) = &input.root_storage {
encoder.str("RootStorage");
crate::protocol_serde::shape_root_storage::ser_root_storage(encoder, var_6)?;
}
if let Some(var_7) = &input.tags {
encoder.str("Tags");
encoder.array((*var_7).len());
for item_8 in var_7 {
{
crate::protocol_serde::shape_tag::ser_tag(encoder, item_8)?;
}
}
}
encoder.end();
Ok(())
}