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