Struct aws_sdk_ec2::model::VpcPeeringConnectionVpcInfo
source · #[non_exhaustive]pub struct VpcPeeringConnectionVpcInfo { /* private fields */ }
Expand description
Describes a VPC in a VPC peering connection.
Implementations§
source§impl VpcPeeringConnectionVpcInfo
impl VpcPeeringConnectionVpcInfo
sourcepub fn cidr_block(&self) -> Option<&str>
pub fn cidr_block(&self) -> Option<&str>
The IPv4 CIDR block for the VPC.
sourcepub fn ipv6_cidr_block_set(&self) -> Option<&[Ipv6CidrBlock]>
pub fn ipv6_cidr_block_set(&self) -> Option<&[Ipv6CidrBlock]>
The IPv6 CIDR block for the VPC.
sourcepub fn cidr_block_set(&self) -> Option<&[CidrBlock]>
pub fn cidr_block_set(&self) -> Option<&[CidrBlock]>
Information about the IPv4 CIDR blocks for the VPC.
sourcepub fn owner_id(&self) -> Option<&str>
pub fn owner_id(&self) -> Option<&str>
The ID of the Amazon Web Services account that owns the VPC.
sourcepub fn peering_options(&self) -> Option<&VpcPeeringConnectionOptionsDescription>
pub fn peering_options(&self) -> Option<&VpcPeeringConnectionOptionsDescription>
Information about the VPC peering connection options for the accepter or requester VPC.
source§impl VpcPeeringConnectionVpcInfo
impl VpcPeeringConnectionVpcInfo
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
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§
source§impl Clone for VpcPeeringConnectionVpcInfo
impl Clone for VpcPeeringConnectionVpcInfo
source§fn clone(&self) -> VpcPeeringConnectionVpcInfo
fn clone(&self) -> VpcPeeringConnectionVpcInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more