aws_sdk_glue/schema_serde/
shape_describe_integrations_input_input.rs1static DESCRIBEINTEGRATIONSINPUT_MEMBER_INTEGRATION_IDENTIFIER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
3 ::aws_smithy_schema::ShapeId::from_parts(
4 "com.amazonaws.glue.synthetic#DescribeIntegrationsInput$IntegrationIdentifier",
5 "com.amazonaws.glue.synthetic",
6 "DescribeIntegrationsInput",
7 ),
8 ::aws_smithy_schema::ShapeType::String,
9 "IntegrationIdentifier",
10 0,
11);
12static DESCRIBEINTEGRATIONSINPUT_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#DescribeIntegrationsInput$Marker",
15 "com.amazonaws.glue.synthetic",
16 "DescribeIntegrationsInput",
17 ),
18 ::aws_smithy_schema::ShapeType::String,
19 "Marker",
20 1,
21);
22static DESCRIBEINTEGRATIONSINPUT_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#DescribeIntegrationsInput$MaxRecords",
25 "com.amazonaws.glue.synthetic",
26 "DescribeIntegrationsInput",
27 ),
28 ::aws_smithy_schema::ShapeType::Integer,
29 "MaxRecords",
30 2,
31);
32static DESCRIBEINTEGRATIONSINPUT_MEMBER_FILTERS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
33 ::aws_smithy_schema::ShapeId::from_parts(
34 "com.amazonaws.glue#IntegrationFilterList$member",
35 "com.amazonaws.glue",
36 "IntegrationFilterList",
37 ),
38 ::aws_smithy_schema::ShapeType::Structure,
39 "member",
40 0,
41);
42static DESCRIBEINTEGRATIONSINPUT_MEMBER_FILTERS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
43 ::aws_smithy_schema::ShapeId::from_parts(
44 "com.amazonaws.glue.synthetic#DescribeIntegrationsInput$Filters",
45 "com.amazonaws.glue.synthetic",
46 "DescribeIntegrationsInput",
47 ),
48 ::aws_smithy_schema::ShapeType::List,
49 "Filters",
50 3,
51)
52.with_list_member(&DESCRIBEINTEGRATIONSINPUT_MEMBER_FILTERS_MEMBER);
53static DESCRIBEINTEGRATIONSINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
54 ::aws_smithy_schema::ShapeId::from_parts(
55 "com.amazonaws.glue.synthetic#DescribeIntegrationsInput",
56 "com.amazonaws.glue.synthetic",
57 "DescribeIntegrationsInput",
58 ),
59 ::aws_smithy_schema::ShapeType::Structure,
60 &[
61 &DESCRIBEINTEGRATIONSINPUT_MEMBER_INTEGRATION_IDENTIFIER,
62 &DESCRIBEINTEGRATIONSINPUT_MEMBER_MARKER,
63 &DESCRIBEINTEGRATIONSINPUT_MEMBER_MAX_RECORDS,
64 &DESCRIBEINTEGRATIONSINPUT_MEMBER_FILTERS,
65 ],
66)
67.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
68.with_original_name("DescribeIntegrationsRequest");
69impl crate::operation::describe_integrations::DescribeIntegrationsInput {
70 pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &DESCRIBEINTEGRATIONSINPUT_SCHEMA;
72}
73impl ::aws_smithy_schema::serde::SerializableStruct for crate::operation::describe_integrations::DescribeIntegrationsInput {
74 fn schema(&self) -> &::aws_smithy_schema::Schema<'_> {
75 Self::SCHEMA
76 }
77
78 #[allow(unused_variables, clippy::diverging_sub_expression)]
79 fn serialize_members(
80 &self,
81 ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
82 ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
83 if let Some(ref val) = self.integration_identifier {
84 ser.write_string(&DESCRIBEINTEGRATIONSINPUT_MEMBER_INTEGRATION_IDENTIFIER, val)?;
85 }
86 if let Some(ref val) = self.marker {
87 ser.write_string(&DESCRIBEINTEGRATIONSINPUT_MEMBER_MARKER, val)?;
88 }
89 if let Some(ref val) = self.max_records {
90 ser.write_integer(&DESCRIBEINTEGRATIONSINPUT_MEMBER_MAX_RECORDS, *val)?;
91 }
92 if let Some(ref val) = self.filters {
93 ser.write_list(
94 &DESCRIBEINTEGRATIONSINPUT_MEMBER_FILTERS,
95 &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
96 for item in val {
97 ser.write_struct(crate::types::IntegrationFilter::SCHEMA, item)?;
98 }
99 Ok(())
100 },
101 )?;
102 }
103 Ok(())
104 }
105}
106impl crate::operation::describe_integrations::builders::DescribeIntegrationsInputBuilder {
107 #[allow(
108 unused_variables,
109 unreachable_code,
110 clippy::single_match,
111 clippy::match_single_binding,
112 clippy::diverging_sub_expression
113 )]
114 pub(crate) fn deserialize_members(
115 &mut self,
116 deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
117 ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
118 deserializer.read_struct(&DESCRIBEINTEGRATIONSINPUT_SCHEMA, &mut |member, deser| {
119 match member.member_index() {
120 Some(0) => {
121 if deser.is_null() {
122 deser.read_null()?;
123 } else {
124 self.integration_identifier = Some(deser.read_string(member)?);
125 }
126 }
127 Some(1) => {
128 if deser.is_null() {
129 deser.read_null()?;
130 } else {
131 self.marker = Some(deser.read_string(member)?);
132 }
133 }
134 Some(2) => {
135 if deser.is_null() {
136 deser.read_null()?;
137 } else {
138 self.max_records = Some(deser.read_integer(member)?);
139 }
140 }
141 Some(3) => {
142 if deser.is_null() {
143 deser.read_null()?;
144 } else {
145 self.filters = Some({
146 let mut container = Vec::new();
147 deser.read_list(member, &mut |deser| {
148 container.push(crate::types::IntegrationFilter::deserialize(deser)?);
149 Ok(())
150 })?;
151 container
152 });
153 }
154 }
155 _ => {}
156 }
157 Ok(())
158 })
159 }
160}
161
162impl crate::operation::describe_integrations::DescribeIntegrationsInput {
163 pub fn deserialize(
165 deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
166 ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
167 let mut builder = Self::builder();
168 builder.deserialize_members(deserializer)?;
169 builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
170 }
171}