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