aws_sdk_glue/schema_serde/
shape_describe_inbound_integrations_input_input.rs1static DESCRIBEINBOUNDINTEGRATIONSINPUT_MEMBER_INTEGRATION_ARN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
3 ::aws_smithy_schema::ShapeId::from_parts(
4 "com.amazonaws.glue.synthetic#DescribeInboundIntegrationsInput$IntegrationArn",
5 "com.amazonaws.glue.synthetic",
6 "DescribeInboundIntegrationsInput",
7 ),
8 ::aws_smithy_schema::ShapeType::String,
9 "IntegrationArn",
10 0,
11);
12static DESCRIBEINBOUNDINTEGRATIONSINPUT_MEMBER_MARKER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
13 ::aws_smithy_schema::ShapeId::from_parts(
14 "com.amazonaws.glue.synthetic#DescribeInboundIntegrationsInput$Marker",
15 "com.amazonaws.glue.synthetic",
16 "DescribeInboundIntegrationsInput",
17 ),
18 ::aws_smithy_schema::ShapeType::String,
19 "Marker",
20 1,
21);
22static DESCRIBEINBOUNDINTEGRATIONSINPUT_MEMBER_MAX_RECORDS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
23 ::aws_smithy_schema::ShapeId::from_parts(
24 "com.amazonaws.glue.synthetic#DescribeInboundIntegrationsInput$MaxRecords",
25 "com.amazonaws.glue.synthetic",
26 "DescribeInboundIntegrationsInput",
27 ),
28 ::aws_smithy_schema::ShapeType::Integer,
29 "MaxRecords",
30 2,
31);
32static DESCRIBEINBOUNDINTEGRATIONSINPUT_MEMBER_TARGET_ARN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
33 ::aws_smithy_schema::ShapeId::from_parts(
34 "com.amazonaws.glue.synthetic#DescribeInboundIntegrationsInput$TargetArn",
35 "com.amazonaws.glue.synthetic",
36 "DescribeInboundIntegrationsInput",
37 ),
38 ::aws_smithy_schema::ShapeType::String,
39 "TargetArn",
40 3,
41);
42static DESCRIBEINBOUNDINTEGRATIONSINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
43 ::aws_smithy_schema::ShapeId::from_parts(
44 "com.amazonaws.glue.synthetic#DescribeInboundIntegrationsInput",
45 "com.amazonaws.glue.synthetic",
46 "DescribeInboundIntegrationsInput",
47 ),
48 ::aws_smithy_schema::ShapeType::Structure,
49 &[
50 &DESCRIBEINBOUNDINTEGRATIONSINPUT_MEMBER_INTEGRATION_ARN,
51 &DESCRIBEINBOUNDINTEGRATIONSINPUT_MEMBER_MARKER,
52 &DESCRIBEINBOUNDINTEGRATIONSINPUT_MEMBER_MAX_RECORDS,
53 &DESCRIBEINBOUNDINTEGRATIONSINPUT_MEMBER_TARGET_ARN,
54 ],
55)
56.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
57.with_original_name("DescribeInboundIntegrationsRequest");
58impl crate::operation::describe_inbound_integrations::DescribeInboundIntegrationsInput {
59 pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &DESCRIBEINBOUNDINTEGRATIONSINPUT_SCHEMA;
61}
62impl ::aws_smithy_schema::serde::SerializableStruct for crate::operation::describe_inbound_integrations::DescribeInboundIntegrationsInput {
63 fn schema(&self) -> &::aws_smithy_schema::Schema<'_> {
64 Self::SCHEMA
65 }
66
67 #[allow(unused_variables, clippy::diverging_sub_expression)]
68 fn serialize_members(
69 &self,
70 ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
71 ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
72 if let Some(ref val) = self.integration_arn {
73 ser.write_string(&DESCRIBEINBOUNDINTEGRATIONSINPUT_MEMBER_INTEGRATION_ARN, val)?;
74 }
75 if let Some(ref val) = self.marker {
76 ser.write_string(&DESCRIBEINBOUNDINTEGRATIONSINPUT_MEMBER_MARKER, val)?;
77 }
78 if let Some(ref val) = self.max_records {
79 ser.write_integer(&DESCRIBEINBOUNDINTEGRATIONSINPUT_MEMBER_MAX_RECORDS, *val)?;
80 }
81 if let Some(ref val) = self.target_arn {
82 ser.write_string(&DESCRIBEINBOUNDINTEGRATIONSINPUT_MEMBER_TARGET_ARN, val)?;
83 }
84 Ok(())
85 }
86}
87impl crate::operation::describe_inbound_integrations::builders::DescribeInboundIntegrationsInputBuilder {
88 #[allow(
89 unused_variables,
90 unreachable_code,
91 clippy::single_match,
92 clippy::match_single_binding,
93 clippy::diverging_sub_expression
94 )]
95 pub(crate) fn deserialize_members(
96 &mut self,
97 deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
98 ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
99 deserializer.read_struct(&DESCRIBEINBOUNDINTEGRATIONSINPUT_SCHEMA, &mut |member, deser| {
100 match member.member_index() {
101 Some(0) => {
102 if deser.is_null() {
103 deser.read_null()?;
104 } else {
105 self.integration_arn = Some(deser.read_string(member)?);
106 }
107 }
108 Some(1) => {
109 if deser.is_null() {
110 deser.read_null()?;
111 } else {
112 self.marker = Some(deser.read_string(member)?);
113 }
114 }
115 Some(2) => {
116 if deser.is_null() {
117 deser.read_null()?;
118 } else {
119 self.max_records = Some(deser.read_integer(member)?);
120 }
121 }
122 Some(3) => {
123 if deser.is_null() {
124 deser.read_null()?;
125 } else {
126 self.target_arn = Some(deser.read_string(member)?);
127 }
128 }
129 _ => {}
130 }
131 Ok(())
132 })
133 }
134}
135
136impl crate::operation::describe_inbound_integrations::DescribeInboundIntegrationsInput {
137 pub fn deserialize(
139 deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
140 ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
141 let mut builder = Self::builder();
142 builder.deserialize_members(deserializer)?;
143 builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
144 }
145}