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

Describes a transit gateway route table announcement.

Implementations§

The ID of the transit gateway route table announcement.

The ID of the transit gateway.

The ID of the core network for the transit gateway route table announcement.

The ID of the peer transit gateway.

The ID of the core network ID for the peer.

The ID of the peering attachment.

The direction for the route table announcement.

The ID of the transit gateway route table.

The state of the transit gateway announcement.

The timestamp when the transit gateway route table announcement was created.

The key-value pairs associated with the route table announcement.

Creates a new builder-style object to manufacture TransitGatewayRouteTableAnnouncement.

Examples found in repository?
src/xml_deser.rs (line 31373)
31366
31367
31368
31369
31370
31371
31372
31373
31374
31375
31376
31377
31378
31379
31380
31381
31382
31383
31384
31385
31386
31387
31388
31389
31390
31391
31392
31393
31394
31395
31396
31397
31398
31399
31400
31401
31402
31403
31404
31405
31406
31407
31408
31409
31410
31411
31412
31413
31414
31415
31416
31417
31418
31419
31420
31421
31422
31423
31424
31425
31426
31427
31428
31429
31430
31431
31432
31433
31434
31435
31436
31437
31438
31439
31440
31441
31442
31443
31444
31445
31446
31447
31448
31449
31450
31451
31452
31453
31454
31455
31456
31457
31458
31459
31460
31461
31462
31463
31464
31465
31466
31467
31468
31469
31470
31471
31472
31473
31474
31475
31476
31477
31478
31479
31480
31481
31482
31483
31484
31485
31486
31487
31488
31489
31490
31491
31492
31493
31494
31495
31496
31497
31498
31499
31500
31501
31502
31503
31504
31505
31506
31507
31508
31509
31510
31511
31512
31513
31514
31515
31516
31517
31518
31519
31520
31521
31522
31523
pub fn deser_structure_crate_model_transit_gateway_route_table_announcement(
    decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<
    crate::model::TransitGatewayRouteTableAnnouncement,
    aws_smithy_xml::decode::XmlDecodeError,
> {
    #[allow(unused_mut)]
    let mut builder = crate::model::TransitGatewayRouteTableAnnouncement::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("transitGatewayRouteTableAnnouncementId") /* TransitGatewayRouteTableAnnouncementId com.amazonaws.ec2#TransitGatewayRouteTableAnnouncement$TransitGatewayRouteTableAnnouncementId */ =>  {
                let var_1384 =
                    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_1384);
            }
            ,
            s if s.matches("transitGatewayId") /* TransitGatewayId com.amazonaws.ec2#TransitGatewayRouteTableAnnouncement$TransitGatewayId */ =>  {
                let var_1385 =
                    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_id(var_1385);
            }
            ,
            s if s.matches("coreNetworkId") /* CoreNetworkId com.amazonaws.ec2#TransitGatewayRouteTableAnnouncement$CoreNetworkId */ =>  {
                let var_1386 =
                    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_core_network_id(var_1386);
            }
            ,
            s if s.matches("peerTransitGatewayId") /* PeerTransitGatewayId com.amazonaws.ec2#TransitGatewayRouteTableAnnouncement$PeerTransitGatewayId */ =>  {
                let var_1387 =
                    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_peer_transit_gateway_id(var_1387);
            }
            ,
            s if s.matches("peerCoreNetworkId") /* PeerCoreNetworkId com.amazonaws.ec2#TransitGatewayRouteTableAnnouncement$PeerCoreNetworkId */ =>  {
                let var_1388 =
                    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_peer_core_network_id(var_1388);
            }
            ,
            s if s.matches("peeringAttachmentId") /* PeeringAttachmentId com.amazonaws.ec2#TransitGatewayRouteTableAnnouncement$PeeringAttachmentId */ =>  {
                let var_1389 =
                    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_peering_attachment_id(var_1389);
            }
            ,
            s if s.matches("announcementDirection") /* AnnouncementDirection com.amazonaws.ec2#TransitGatewayRouteTableAnnouncement$AnnouncementDirection */ =>  {
                let var_1390 =
                    Some(
                        Result::<crate::model::TransitGatewayRouteTableAnnouncementDirection, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            crate::model::TransitGatewayRouteTableAnnouncementDirection::from(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                        )
                        ?
                    )
                ;
                builder = builder.set_announcement_direction(var_1390);
            }
            ,
            s if s.matches("transitGatewayRouteTableId") /* TransitGatewayRouteTableId com.amazonaws.ec2#TransitGatewayRouteTableAnnouncement$TransitGatewayRouteTableId */ =>  {
                let var_1391 =
                    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_id(var_1391);
            }
            ,
            s if s.matches("state") /* State com.amazonaws.ec2#TransitGatewayRouteTableAnnouncement$State */ =>  {
                let var_1392 =
                    Some(
                        Result::<crate::model::TransitGatewayRouteTableAnnouncementState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            crate::model::TransitGatewayRouteTableAnnouncementState::from(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                        )
                        ?
                    )
                ;
                builder = builder.set_state(var_1392);
            }
            ,
            s if s.matches("creationTime") /* CreationTime com.amazonaws.ec2#TransitGatewayRouteTableAnnouncement$CreationTime */ =>  {
                let var_1393 =
                    Some(
                        aws_smithy_types::DateTime::from_str(
                            aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            , aws_smithy_types::date_time::Format::DateTime
                        )
                        .map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
                        ?
                    )
                ;
                builder = builder.set_creation_time(var_1393);
            }
            ,
            s if s.matches("tagSet") /* Tags com.amazonaws.ec2#TransitGatewayRouteTableAnnouncement$Tags */ =>  {
                let var_1394 =
                    Some(
                        crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_tags(var_1394);
            }
            ,
            _ => {}
        }
    }
    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