aws_sdk_sagemaker/protocol_serde/
shape_create_presigned_mlflow_tracking_server_url_input.rs1pub fn ser_create_presigned_mlflow_tracking_server_url_input_input(
3 object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4 input: &crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlInput,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6 if let Some(var_1) = &input.tracking_server_name {
7 object.key("TrackingServerName").string(var_1.as_str());
8 }
9 if let Some(var_2) = &input.expires_in_seconds {
10 object.key("ExpiresInSeconds").number(
11 #[allow(clippy::useless_conversion)]
12 ::aws_smithy_types::Number::NegInt((*var_2).into()),
13 );
14 }
15 if let Some(var_3) = &input.session_expiration_duration_in_seconds {
16 object.key("SessionExpirationDurationInSeconds").number(
17 #[allow(clippy::useless_conversion)]
18 ::aws_smithy_types::Number::NegInt((*var_3).into()),
19 );
20 }
21 Ok(())
22}