#[non_exhaustive]
pub struct TransitGatewayRoute { /* private fields */ }
Expand description

Describes a route for a transit gateway route table.

Implementations§

The CIDR block used for destination matches.

The ID of the prefix list used for destination matches.

The ID of the transit gateway route table announcement.

The attachments.

The route type.

The state of the route.

Creates a new builder-style object to manufacture TransitGatewayRoute.

Examples found in repository?
src/xml_deser.rs (line 31173)
31169
31170
31171
31172
31173
31174
31175
31176
31177
31178
31179
31180
31181
31182
31183
31184
31185
31186
31187
31188
31189
31190
31191
31192
31193
31194
31195
31196
31197
31198
31199
31200
31201
31202
31203
31204
31205
31206
31207
31208
31209
31210
31211
31212
31213
31214
31215
31216
31217
31218
31219
31220
31221
31222
31223
31224
31225
31226
31227
31228
31229
31230
31231
31232
31233
31234
31235
31236
31237
31238
31239
31240
31241
31242
31243
31244
31245
31246
31247
31248
31249
31250
31251
31252
31253
31254
31255
31256
31257
pub fn deser_structure_crate_model_transit_gateway_route(
    decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TransitGatewayRoute, aws_smithy_xml::decode::XmlDecodeError> {
    #[allow(unused_mut)]
    let mut builder = crate::model::TransitGatewayRoute::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("destinationCidrBlock") /* DestinationCidrBlock com.amazonaws.ec2#TransitGatewayRoute$DestinationCidrBlock */ =>  {
                let var_1371 =
                    Some(
                        Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            .into()
                        )
                        ?
                    )
                ;
                builder = builder.set_destination_cidr_block(var_1371);
            }
            ,
            s if s.matches("prefixListId") /* PrefixListId com.amazonaws.ec2#TransitGatewayRoute$PrefixListId */ =>  {
                let var_1372 =
                    Some(
                        Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            .into()
                        )
                        ?
                    )
                ;
                builder = builder.set_prefix_list_id(var_1372);
            }
            ,
            s if s.matches("transitGatewayRouteTableAnnouncementId") /* TransitGatewayRouteTableAnnouncementId com.amazonaws.ec2#TransitGatewayRoute$TransitGatewayRouteTableAnnouncementId */ =>  {
                let var_1373 =
                    Some(
                        Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            .into()
                        )
                        ?
                    )
                ;
                builder = builder.set_transit_gateway_route_table_announcement_id(var_1373);
            }
            ,
            s if s.matches("transitGatewayAttachments") /* TransitGatewayAttachments com.amazonaws.ec2#TransitGatewayRoute$TransitGatewayAttachments */ =>  {
                let var_1374 =
                    Some(
                        crate::xml_deser::deser_list_com_amazonaws_ec2_transit_gateway_route_attachment_list(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_transit_gateway_attachments(var_1374);
            }
            ,
            s if s.matches("type") /* Type com.amazonaws.ec2#TransitGatewayRoute$Type */ =>  {
                let var_1375 =
                    Some(
                        Result::<crate::model::TransitGatewayRouteType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            crate::model::TransitGatewayRouteType::from(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                        )
                        ?
                    )
                ;
                builder = builder.set_type(var_1375);
            }
            ,
            s if s.matches("state") /* State com.amazonaws.ec2#TransitGatewayRoute$State */ =>  {
                let var_1376 =
                    Some(
                        Result::<crate::model::TransitGatewayRouteState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            crate::model::TransitGatewayRouteState::from(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                        )
                        ?
                    )
                ;
                builder = builder.set_state(var_1376);
            }
            ,
            _ => {}
        }
    }
    Ok(builder.build())
}

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more