26 26 | "com.amazonaws.s3control.synthetic",
|
27 27 | "ListStorageLensConfigurationsOutput",
|
28 28 | );
|
29 29 | static LISTSTORAGELENSCONFIGURATIONSOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
30 30 | ::aws_smithy_schema::ShapeId::from_static(
|
31 31 | "com.amazonaws.s3control.synthetic#ListStorageLensConfigurationsOutput$NextToken",
|
32 32 | "com.amazonaws.s3control.synthetic",
|
33 33 | "ListStorageLensConfigurationsOutput",
|
34 34 | ),
|
35 35 | ::aws_smithy_schema::ShapeType::String,
|
36 - | "next_token",
|
36 + | "NextToken",
|
37 37 | 0,
|
38 38 | );
|
39 39 | static LISTSTORAGELENSCONFIGURATIONSOUTPUT_MEMBER_STORAGE_LENS_CONFIGURATION_LIST: ::aws_smithy_schema::Schema =
|
40 40 | ::aws_smithy_schema::Schema::new_member(
|
41 41 | ::aws_smithy_schema::ShapeId::from_static(
|
42 42 | "com.amazonaws.s3control.synthetic#ListStorageLensConfigurationsOutput$StorageLensConfigurationList",
|
43 43 | "com.amazonaws.s3control.synthetic",
|
44 44 | "ListStorageLensConfigurationsOutput",
|
45 45 | ),
|
46 46 | ::aws_smithy_schema::ShapeType::List,
|
47 - | "storage_lens_configuration_list",
|
47 + | "StorageLensConfigurationList",
|
48 48 | 1,
|
49 49 | )
|
50 50 | .with_xml_name("StorageLensConfiguration")
|
51 51 | .with_xml_flattened();
|
52 + | static LISTSTORAGELENSCONFIGURATIONSOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
53 + | ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
|
54 + | ::aws_smithy_schema::ShapeType::String,
|
55 + | "request_id",
|
56 + | 2,
|
57 + | )
|
58 + | .with_http_header("x-amzn-requestid");
|
52 59 | static LISTSTORAGELENSCONFIGURATIONSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
53 60 | LISTSTORAGELENSCONFIGURATIONSOUTPUT_SCHEMA_ID,
|
54 61 | ::aws_smithy_schema::ShapeType::Structure,
|
55 62 | &[
|
56 63 | &LISTSTORAGELENSCONFIGURATIONSOUTPUT_MEMBER_NEXT_TOKEN,
|
57 64 | &LISTSTORAGELENSCONFIGURATIONSOUTPUT_MEMBER_STORAGE_LENS_CONFIGURATION_LIST,
|
65 + | &LISTSTORAGELENSCONFIGURATIONSOUTPUT_MEMBER__REQUEST_ID,
|
58 66 | ],
|
59 67 | )
|
60 68 | .with_xml_name("ListStorageLensConfigurationResult");
|
61 69 | impl ListStorageLensConfigurationsOutput {
|
62 70 | /// The schema for this shape.
|
63 71 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTSTORAGELENSCONFIGURATIONSOUTPUT_SCHEMA;
|
64 72 | }
|
65 73 | impl ::aws_smithy_schema::serde::SerializableStruct for ListStorageLensConfigurationsOutput {
|
66 74 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
67 75 | fn serialize_members(
|
68 76 | &self,
|
69 77 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
70 78 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
71 79 | if let Some(ref val) = self.next_token {
|
72 80 | ser.write_string(&LISTSTORAGELENSCONFIGURATIONSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
|
73 81 | }
|
74 82 | if let Some(ref val) = self.storage_lens_configuration_list {
|
75 83 | ser.write_list(
|
76 84 | &LISTSTORAGELENSCONFIGURATIONSOUTPUT_MEMBER_STORAGE_LENS_CONFIGURATION_LIST,
|
77 85 | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
78 86 | for item in val {
|
79 87 | ser.write_struct(crate::types::ListStorageLensConfigurationEntry::SCHEMA, item)?;
|
80 88 | }
|
81 89 | Ok(())
|
82 90 | },
|
83 91 | )?;
|
84 92 | }
|
85 93 | Ok(())
|
86 94 | }
|
87 95 | }
|
88 96 | impl ListStorageLensConfigurationsOutput {
|
89 97 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
90 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
91 - | deserializer: &mut D,
|
98 + | pub fn deserialize(
|
99 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
100 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
101 + | #[allow(unused_variables, unused_mut)]
|
102 + | let mut builder = Self::builder();
|
103 + | #[allow(
|
104 + | unused_variables,
|
105 + | unreachable_code,
|
106 + | clippy::single_match,
|
107 + | clippy::match_single_binding,
|
108 + | clippy::diverging_sub_expression
|
109 + | )]
|
110 + | deserializer.read_struct(&LISTSTORAGELENSCONFIGURATIONSOUTPUT_SCHEMA, &mut |member, deser| {
|
111 + | match member.member_index() {
|
112 + | Some(0) => {
|
113 + | builder.next_token = Some(deser.read_string(member)?);
|
114 + | }
|
115 + | Some(1) => {
|
116 + | builder.storage_lens_configuration_list = Some({
|
117 + | let mut container = Vec::new();
|
118 + | deser.read_list(member, &mut |deser| {
|
119 + | container.push(crate::types::ListStorageLensConfigurationEntry::deserialize(deser)?);
|
120 + | Ok(())
|
121 + | })?;
|
122 + | container
|
123 + | });
|
124 + | }
|
125 + | Some(2) => {
|
126 + | builder._request_id = Some(deser.read_string(member)?);
|
127 + | }
|
128 + | _ => {}
|
129 + | }
|
130 + | Ok(())
|
131 + | })?;
|
132 + | Ok(builder.build())
|
133 + | }
|
134 + | }
|
135 + | impl ListStorageLensConfigurationsOutput {
|
136 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
137 + | /// Header-bound members are read directly from headers, avoiding runtime
|
138 + | /// member iteration overhead. Body members are read via the deserializer.
|
139 + | pub fn deserialize_with_response(
|
140 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
141 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
142 + | _status: u16,
|
143 + | _body: &[u8],
|
92 144 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
93 145 | #[allow(unused_variables, unused_mut)]
|
94 146 | let mut builder = Self::builder();
|
147 + | if let Some(val) = headers.get("x-amzn-requestid") {
|
148 + | builder._request_id = Some(val.to_string());
|
149 + | }
|
95 150 | #[allow(
|
96 151 | unused_variables,
|
97 152 | unreachable_code,
|
98 153 | clippy::single_match,
|
99 154 | clippy::match_single_binding,
|
100 155 | clippy::diverging_sub_expression
|
101 156 | )]
|
102 - | deserializer.read_struct(&LISTSTORAGELENSCONFIGURATIONSOUTPUT_SCHEMA, (), |_, member, deser| {
|
157 + | deserializer.read_struct(&LISTSTORAGELENSCONFIGURATIONSOUTPUT_SCHEMA, &mut |member, deser| {
|
103 158 | match member.member_index() {
|
104 159 | Some(0) => {
|
105 160 | builder.next_token = Some(deser.read_string(member)?);
|
106 161 | }
|
107 162 | Some(1) => {
|
108 163 | builder.storage_lens_configuration_list = Some({
|
109 - | let container = if let Some(cap) = deser.container_size() {
|
110 - | Vec::with_capacity(cap)
|
111 - | } else {
|
112 - | Vec::new()
|
113 - | };
|
114 - | deser.read_list(member, container, |mut list, deser| {
|
115 - | list.push(crate::types::ListStorageLensConfigurationEntry::deserialize(deser)?);
|
116 - | Ok(list)
|
117 - | })?
|
164 + | let mut container = Vec::new();
|
165 + | deser.read_list(member, &mut |deser| {
|
166 + | container.push(crate::types::ListStorageLensConfigurationEntry::deserialize(deser)?);
|
167 + | Ok(())
|
168 + | })?;
|
169 + | container
|
118 170 | });
|
119 171 | }
|
120 172 | _ => {}
|
121 173 | }
|
122 174 | Ok(())
|
123 175 | })?;
|
124 176 | Ok(builder.build())
|
125 177 | }
|
126 178 | }
|
127 179 | impl ::aws_types::request_id::RequestId for ListStorageLensConfigurationsOutput {
|