39 39 | "com.amazonaws.s3.synthetic",
|
40 40 | "ListBucketIntelligentTieringConfigurationsOutput",
|
41 41 | );
|
42 42 | static LISTBUCKETINTELLIGENTTIERINGCONFIGURATIONSOUTPUT_MEMBER_IS_TRUNCATED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
43 43 | ::aws_smithy_schema::ShapeId::from_static(
|
44 44 | "com.amazonaws.s3.synthetic#ListBucketIntelligentTieringConfigurationsOutput$IsTruncated",
|
45 45 | "com.amazonaws.s3.synthetic",
|
46 46 | "ListBucketIntelligentTieringConfigurationsOutput",
|
47 47 | ),
|
48 48 | ::aws_smithy_schema::ShapeType::Boolean,
|
49 - | "is_truncated",
|
49 + | "IsTruncated",
|
50 50 | 0,
|
51 51 | );
|
52 52 | static LISTBUCKETINTELLIGENTTIERINGCONFIGURATIONSOUTPUT_MEMBER_CONTINUATION_TOKEN: ::aws_smithy_schema::Schema =
|
53 53 | ::aws_smithy_schema::Schema::new_member(
|
54 54 | ::aws_smithy_schema::ShapeId::from_static(
|
55 55 | "com.amazonaws.s3.synthetic#ListBucketIntelligentTieringConfigurationsOutput$ContinuationToken",
|
56 56 | "com.amazonaws.s3.synthetic",
|
57 57 | "ListBucketIntelligentTieringConfigurationsOutput",
|
58 58 | ),
|
59 59 | ::aws_smithy_schema::ShapeType::String,
|
60 - | "continuation_token",
|
60 + | "ContinuationToken",
|
61 61 | 1,
|
62 62 | );
|
63 63 | static LISTBUCKETINTELLIGENTTIERINGCONFIGURATIONSOUTPUT_MEMBER_NEXT_CONTINUATION_TOKEN: ::aws_smithy_schema::Schema =
|
64 64 | ::aws_smithy_schema::Schema::new_member(
|
65 65 | ::aws_smithy_schema::ShapeId::from_static(
|
66 66 | "com.amazonaws.s3.synthetic#ListBucketIntelligentTieringConfigurationsOutput$NextContinuationToken",
|
67 67 | "com.amazonaws.s3.synthetic",
|
68 68 | "ListBucketIntelligentTieringConfigurationsOutput",
|
69 69 | ),
|
70 70 | ::aws_smithy_schema::ShapeType::String,
|
71 - | "next_continuation_token",
|
71 + | "NextContinuationToken",
|
72 72 | 2,
|
73 73 | );
|
74 74 | static LISTBUCKETINTELLIGENTTIERINGCONFIGURATIONSOUTPUT_MEMBER_INTELLIGENT_TIERING_CONFIGURATION_LIST: ::aws_smithy_schema::Schema =
|
75 75 | ::aws_smithy_schema::Schema::new_member(
|
76 76 | ::aws_smithy_schema::ShapeId::from_static(
|
77 77 | "com.amazonaws.s3.synthetic#ListBucketIntelligentTieringConfigurationsOutput$IntelligentTieringConfigurationList",
|
78 78 | "com.amazonaws.s3.synthetic",
|
79 79 | "ListBucketIntelligentTieringConfigurationsOutput",
|
80 80 | ),
|
81 81 | ::aws_smithy_schema::ShapeType::List,
|
82 - | "intelligent_tiering_configuration_list",
|
82 + | "IntelligentTieringConfigurationList",
|
83 83 | 3,
|
84 84 | )
|
85 85 | .with_xml_name("IntelligentTieringConfiguration")
|
86 86 | .with_xml_flattened();
|
87 + | static LISTBUCKETINTELLIGENTTIERINGCONFIGURATIONSOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
88 + | ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
|
89 + | ::aws_smithy_schema::ShapeType::String,
|
90 + | "request_id",
|
91 + | 4,
|
92 + | )
|
93 + | .with_http_header("x-amzn-requestid");
|
87 94 | static LISTBUCKETINTELLIGENTTIERINGCONFIGURATIONSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
88 95 | LISTBUCKETINTELLIGENTTIERINGCONFIGURATIONSOUTPUT_SCHEMA_ID,
|
89 96 | ::aws_smithy_schema::ShapeType::Structure,
|
90 97 | &[
|
91 98 | &LISTBUCKETINTELLIGENTTIERINGCONFIGURATIONSOUTPUT_MEMBER_IS_TRUNCATED,
|
92 99 | &LISTBUCKETINTELLIGENTTIERINGCONFIGURATIONSOUTPUT_MEMBER_CONTINUATION_TOKEN,
|
93 100 | &LISTBUCKETINTELLIGENTTIERINGCONFIGURATIONSOUTPUT_MEMBER_NEXT_CONTINUATION_TOKEN,
|
94 101 | &LISTBUCKETINTELLIGENTTIERINGCONFIGURATIONSOUTPUT_MEMBER_INTELLIGENT_TIERING_CONFIGURATION_LIST,
|
102 + | &LISTBUCKETINTELLIGENTTIERINGCONFIGURATIONSOUTPUT_MEMBER__REQUEST_ID,
|
95 103 | ],
|
96 104 | );
|
97 105 | impl ListBucketIntelligentTieringConfigurationsOutput {
|
98 106 | /// The schema for this shape.
|
99 107 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTBUCKETINTELLIGENTTIERINGCONFIGURATIONSOUTPUT_SCHEMA;
|
100 108 | }
|
101 109 | impl ::aws_smithy_schema::serde::SerializableStruct for ListBucketIntelligentTieringConfigurationsOutput {
|
102 110 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
103 111 | fn serialize_members(
|
104 112 | &self,
|
105 113 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
106 114 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
107 115 | if let Some(ref val) = self.is_truncated {
|
108 116 | ser.write_boolean(&LISTBUCKETINTELLIGENTTIERINGCONFIGURATIONSOUTPUT_MEMBER_IS_TRUNCATED, *val)?;
|
109 117 | }
|
110 118 | if let Some(ref val) = self.continuation_token {
|
111 119 | ser.write_string(&LISTBUCKETINTELLIGENTTIERINGCONFIGURATIONSOUTPUT_MEMBER_CONTINUATION_TOKEN, val)?;
|
112 120 | }
|
113 121 | if let Some(ref val) = self.next_continuation_token {
|
114 122 | ser.write_string(&LISTBUCKETINTELLIGENTTIERINGCONFIGURATIONSOUTPUT_MEMBER_NEXT_CONTINUATION_TOKEN, val)?;
|
115 123 | }
|
116 124 | if let Some(ref val) = self.intelligent_tiering_configuration_list {
|
117 125 | ser.write_list(
|
118 126 | &LISTBUCKETINTELLIGENTTIERINGCONFIGURATIONSOUTPUT_MEMBER_INTELLIGENT_TIERING_CONFIGURATION_LIST,
|
119 127 | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
120 128 | for item in val {
|
121 129 | ser.write_struct(crate::types::IntelligentTieringConfiguration::SCHEMA, item)?;
|
122 130 | }
|
123 131 | Ok(())
|
124 132 | },
|
125 133 | )?;
|
126 134 | }
|
127 135 | Ok(())
|
128 136 | }
|
129 137 | }
|
130 138 | impl ListBucketIntelligentTieringConfigurationsOutput {
|
131 139 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
132 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
133 - | deserializer: &mut D,
|
140 + | pub fn deserialize(
|
141 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
134 142 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
135 143 | #[allow(unused_variables, unused_mut)]
|
136 144 | let mut builder = Self::builder();
|
137 145 | #[allow(
|
138 146 | unused_variables,
|
139 147 | unreachable_code,
|
140 148 | clippy::single_match,
|
141 149 | clippy::match_single_binding,
|
142 150 | clippy::diverging_sub_expression
|
143 151 | )]
|
144 - | deserializer.read_struct(&LISTBUCKETINTELLIGENTTIERINGCONFIGURATIONSOUTPUT_SCHEMA, (), |_, member, deser| {
|
152 + | deserializer.read_struct(&LISTBUCKETINTELLIGENTTIERINGCONFIGURATIONSOUTPUT_SCHEMA, &mut |member, deser| {
|
145 153 | match member.member_index() {
|
146 154 | Some(0) => {
|
147 155 | builder.is_truncated = Some(deser.read_boolean(member)?);
|
148 156 | }
|
149 157 | Some(1) => {
|
150 158 | builder.continuation_token = Some(deser.read_string(member)?);
|
151 159 | }
|
152 160 | Some(2) => {
|
153 161 | builder.next_continuation_token = Some(deser.read_string(member)?);
|
154 162 | }
|
155 163 | Some(3) => {
|
156 164 | builder.intelligent_tiering_configuration_list = Some({
|
157 - | let container = if let Some(cap) = deser.container_size() {
|
158 - | Vec::with_capacity(cap)
|
159 - | } else {
|
160 - | Vec::new()
|
161 - | };
|
162 - | deser.read_list(member, container, |mut list, deser| {
|
163 - | list.push(crate::types::IntelligentTieringConfiguration::deserialize(deser)?);
|
164 - | Ok(list)
|
165 - | })?
|
165 + | let mut container = Vec::new();
|
166 + | deser.read_list(member, &mut |deser| {
|
167 + | container.push(crate::types::IntelligentTieringConfiguration::deserialize(deser)?);
|
168 + | Ok(())
|
169 + | })?;
|
170 + | container
|
171 + | });
|
172 + | }
|
173 + | Some(4) => {
|
174 + | builder._request_id = Some(deser.read_string(member)?);
|
175 + | }
|
176 + | _ => {}
|
177 + | }
|
178 + | Ok(())
|
179 + | })?;
|
180 + | Ok(builder.build())
|
181 + | }
|
182 + | }
|
183 + | impl ListBucketIntelligentTieringConfigurationsOutput {
|
184 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
185 + | /// Header-bound members are read directly from headers, avoiding runtime
|
186 + | /// member iteration overhead. Body members are read via the deserializer.
|
187 + | pub fn deserialize_with_response(
|
188 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
189 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
190 + | _status: u16,
|
191 + | _body: &[u8],
|
192 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
193 + | #[allow(unused_variables, unused_mut)]
|
194 + | let mut builder = Self::builder();
|
195 + | if let Some(val) = headers.get("x-amzn-requestid") {
|
196 + | builder._request_id = Some(val.to_string());
|
197 + | }
|
198 + | #[allow(
|
199 + | unused_variables,
|
200 + | unreachable_code,
|
201 + | clippy::single_match,
|
202 + | clippy::match_single_binding,
|
203 + | clippy::diverging_sub_expression
|
204 + | )]
|
205 + | deserializer.read_struct(&LISTBUCKETINTELLIGENTTIERINGCONFIGURATIONSOUTPUT_SCHEMA, &mut |member, deser| {
|
206 + | match member.member_index() {
|
207 + | Some(0) => {
|
208 + | builder.is_truncated = Some(deser.read_boolean(member)?);
|
209 + | }
|
210 + | Some(1) => {
|
211 + | builder.continuation_token = Some(deser.read_string(member)?);
|
212 + | }
|
213 + | Some(2) => {
|
214 + | builder.next_continuation_token = Some(deser.read_string(member)?);
|
215 + | }
|
216 + | Some(3) => {
|
217 + | builder.intelligent_tiering_configuration_list = Some({
|
218 + | let mut container = Vec::new();
|
219 + | deser.read_list(member, &mut |deser| {
|
220 + | container.push(crate::types::IntelligentTieringConfiguration::deserialize(deser)?);
|
221 + | Ok(())
|
222 + | })?;
|
223 + | container
|
166 224 | });
|
167 225 | }
|
168 226 | _ => {}
|
169 227 | }
|
170 228 | Ok(())
|
171 229 | })?;
|
172 230 | Ok(builder.build())
|
173 231 | }
|
174 232 | }
|
175 233 | impl crate::s3_request_id::RequestIdExt for ListBucketIntelligentTieringConfigurationsOutput {
|