42 42 | "CreateTransitGatewayPrefixListReferenceInput",
|
43 43 | );
|
44 44 | static CREATETRANSITGATEWAYPREFIXLISTREFERENCEINPUT_MEMBER_TRANSIT_GATEWAY_ROUTE_TABLE_ID: ::aws_smithy_schema::Schema =
|
45 45 | ::aws_smithy_schema::Schema::new_member(
|
46 46 | ::aws_smithy_schema::ShapeId::from_static(
|
47 47 | "com.amazonaws.ec2.synthetic#CreateTransitGatewayPrefixListReferenceInput$TransitGatewayRouteTableId",
|
48 48 | "com.amazonaws.ec2.synthetic",
|
49 49 | "CreateTransitGatewayPrefixListReferenceInput",
|
50 50 | ),
|
51 51 | ::aws_smithy_schema::ShapeType::String,
|
52 - | "transit_gateway_route_table_id",
|
52 + | "TransitGatewayRouteTableId",
|
53 53 | 0,
|
54 54 | );
|
55 55 | static CREATETRANSITGATEWAYPREFIXLISTREFERENCEINPUT_MEMBER_PREFIX_LIST_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#CreateTransitGatewayPrefixListReferenceInput$PrefixListId",
|
58 58 | "com.amazonaws.ec2.synthetic",
|
59 59 | "CreateTransitGatewayPrefixListReferenceInput",
|
60 60 | ),
|
61 61 | ::aws_smithy_schema::ShapeType::String,
|
62 - | "prefix_list_id",
|
62 + | "PrefixListId",
|
63 63 | 1,
|
64 64 | );
|
65 65 | static CREATETRANSITGATEWAYPREFIXLISTREFERENCEINPUT_MEMBER_TRANSIT_GATEWAY_ATTACHMENT_ID: ::aws_smithy_schema::Schema =
|
66 66 | ::aws_smithy_schema::Schema::new_member(
|
67 67 | ::aws_smithy_schema::ShapeId::from_static(
|
68 68 | "com.amazonaws.ec2.synthetic#CreateTransitGatewayPrefixListReferenceInput$TransitGatewayAttachmentId",
|
69 69 | "com.amazonaws.ec2.synthetic",
|
70 70 | "CreateTransitGatewayPrefixListReferenceInput",
|
71 71 | ),
|
72 72 | ::aws_smithy_schema::ShapeType::String,
|
73 - | "transit_gateway_attachment_id",
|
73 + | "TransitGatewayAttachmentId",
|
74 74 | 2,
|
75 75 | );
|
76 76 | static CREATETRANSITGATEWAYPREFIXLISTREFERENCEINPUT_MEMBER_BLACKHOLE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
77 77 | ::aws_smithy_schema::ShapeId::from_static(
|
78 78 | "com.amazonaws.ec2.synthetic#CreateTransitGatewayPrefixListReferenceInput$Blackhole",
|
79 79 | "com.amazonaws.ec2.synthetic",
|
80 80 | "CreateTransitGatewayPrefixListReferenceInput",
|
81 81 | ),
|
82 82 | ::aws_smithy_schema::ShapeType::Boolean,
|
83 - | "blackhole",
|
83 + | "Blackhole",
|
84 84 | 3,
|
85 85 | );
|
86 86 | static CREATETRANSITGATEWAYPREFIXLISTREFERENCEINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
87 87 | ::aws_smithy_schema::ShapeId::from_static(
|
88 88 | "com.amazonaws.ec2.synthetic#CreateTransitGatewayPrefixListReferenceInput$DryRun",
|
89 89 | "com.amazonaws.ec2.synthetic",
|
90 90 | "CreateTransitGatewayPrefixListReferenceInput",
|
91 91 | ),
|
92 92 | ::aws_smithy_schema::ShapeType::Boolean,
|
93 - | "dry_run",
|
93 + | "DryRun",
|
94 94 | 4,
|
95 95 | );
|
96 96 | static CREATETRANSITGATEWAYPREFIXLISTREFERENCEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
97 97 | CREATETRANSITGATEWAYPREFIXLISTREFERENCEINPUT_SCHEMA_ID,
|
98 98 | ::aws_smithy_schema::ShapeType::Structure,
|
99 99 | &[
|
100 100 | &CREATETRANSITGATEWAYPREFIXLISTREFERENCEINPUT_MEMBER_TRANSIT_GATEWAY_ROUTE_TABLE_ID,
|
101 101 | &CREATETRANSITGATEWAYPREFIXLISTREFERENCEINPUT_MEMBER_PREFIX_LIST_ID,
|
102 102 | &CREATETRANSITGATEWAYPREFIXLISTREFERENCEINPUT_MEMBER_TRANSIT_GATEWAY_ATTACHMENT_ID,
|
103 103 | &CREATETRANSITGATEWAYPREFIXLISTREFERENCEINPUT_MEMBER_BLACKHOLE,
|
104 104 | &CREATETRANSITGATEWAYPREFIXLISTREFERENCEINPUT_MEMBER_DRY_RUN,
|
105 105 | ],
|
106 106 | );
|
107 107 | impl CreateTransitGatewayPrefixListReferenceInput {
|
108 108 | /// The schema for this shape.
|
109 109 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATETRANSITGATEWAYPREFIXLISTREFERENCEINPUT_SCHEMA;
|
110 110 | }
|
111 111 | impl ::aws_smithy_schema::serde::SerializableStruct for CreateTransitGatewayPrefixListReferenceInput {
|
112 112 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
113 113 | fn serialize_members(
|
114 114 | &self,
|
115 115 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
116 116 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
117 117 | if let Some(ref val) = self.transit_gateway_route_table_id {
|
118 118 | ser.write_string(&CREATETRANSITGATEWAYPREFIXLISTREFERENCEINPUT_MEMBER_TRANSIT_GATEWAY_ROUTE_TABLE_ID, val)?;
|
119 119 | }
|
120 120 | if let Some(ref val) = self.prefix_list_id {
|
121 121 | ser.write_string(&CREATETRANSITGATEWAYPREFIXLISTREFERENCEINPUT_MEMBER_PREFIX_LIST_ID, val)?;
|
122 122 | }
|
123 123 | if let Some(ref val) = self.transit_gateway_attachment_id {
|
124 124 | ser.write_string(&CREATETRANSITGATEWAYPREFIXLISTREFERENCEINPUT_MEMBER_TRANSIT_GATEWAY_ATTACHMENT_ID, val)?;
|
125 125 | }
|
126 126 | if let Some(ref val) = self.blackhole {
|
127 127 | ser.write_boolean(&CREATETRANSITGATEWAYPREFIXLISTREFERENCEINPUT_MEMBER_BLACKHOLE, *val)?;
|
128 128 | }
|
129 129 | if let Some(ref val) = self.dry_run {
|
130 130 | ser.write_boolean(&CREATETRANSITGATEWAYPREFIXLISTREFERENCEINPUT_MEMBER_DRY_RUN, *val)?;
|
131 131 | }
|
132 132 | Ok(())
|
133 133 | }
|
134 134 | }
|
135 135 | impl CreateTransitGatewayPrefixListReferenceInput {
|
136 136 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
137 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
138 - | deserializer: &mut D,
|
137 + | pub fn deserialize(
|
138 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
139 139 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
140 140 | #[allow(unused_variables, unused_mut)]
|
141 141 | let mut builder = Self::builder();
|
142 142 | #[allow(
|
143 143 | unused_variables,
|
144 144 | unreachable_code,
|
145 145 | clippy::single_match,
|
146 146 | clippy::match_single_binding,
|
147 147 | clippy::diverging_sub_expression
|
148 148 | )]
|
149 - | deserializer.read_struct(&CREATETRANSITGATEWAYPREFIXLISTREFERENCEINPUT_SCHEMA, (), |_, member, deser| {
|
149 + | deserializer.read_struct(&CREATETRANSITGATEWAYPREFIXLISTREFERENCEINPUT_SCHEMA, &mut |member, deser| {
|
150 150 | match member.member_index() {
|
151 151 | Some(0) => {
|
152 152 | builder.transit_gateway_route_table_id = Some(deser.read_string(member)?);
|
153 153 | }
|
154 154 | Some(1) => {
|
155 155 | builder.prefix_list_id = Some(deser.read_string(member)?);
|
156 156 | }
|
157 157 | Some(2) => {
|
158 158 | builder.transit_gateway_attachment_id = Some(deser.read_string(member)?);
|
159 159 | }
|
160 160 | Some(3) => {
|
161 161 | builder.blackhole = Some(deser.read_boolean(member)?);
|
162 162 | }
|
163 163 | Some(4) => {
|
164 164 | builder.dry_run = Some(deser.read_boolean(member)?);
|
165 165 | }
|
166 166 | _ => {}
|
167 167 | }
|
168 168 | Ok(())
|
169 169 | })?;
|
170 + | builder.transit_gateway_route_table_id = builder.transit_gateway_route_table_id.or(Some(String::new()));
|
171 + | builder.prefix_list_id = builder.prefix_list_id.or(Some(String::new()));
|
170 172 | builder
|
171 173 | .build()
|
172 174 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
173 175 | }
|
174 176 | }
|
177 + | impl CreateTransitGatewayPrefixListReferenceInput {
|
178 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
179 + | pub fn deserialize_with_response(
|
180 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
181 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
182 + | _status: u16,
|
183 + | _body: &[u8],
|
184 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
185 + | Self::deserialize(deserializer)
|
186 + | }
|
187 + | }
|
175 188 | impl CreateTransitGatewayPrefixListReferenceInput {
|
176 189 | /// Creates a new builder-style object to manufacture [`CreateTransitGatewayPrefixListReferenceInput`](crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceInput).
|
177 190 | pub fn builder() -> crate::operation::create_transit_gateway_prefix_list_reference::builders::CreateTransitGatewayPrefixListReferenceInputBuilder
|
178 191 | {
|
179 192 | crate::operation::create_transit_gateway_prefix_list_reference::builders::CreateTransitGatewayPrefixListReferenceInputBuilder::default()
|
180 193 | }
|
181 194 | }
|
182 195 |
|
183 196 | /// A builder for [`CreateTransitGatewayPrefixListReferenceInput`](crate::operation::create_transit_gateway_prefix_list_reference::CreateTransitGatewayPrefixListReferenceInput).
|
184 197 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|