aws_sdk_emr/protocol_serde/
shape_list_clusters_input.rs1pub fn ser_list_clusters_input_input(
3 object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4 input: &crate::operation::list_clusters::ListClustersInput,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6 if let Some(var_1) = &input.created_after {
7 object
8 .key("CreatedAfter")
9 .date_time(var_1, ::aws_smithy_types::date_time::Format::EpochSeconds)?;
10 }
11 if let Some(var_2) = &input.created_before {
12 object
13 .key("CreatedBefore")
14 .date_time(var_2, ::aws_smithy_types::date_time::Format::EpochSeconds)?;
15 }
16 if let Some(var_3) = &input.cluster_states {
17 let mut array_4 = object.key("ClusterStates").start_array();
18 for item_5 in var_3 {
19 {
20 array_4.value().string(item_5.as_str());
21 }
22 }
23 array_4.finish();
24 }
25 if let Some(var_6) = &input.marker {
26 object.key("Marker").string(var_6.as_str());
27 }
28 Ok(())
29}