Struct aws_sdk_ec2::model::RouteTable
source · #[non_exhaustive]pub struct RouteTable { /* private fields */ }
Expand description
Describes a route table.
Implementations§
source§impl RouteTable
impl RouteTable
sourcepub fn associations(&self) -> Option<&[RouteTableAssociation]>
pub fn associations(&self) -> Option<&[RouteTableAssociation]>
The associations between the route table and one or more subnets or a gateway.
sourcepub fn propagating_vgws(&self) -> Option<&[PropagatingVgw]>
pub fn propagating_vgws(&self) -> Option<&[PropagatingVgw]>
Any virtual private gateway (VGW) propagating routes.
sourcepub fn route_table_id(&self) -> Option<&str>
pub fn route_table_id(&self) -> Option<&str>
The ID of the route table.
Any tags assigned to the route table.
source§impl RouteTable
impl RouteTable
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture RouteTable
.
Examples found in repository?
src/xml_deser.rs (line 29806)
29802 29803 29804 29805 29806 29807 29808 29809 29810 29811 29812 29813 29814 29815 29816 29817 29818 29819 29820 29821 29822 29823 29824 29825 29826 29827 29828 29829 29830 29831 29832 29833 29834 29835 29836 29837 29838 29839 29840 29841 29842 29843 29844 29845 29846 29847 29848 29849 29850 29851 29852 29853 29854 29855 29856 29857 29858 29859 29860 29861 29862 29863 29864 29865 29866 29867 29868 29869 29870 29871 29872 29873 29874 29875 29876 29877 29878 29879 29880 29881 29882 29883 29884 29885 29886 29887 29888 29889 29890 29891 29892
pub fn deser_structure_crate_model_route_table(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::RouteTable, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::RouteTable::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("associationSet") /* Associations com.amazonaws.ec2#RouteTable$Associations */ => {
let var_1277 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_route_table_association_list(&mut tag)
?
)
;
builder = builder.set_associations(var_1277);
}
,
s if s.matches("propagatingVgwSet") /* PropagatingVgws com.amazonaws.ec2#RouteTable$PropagatingVgws */ => {
let var_1278 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_propagating_vgw_list(&mut tag)
?
)
;
builder = builder.set_propagating_vgws(var_1278);
}
,
s if s.matches("routeTableId") /* RouteTableId com.amazonaws.ec2#RouteTable$RouteTableId */ => {
let var_1279 =
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_route_table_id(var_1279);
}
,
s if s.matches("routeSet") /* Routes com.amazonaws.ec2#RouteTable$Routes */ => {
let var_1280 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_route_list(&mut tag)
?
)
;
builder = builder.set_routes(var_1280);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#RouteTable$Tags */ => {
let var_1281 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1281);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#RouteTable$VpcId */ => {
let var_1282 =
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_1282);
}
,
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#RouteTable$OwnerId */ => {
let var_1283 =
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_1283);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for RouteTable
impl Clone for RouteTable
source§fn clone(&self) -> RouteTable
fn clone(&self) -> RouteTable
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