aws-sdk-assurance 1.0.0

AWS SDK for AWS Assurance
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_list_assessment_outcomes_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::list_assessment_outcomes::ListAssessmentOutcomesInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.environment_arn {
        encoder.str("environmentArn").str(var_1.as_str());
    }
    if let Some(var_2) = &input.project {
        encoder.str("project").str(var_2.as_str());
    }
    if let Some(var_3) = &input.framework {
        encoder.str("framework").str(var_3.as_str());
    }
    if let Some(var_4) = &input.framework_version {
        encoder.str("frameworkVersion").str(var_4.as_str());
    }
    if let Some(var_5) = &input.control_id {
        encoder.str("controlId").str(var_5.as_str());
    }
    if let Some(var_6) = &input.resource_identifier {
        encoder.str("resourceIdentifier").str(var_6.as_str());
    }
    if let Some(var_7) = &input.aggregation_level {
        encoder.str("aggregationLevel").str(var_7.as_str());
    }
    if let Some(var_8) = &input.start_time {
        encoder.str("startTime").timestamp(var_8);
    }
    if let Some(var_9) = &input.end_time {
        encoder.str("endTime").timestamp(var_9);
    }
    if let Some(var_10) = &input.period {
        encoder.str("period").str(var_10.as_str());
    }
    if let Some(var_11) = &input.statistic {
        encoder.str("statistic").str(var_11.as_str());
    }
    if let Some(var_12) = &input.max_results {
        encoder.str("maxResults").integer(*var_12);
    }
    if let Some(var_13) = &input.next_token {
        encoder.str("nextToken").str(var_13.as_str());
    }
    encoder.end();
    Ok(())
}