aws-sdk-appstream 1.121.0

AWS SDK for Amazon AppStream
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_update_entitlement_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::update_entitlement::UpdateEntitlementInput,
) -> ::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.stack_name {
        encoder.str("StackName").str(var_2.as_str());
    }
    if let Some(var_3) = &input.description {
        encoder.str("Description").str(var_3.as_str());
    }
    if let Some(var_4) = &input.app_visibility {
        encoder.str("AppVisibility").str(var_4.as_str());
    }
    if let Some(var_5) = &input.attributes {
        encoder.str("Attributes");
        encoder.array((*var_5).len());
        for item_6 in var_5 {
            {
                crate::protocol_serde::shape_entitlement_attribute::ser_entitlement_attribute(encoder, item_6)?;
            }
        }
    }
    encoder.end();
    Ok(())
}