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

Describes a prefix list reference.

Implementations§

The ID of the transit gateway route table.

The ID of the prefix list.

The ID of the prefix list owner.

The state of the prefix list reference.

Indicates whether traffic that matches this route is dropped.

Information about the transit gateway attachment.

Creates a new builder-style object to manufacture TransitGatewayPrefixListReference.

Examples found in repository?
src/xml_deser.rs (line 31082)
31077
31078
31079
31080
31081
31082
31083
31084
31085
31086
31087
31088
31089
31090
31091
31092
31093
31094
31095
31096
31097
31098
31099
31100
31101
31102
31103
31104
31105
31106
31107
31108
31109
31110
31111
31112
31113
31114
31115
31116
31117
31118
31119
31120
31121
31122
31123
31124
31125
31126
31127
31128
31129
31130
31131
31132
31133
31134
31135
31136
31137
31138
31139
31140
31141
31142
31143
31144
31145
31146
31147
31148
31149
31150
31151
31152
31153
31154
31155
31156
31157
31158
31159
31160
31161
31162
31163
31164
31165
31166
31167
pub fn deser_structure_crate_model_transit_gateway_prefix_list_reference(
    decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TransitGatewayPrefixListReference, aws_smithy_xml::decode::XmlDecodeError>
{
    #[allow(unused_mut)]
    let mut builder = crate::model::TransitGatewayPrefixListReference::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("transitGatewayRouteTableId") /* TransitGatewayRouteTableId com.amazonaws.ec2#TransitGatewayPrefixListReference$TransitGatewayRouteTableId */ =>  {
                let var_1365 =
                    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_1365);
            }
            ,
            s if s.matches("prefixListId") /* PrefixListId com.amazonaws.ec2#TransitGatewayPrefixListReference$PrefixListId */ =>  {
                let var_1366 =
                    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_1366);
            }
            ,
            s if s.matches("prefixListOwnerId") /* PrefixListOwnerId com.amazonaws.ec2#TransitGatewayPrefixListReference$PrefixListOwnerId */ =>  {
                let var_1367 =
                    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_owner_id(var_1367);
            }
            ,
            s if s.matches("state") /* State com.amazonaws.ec2#TransitGatewayPrefixListReference$State */ =>  {
                let var_1368 =
                    Some(
                        Result::<crate::model::TransitGatewayPrefixListReferenceState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            crate::model::TransitGatewayPrefixListReferenceState::from(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                        )
                        ?
                    )
                ;
                builder = builder.set_state(var_1368);
            }
            ,
            s if s.matches("blackhole") /* Blackhole com.amazonaws.ec2#TransitGatewayPrefixListReference$Blackhole */ =>  {
                let var_1369 =
                    Some(
                         {
                            <bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                            .map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
                        }
                        ?
                    )
                ;
                builder = builder.set_blackhole(var_1369);
            }
            ,
            s if s.matches("transitGatewayAttachment") /* TransitGatewayAttachment com.amazonaws.ec2#TransitGatewayPrefixListReference$TransitGatewayAttachment */ =>  {
                let var_1370 =
                    Some(
                        crate::xml_deser::deser_structure_crate_model_transit_gateway_prefix_list_attachment(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_transit_gateway_attachment(var_1370);
            }
            ,
            _ => {}
        }
    }
    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