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