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

Describes a transit gateway.

Implementations§

The ID of the transit gateway.

The Amazon Resource Name (ARN) of the transit gateway.

The state of the transit gateway.

The ID of the Amazon Web Services account that owns the transit gateway.

The description of the transit gateway.

The creation time.

The transit gateway options.

The tags for the transit gateway.

Creates a new builder-style object to manufacture TransitGateway.

Examples found in repository?
src/xml_deser.rs (line 30591)
30587
30588
30589
30590
30591
30592
30593
30594
30595
30596
30597
30598
30599
30600
30601
30602
30603
30604
30605
30606
30607
30608
30609
30610
30611
30612
30613
30614
30615
30616
30617
30618
30619
30620
30621
30622
30623
30624
30625
30626
30627
30628
30629
30630
30631
30632
30633
30634
30635
30636
30637
30638
30639
30640
30641
30642
30643
30644
30645
30646
30647
30648
30649
30650
30651
30652
30653
30654
30655
30656
30657
30658
30659
30660
30661
30662
30663
30664
30665
30666
30667
30668
30669
30670
30671
30672
30673
30674
30675
30676
30677
30678
30679
30680
30681
30682
30683
30684
30685
30686
30687
30688
30689
30690
30691
30692
30693
30694
30695
30696
30697
30698
pub fn deser_structure_crate_model_transit_gateway(
    decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TransitGateway, aws_smithy_xml::decode::XmlDecodeError> {
    #[allow(unused_mut)]
    let mut builder = crate::model::TransitGateway::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("transitGatewayId") /* TransitGatewayId com.amazonaws.ec2#TransitGateway$TransitGatewayId */ =>  {
                let var_1331 =
                    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_1331);
            }
            ,
            s if s.matches("transitGatewayArn") /* TransitGatewayArn com.amazonaws.ec2#TransitGateway$TransitGatewayArn */ =>  {
                let var_1332 =
                    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_arn(var_1332);
            }
            ,
            s if s.matches("state") /* State com.amazonaws.ec2#TransitGateway$State */ =>  {
                let var_1333 =
                    Some(
                        Result::<crate::model::TransitGatewayState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            crate::model::TransitGatewayState::from(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                        )
                        ?
                    )
                ;
                builder = builder.set_state(var_1333);
            }
            ,
            s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#TransitGateway$OwnerId */ =>  {
                let var_1334 =
                    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_owner_id(var_1334);
            }
            ,
            s if s.matches("description") /* Description com.amazonaws.ec2#TransitGateway$Description */ =>  {
                let var_1335 =
                    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_description(var_1335);
            }
            ,
            s if s.matches("creationTime") /* CreationTime com.amazonaws.ec2#TransitGateway$CreationTime */ =>  {
                let var_1336 =
                    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_1336);
            }
            ,
            s if s.matches("options") /* Options com.amazonaws.ec2#TransitGateway$Options */ =>  {
                let var_1337 =
                    Some(
                        crate::xml_deser::deser_structure_crate_model_transit_gateway_options(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_options(var_1337);
            }
            ,
            s if s.matches("tagSet") /* Tags com.amazonaws.ec2#TransitGateway$Tags */ =>  {
                let var_1338 =
                    Some(
                        crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_tags(var_1338);
            }
            ,
            _ => {}
        }
    }
    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