aws_sdk_sagemaker/protocol_serde/
shape_add_cluster_node_specification.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub fn ser_add_cluster_node_specification(
3    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4    input: &crate::types::AddClusterNodeSpecification,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6    {
7        object.key("InstanceGroupName").string(input.instance_group_name.as_str());
8    }
9    {
10        object.key("IncrementTargetCountBy").number(
11            #[allow(clippy::useless_conversion)]
12            ::aws_smithy_types::Number::NegInt((input.increment_target_count_by).into()),
13        );
14    }
15    Ok(())
16}