aws_sdk_mediapackagev2/protocol_serde/
shape_create_hls_manifest_configuration.rs1pub fn ser_create_hls_manifest_configuration(
3 object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4 input: &crate::types::CreateHlsManifestConfiguration,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6 {
7 object.key("ManifestName").string(input.manifest_name.as_str());
8 }
9 if let Some(var_1) = &input.child_manifest_name {
10 object.key("ChildManifestName").string(var_1.as_str());
11 }
12 if let Some(var_2) = &input.scte_hls {
13 #[allow(unused_mut)]
14 let mut object_3 = object.key("ScteHls").start_object();
15 crate::protocol_serde::shape_scte_hls::ser_scte_hls(&mut object_3, var_2)?;
16 object_3.finish();
17 }
18 if let Some(var_4) = &input.start_tag {
19 #[allow(unused_mut)]
20 let mut object_5 = object.key("StartTag").start_object();
21 crate::protocol_serde::shape_start_tag::ser_start_tag(&mut object_5, var_4)?;
22 object_5.finish();
23 }
24 if let Some(var_6) = &input.manifest_window_seconds {
25 object.key("ManifestWindowSeconds").number(
26 #[allow(clippy::useless_conversion)]
27 ::aws_smithy_types::Number::NegInt((*var_6).into()),
28 );
29 }
30 if let Some(var_7) = &input.program_date_time_interval_seconds {
31 object.key("ProgramDateTimeIntervalSeconds").number(
32 #[allow(clippy::useless_conversion)]
33 ::aws_smithy_types::Number::NegInt((*var_7).into()),
34 );
35 }
36 if let Some(var_8) = &input.filter_configuration {
37 #[allow(unused_mut)]
38 let mut object_9 = object.key("FilterConfiguration").start_object();
39 crate::protocol_serde::shape_filter_configuration::ser_filter_configuration(&mut object_9, var_8)?;
40 object_9.finish();
41 }
42 if let Some(var_10) = &input.url_encode_child_manifest {
43 object.key("UrlEncodeChildManifest").boolean(*var_10);
44 }
45 Ok(())
46}