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

Describes a subnet CIDR reservation.

Implementations§

The ID of the subnet CIDR reservation.

The ID of the subnet.

The CIDR that has been reserved.

The type of reservation.

The ID of the account that owns the subnet CIDR reservation.

The description assigned to the subnet CIDR reservation.

The tags assigned to the subnet CIDR reservation.

Creates a new builder-style object to manufacture SubnetCidrReservation.

Examples found in repository?
src/xml_deser.rs (line 29993)
29989
29990
29991
29992
29993
29994
29995
29996
29997
29998
29999
30000
30001
30002
30003
30004
30005
30006
30007
30008
30009
30010
30011
30012
30013
30014
30015
30016
30017
30018
30019
30020
30021
30022
30023
30024
30025
30026
30027
30028
30029
30030
30031
30032
30033
30034
30035
30036
30037
30038
30039
30040
30041
30042
30043
30044
30045
30046
30047
30048
30049
30050
30051
30052
30053
30054
30055
30056
30057
30058
30059
30060
30061
30062
30063
30064
30065
30066
30067
30068
30069
30070
30071
30072
30073
30074
30075
30076
30077
30078
30079
30080
30081
30082
30083
30084
30085
30086
30087
30088
30089
pub fn deser_structure_crate_model_subnet_cidr_reservation(
    decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::SubnetCidrReservation, aws_smithy_xml::decode::XmlDecodeError> {
    #[allow(unused_mut)]
    let mut builder = crate::model::SubnetCidrReservation::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("subnetCidrReservationId") /* SubnetCidrReservationId com.amazonaws.ec2#SubnetCidrReservation$SubnetCidrReservationId */ =>  {
                let var_1289 =
                    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_subnet_cidr_reservation_id(var_1289);
            }
            ,
            s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#SubnetCidrReservation$SubnetId */ =>  {
                let var_1290 =
                    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_subnet_id(var_1290);
            }
            ,
            s if s.matches("cidr") /* Cidr com.amazonaws.ec2#SubnetCidrReservation$Cidr */ =>  {
                let var_1291 =
                    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_cidr(var_1291);
            }
            ,
            s if s.matches("reservationType") /* ReservationType com.amazonaws.ec2#SubnetCidrReservation$ReservationType */ =>  {
                let var_1292 =
                    Some(
                        Result::<crate::model::SubnetCidrReservationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            crate::model::SubnetCidrReservationType::from(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                        )
                        ?
                    )
                ;
                builder = builder.set_reservation_type(var_1292);
            }
            ,
            s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#SubnetCidrReservation$OwnerId */ =>  {
                let var_1293 =
                    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_1293);
            }
            ,
            s if s.matches("description") /* Description com.amazonaws.ec2#SubnetCidrReservation$Description */ =>  {
                let var_1294 =
                    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_1294);
            }
            ,
            s if s.matches("tagSet") /* Tags com.amazonaws.ec2#SubnetCidrReservation$Tags */ =>  {
                let var_1295 =
                    Some(
                        crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_tags(var_1295);
            }
            ,
            _ => {}
        }
    }
    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