aws_sdk_codepipeline/protocol_serde/
shape_stop_pipeline_execution_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub fn ser_stop_pipeline_execution_input_input(
3    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4    input: &crate::operation::stop_pipeline_execution::StopPipelineExecutionInput,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6    if let Some(var_1) = &input.pipeline_name {
7        object.key("pipelineName").string(var_1.as_str());
8    }
9    if let Some(var_2) = &input.pipeline_execution_id {
10        object.key("pipelineExecutionId").string(var_2.as_str());
11    }
12    if let Some(var_3) = &input.abandon {
13        object.key("abandon").boolean(*var_3);
14    }
15    if let Some(var_4) = &input.reason {
16        object.key("reason").string(var_4.as_str());
17    }
18    Ok(())
19}