30 30 | "com.amazonaws.ec2.synthetic",
|
31 31 | "DisassociateVpcCidrBlockOutput",
|
32 32 | );
|
33 33 | static DISASSOCIATEVPCCIDRBLOCKOUTPUT_MEMBER_IPV6_CIDR_BLOCK_ASSOCIATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
34 34 | ::aws_smithy_schema::ShapeId::from_static(
|
35 35 | "com.amazonaws.ec2.synthetic#DisassociateVpcCidrBlockOutput$Ipv6CidrBlockAssociation",
|
36 36 | "com.amazonaws.ec2.synthetic",
|
37 37 | "DisassociateVpcCidrBlockOutput",
|
38 38 | ),
|
39 39 | ::aws_smithy_schema::ShapeType::Structure,
|
40 - | "ipv6_cidr_block_association",
|
40 + | "Ipv6CidrBlockAssociation",
|
41 41 | 0,
|
42 42 | )
|
43 43 | .with_xml_name("ipv6CidrBlockAssociation");
|
44 44 | static DISASSOCIATEVPCCIDRBLOCKOUTPUT_MEMBER_CIDR_BLOCK_ASSOCIATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
45 45 | ::aws_smithy_schema::ShapeId::from_static(
|
46 46 | "com.amazonaws.ec2.synthetic#DisassociateVpcCidrBlockOutput$CidrBlockAssociation",
|
47 47 | "com.amazonaws.ec2.synthetic",
|
48 48 | "DisassociateVpcCidrBlockOutput",
|
49 49 | ),
|
50 50 | ::aws_smithy_schema::ShapeType::Structure,
|
51 - | "cidr_block_association",
|
51 + | "CidrBlockAssociation",
|
52 52 | 1,
|
53 53 | )
|
54 54 | .with_xml_name("cidrBlockAssociation");
|
55 55 | static DISASSOCIATEVPCCIDRBLOCKOUTPUT_MEMBER_VPC_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
56 56 | ::aws_smithy_schema::ShapeId::from_static(
|
57 57 | "com.amazonaws.ec2.synthetic#DisassociateVpcCidrBlockOutput$VpcId",
|
58 58 | "com.amazonaws.ec2.synthetic",
|
59 59 | "DisassociateVpcCidrBlockOutput",
|
60 60 | ),
|
61 61 | ::aws_smithy_schema::ShapeType::String,
|
62 - | "vpc_id",
|
62 + | "VpcId",
|
63 63 | 2,
|
64 64 | )
|
65 65 | .with_xml_name("vpcId");
|
66 + | static DISASSOCIATEVPCCIDRBLOCKOUTPUT_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 DISASSOCIATEVPCCIDRBLOCKOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
67 74 | DISASSOCIATEVPCCIDRBLOCKOUTPUT_SCHEMA_ID,
|
68 75 | ::aws_smithy_schema::ShapeType::Structure,
|
69 76 | &[
|
70 77 | &DISASSOCIATEVPCCIDRBLOCKOUTPUT_MEMBER_IPV6_CIDR_BLOCK_ASSOCIATION,
|
71 78 | &DISASSOCIATEVPCCIDRBLOCKOUTPUT_MEMBER_CIDR_BLOCK_ASSOCIATION,
|
72 79 | &DISASSOCIATEVPCCIDRBLOCKOUTPUT_MEMBER_VPC_ID,
|
80 + | &DISASSOCIATEVPCCIDRBLOCKOUTPUT_MEMBER__REQUEST_ID,
|
73 81 | ],
|
74 82 | );
|
75 83 | impl DisassociateVpcCidrBlockOutput {
|
76 84 | /// The schema for this shape.
|
77 85 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DISASSOCIATEVPCCIDRBLOCKOUTPUT_SCHEMA;
|
78 86 | }
|
79 87 | impl ::aws_smithy_schema::serde::SerializableStruct for DisassociateVpcCidrBlockOutput {
|
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.ipv6_cidr_block_association {
|
86 94 | ser.write_struct(&DISASSOCIATEVPCCIDRBLOCKOUTPUT_MEMBER_IPV6_CIDR_BLOCK_ASSOCIATION, val)?;
|
87 95 | }
|
88 96 | if let Some(ref val) = self.cidr_block_association {
|
89 97 | ser.write_struct(&DISASSOCIATEVPCCIDRBLOCKOUTPUT_MEMBER_CIDR_BLOCK_ASSOCIATION, val)?;
|
90 98 | }
|
91 99 | if let Some(ref val) = self.vpc_id {
|
92 100 | ser.write_string(&DISASSOCIATEVPCCIDRBLOCKOUTPUT_MEMBER_VPC_ID, val)?;
|
93 101 | }
|
94 102 | Ok(())
|
95 103 | }
|
96 104 | }
|
97 105 | impl DisassociateVpcCidrBlockOutput {
|
98 106 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
99 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
100 - | deserializer: &mut D,
|
107 + | pub fn deserialize(
|
108 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
109 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
110 + | #[allow(unused_variables, unused_mut)]
|
111 + | let mut builder = Self::builder();
|
112 + | #[allow(
|
113 + | unused_variables,
|
114 + | unreachable_code,
|
115 + | clippy::single_match,
|
116 + | clippy::match_single_binding,
|
117 + | clippy::diverging_sub_expression
|
118 + | )]
|
119 + | deserializer.read_struct(&DISASSOCIATEVPCCIDRBLOCKOUTPUT_SCHEMA, &mut |member, deser| {
|
120 + | match member.member_index() {
|
121 + | Some(0) => {
|
122 + | builder.ipv6_cidr_block_association = Some(crate::types::VpcIpv6CidrBlockAssociation::deserialize(deser)?);
|
123 + | }
|
124 + | Some(1) => {
|
125 + | builder.cidr_block_association = Some(crate::types::VpcCidrBlockAssociation::deserialize(deser)?);
|
126 + | }
|
127 + | Some(2) => {
|
128 + | builder.vpc_id = Some(deser.read_string(member)?);
|
129 + | }
|
130 + | Some(3) => {
|
131 + | builder._request_id = Some(deser.read_string(member)?);
|
132 + | }
|
133 + | _ => {}
|
134 + | }
|
135 + | Ok(())
|
136 + | })?;
|
137 + | Ok(builder.build())
|
138 + | }
|
139 + | }
|
140 + | impl DisassociateVpcCidrBlockOutput {
|
141 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
142 + | /// Header-bound members are read directly from headers, avoiding runtime
|
143 + | /// member iteration overhead. Body members are read via the deserializer.
|
144 + | pub fn deserialize_with_response(
|
145 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
146 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
147 + | _status: u16,
|
148 + | _body: &[u8],
|
101 149 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
102 150 | #[allow(unused_variables, unused_mut)]
|
103 151 | let mut builder = Self::builder();
|
152 + | if let Some(val) = headers.get("x-amzn-requestid") {
|
153 + | builder._request_id = Some(val.to_string());
|
154 + | }
|
104 155 | #[allow(
|
105 156 | unused_variables,
|
106 157 | unreachable_code,
|
107 158 | clippy::single_match,
|
108 159 | clippy::match_single_binding,
|
109 160 | clippy::diverging_sub_expression
|
110 161 | )]
|
111 - | deserializer.read_struct(&DISASSOCIATEVPCCIDRBLOCKOUTPUT_SCHEMA, (), |_, member, deser| {
|
162 + | deserializer.read_struct(&DISASSOCIATEVPCCIDRBLOCKOUTPUT_SCHEMA, &mut |member, deser| {
|
112 163 | match member.member_index() {
|
113 164 | Some(0) => {
|
114 165 | builder.ipv6_cidr_block_association = Some(crate::types::VpcIpv6CidrBlockAssociation::deserialize(deser)?);
|
115 166 | }
|
116 167 | Some(1) => {
|
117 168 | builder.cidr_block_association = Some(crate::types::VpcCidrBlockAssociation::deserialize(deser)?);
|
118 169 | }
|
119 170 | Some(2) => {
|
120 171 | builder.vpc_id = Some(deser.read_string(member)?);
|
121 172 | }
|