Struct aws_sdk_ec2::model::route_table::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for RouteTable
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn associations(self, input: RouteTableAssociation) -> Self
pub fn associations(self, input: RouteTableAssociation) -> Self
Appends an item to associations
.
To override the contents of this collection use set_associations
.
The associations between the route table and one or more subnets or a gateway.
sourcepub fn set_associations(self, input: Option<Vec<RouteTableAssociation>>) -> Self
pub fn set_associations(self, input: Option<Vec<RouteTableAssociation>>) -> Self
The associations between the route table and one or more subnets or a gateway.
Examples found in repository?
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())
}
sourcepub fn propagating_vgws(self, input: PropagatingVgw) -> Self
pub fn propagating_vgws(self, input: PropagatingVgw) -> Self
Appends an item to propagating_vgws
.
To override the contents of this collection use set_propagating_vgws
.
Any virtual private gateway (VGW) propagating routes.
sourcepub fn set_propagating_vgws(self, input: Option<Vec<PropagatingVgw>>) -> Self
pub fn set_propagating_vgws(self, input: Option<Vec<PropagatingVgw>>) -> Self
Any virtual private gateway (VGW) propagating routes.
Examples found in repository?
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())
}
sourcepub fn route_table_id(self, input: impl Into<String>) -> Self
pub fn route_table_id(self, input: impl Into<String>) -> Self
The ID of the route table.
sourcepub fn set_route_table_id(self, input: Option<String>) -> Self
pub fn set_route_table_id(self, input: Option<String>) -> Self
The ID of the route table.
Examples found in repository?
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())
}
sourcepub fn routes(self, input: Route) -> Self
pub fn routes(self, input: Route) -> Self
Appends an item to routes
.
To override the contents of this collection use set_routes
.
The routes in the route table.
sourcepub fn set_routes(self, input: Option<Vec<Route>>) -> Self
pub fn set_routes(self, input: Option<Vec<Route>>) -> Self
The routes in the route table.
Examples found in repository?
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())
}
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Any tags assigned to the route table.
Any tags assigned to the route table.
Examples found in repository?
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())
}
sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
The ID of the VPC.
Examples found in repository?
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())
}
sourcepub fn owner_id(self, input: impl Into<String>) -> Self
pub fn owner_id(self, input: impl Into<String>) -> Self
The ID of the Amazon Web Services account that owns the route table.
sourcepub fn set_owner_id(self, input: Option<String>) -> Self
pub fn set_owner_id(self, input: Option<String>) -> Self
The ID of the Amazon Web Services account that owns the route table.
Examples found in repository?
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())
}
sourcepub fn build(self) -> RouteTable
pub fn build(self) -> RouteTable
Consumes the builder and constructs a RouteTable
.
Examples found in repository?
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())
}