aws-sdk-networksecuritymanager 1.1.0

AWS SDK for AWS Network Security Manager Customer API
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_update_rule_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::update_rule::UpdateRuleInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.client_token {
        object.key("clientToken").string(var_1.as_str());
    }
    if let Some(var_2) = &input.configuration {
        object.key("configuration").document(var_2);
    }
    if let Some(var_3) = &input.is_published {
        object.key("isPublished").boolean(*var_3);
    }
    if let Some(var_4) = &input.rule_description {
        object.key("ruleDescription").string(var_4.as_str());
    }
    if let Some(var_5) = &input.rule_type {
        object.key("ruleType").string(var_5.as_str());
    }
    if let Some(var_6) = &input.update_token {
        object.key("updateToken").string(var_6.as_str());
    }
    Ok(())
}