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

Describes a VPC in a VPC peering connection.

Implementations§

The IPv4 CIDR block for the VPC.

The IPv6 CIDR block for the VPC.

Information about the IPv4 CIDR blocks for the VPC.

The ID of the Amazon Web Services account that owns the VPC.

Information about the VPC peering connection options for the accepter or requester VPC.

The ID of the VPC.

The Region in which the VPC is located.

Creates a new builder-style object to manufacture VpcPeeringConnectionVpcInfo.

Examples found in repository?
src/xml_deser.rs (line 39098)
39094
39095
39096
39097
39098
39099
39100
39101
39102
39103
39104
39105
39106
39107
39108
39109
39110
39111
39112
39113
39114
39115
39116
39117
39118
39119
39120
39121
39122
39123
39124
39125
39126
39127
39128
39129
39130
39131
39132
39133
39134
39135
39136
39137
39138
39139
39140
39141
39142
39143
39144
39145
39146
39147
39148
39149
39150
39151
39152
39153
39154
39155
39156
39157
39158
39159
39160
39161
39162
39163
39164
39165
39166
39167
39168
39169
39170
39171
39172
39173
39174
39175
39176
39177
39178
39179
39180
39181
39182
39183
39184
39185
39186
39187
pub fn deser_structure_crate_model_vpc_peering_connection_vpc_info(
    decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpcPeeringConnectionVpcInfo, aws_smithy_xml::decode::XmlDecodeError> {
    #[allow(unused_mut)]
    let mut builder = crate::model::VpcPeeringConnectionVpcInfo::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("cidrBlock") /* CidrBlock com.amazonaws.ec2#VpcPeeringConnectionVpcInfo$CidrBlock */ =>  {
                let var_1652 =
                    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_block(var_1652);
            }
            ,
            s if s.matches("ipv6CidrBlockSet") /* Ipv6CidrBlockSet com.amazonaws.ec2#VpcPeeringConnectionVpcInfo$Ipv6CidrBlockSet */ =>  {
                let var_1653 =
                    Some(
                        crate::xml_deser::deser_list_com_amazonaws_ec2_ipv6_cidr_block_set(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_ipv6_cidr_block_set(var_1653);
            }
            ,
            s if s.matches("cidrBlockSet") /* CidrBlockSet com.amazonaws.ec2#VpcPeeringConnectionVpcInfo$CidrBlockSet */ =>  {
                let var_1654 =
                    Some(
                        crate::xml_deser::deser_list_com_amazonaws_ec2_cidr_block_set(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_cidr_block_set(var_1654);
            }
            ,
            s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#VpcPeeringConnectionVpcInfo$OwnerId */ =>  {
                let var_1655 =
                    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_1655);
            }
            ,
            s if s.matches("peeringOptions") /* PeeringOptions com.amazonaws.ec2#VpcPeeringConnectionVpcInfo$PeeringOptions */ =>  {
                let var_1656 =
                    Some(
                        crate::xml_deser::deser_structure_crate_model_vpc_peering_connection_options_description(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_peering_options(var_1656);
            }
            ,
            s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#VpcPeeringConnectionVpcInfo$VpcId */ =>  {
                let var_1657 =
                    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_vpc_id(var_1657);
            }
            ,
            s if s.matches("region") /* Region com.amazonaws.ec2#VpcPeeringConnectionVpcInfo$Region */ =>  {
                let var_1658 =
                    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_region(var_1658);
            }
            ,
            _ => {}
        }
    }
    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