aws-sdk-lightsail 1.107.0

AWS SDK for Amazon Lightsail
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_get_container_log_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::get_container_log::GetContainerLogInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.service_name {
        object.key("serviceName").string(var_1.as_str());
    }
    if let Some(var_2) = &input.container_name {
        object.key("containerName").string(var_2.as_str());
    }
    if let Some(var_3) = &input.start_time {
        object
            .key("startTime")
            .date_time(var_3, ::aws_smithy_types::date_time::Format::EpochSeconds)?;
    }
    if let Some(var_4) = &input.end_time {
        object
            .key("endTime")
            .date_time(var_4, ::aws_smithy_types::date_time::Format::EpochSeconds)?;
    }
    if let Some(var_5) = &input.filter_pattern {
        object.key("filterPattern").string(var_5.as_str());
    }
    if let Some(var_6) = &input.page_token {
        object.key("pageToken").string(var_6.as_str());
    }
    Ok(())
}