aws_sdk_sagemaker/protocol_serde/
shape_create_feature_group_input.rs1pub fn ser_create_feature_group_input_input(
3 object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4 input: &crate::operation::create_feature_group::CreateFeatureGroupInput,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6 if let Some(var_1) = &input.feature_group_name {
7 object.key("FeatureGroupName").string(var_1.as_str());
8 }
9 if let Some(var_2) = &input.record_identifier_feature_name {
10 object.key("RecordIdentifierFeatureName").string(var_2.as_str());
11 }
12 if let Some(var_3) = &input.event_time_feature_name {
13 object.key("EventTimeFeatureName").string(var_3.as_str());
14 }
15 if let Some(var_4) = &input.feature_definitions {
16 let mut array_5 = object.key("FeatureDefinitions").start_array();
17 for item_6 in var_4 {
18 {
19 #[allow(unused_mut)]
20 let mut object_7 = array_5.value().start_object();
21 crate::protocol_serde::shape_feature_definition::ser_feature_definition(&mut object_7, item_6)?;
22 object_7.finish();
23 }
24 }
25 array_5.finish();
26 }
27 if let Some(var_8) = &input.online_store_config {
28 #[allow(unused_mut)]
29 let mut object_9 = object.key("OnlineStoreConfig").start_object();
30 crate::protocol_serde::shape_online_store_config::ser_online_store_config(&mut object_9, var_8)?;
31 object_9.finish();
32 }
33 if let Some(var_10) = &input.offline_store_config {
34 #[allow(unused_mut)]
35 let mut object_11 = object.key("OfflineStoreConfig").start_object();
36 crate::protocol_serde::shape_offline_store_config::ser_offline_store_config(&mut object_11, var_10)?;
37 object_11.finish();
38 }
39 if let Some(var_12) = &input.throughput_config {
40 #[allow(unused_mut)]
41 let mut object_13 = object.key("ThroughputConfig").start_object();
42 crate::protocol_serde::shape_throughput_config::ser_throughput_config(&mut object_13, var_12)?;
43 object_13.finish();
44 }
45 if let Some(var_14) = &input.role_arn {
46 object.key("RoleArn").string(var_14.as_str());
47 }
48 if let Some(var_15) = &input.description {
49 object.key("Description").string(var_15.as_str());
50 }
51 if let Some(var_16) = &input.tags {
52 let mut array_17 = object.key("Tags").start_array();
53 for item_18 in var_16 {
54 {
55 #[allow(unused_mut)]
56 let mut object_19 = array_17.value().start_object();
57 crate::protocol_serde::shape_tag::ser_tag(&mut object_19, item_18)?;
58 object_19.finish();
59 }
60 }
61 array_17.finish();
62 }
63 Ok(())
64}