// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_get_shard_iterator_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::get_shard_iterator::GetShardIteratorInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.stream_name {
        object.key("StreamName").string(var_1.as_str());
    }
    if let Some(var_2) = &input.shard_id {
        object.key("ShardId").string(var_2.as_str());
    }
    if let Some(var_3) = &input.shard_iterator_type {
        object.key("ShardIteratorType").string(var_3.as_str());
    }
    if let Some(var_4) = &input.starting_sequence_number {
        object.key("StartingSequenceNumber").string(var_4.as_str());
    }
    if let Some(var_5) = &input.timestamp {
        object
            .key("Timestamp")
            .date_time(var_5, ::aws_smithy_types::date_time::Format::EpochSeconds)?;
    }
    if let Some(var_6) = &input.stream_arn {
        object.key("StreamARN").string(var_6.as_str());
    }
    if let Some(var_7) = &input.stream_id {
        object.key("StreamId").string(var_7.as_str());
    }
    Ok(())
}
