Struct aws_sdk_ec2::model::RouteTableAssociation
source · #[non_exhaustive]pub struct RouteTableAssociation { /* private fields */ }
Expand description
Describes an association between a route table and a subnet or gateway.
Implementations§
source§impl RouteTableAssociation
impl RouteTableAssociation
sourcepub fn route_table_association_id(&self) -> Option<&str>
pub fn route_table_association_id(&self) -> Option<&str>
The ID of the association.
sourcepub fn route_table_id(&self) -> Option<&str>
pub fn route_table_id(&self) -> Option<&str>
The ID of the route table.
sourcepub fn subnet_id(&self) -> Option<&str>
pub fn subnet_id(&self) -> Option<&str>
The ID of the subnet. A subnet ID is not returned for an implicit association.
sourcepub fn gateway_id(&self) -> Option<&str>
pub fn gateway_id(&self) -> Option<&str>
The ID of the internet gateway or virtual private gateway.
sourcepub fn association_state(&self) -> Option<&RouteTableAssociationState>
pub fn association_state(&self) -> Option<&RouteTableAssociationState>
The state of the association.
source§impl RouteTableAssociation
impl RouteTableAssociation
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture RouteTableAssociation
.
Examples found in repository?
src/xml_deser.rs (line 57313)
57309 57310 57311 57312 57313 57314 57315 57316 57317 57318 57319 57320 57321 57322 57323 57324 57325 57326 57327 57328 57329 57330 57331 57332 57333 57334 57335 57336 57337 57338 57339 57340 57341 57342 57343 57344 57345 57346 57347 57348 57349 57350 57351 57352 57353 57354 57355 57356 57357 57358 57359 57360 57361 57362 57363 57364 57365 57366 57367 57368 57369 57370 57371 57372 57373 57374 57375 57376 57377 57378 57379 57380 57381 57382 57383 57384 57385 57386 57387 57388 57389 57390 57391 57392 57393 57394 57395 57396 57397
pub fn deser_structure_crate_model_route_table_association(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::RouteTableAssociation, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::RouteTableAssociation::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("main") /* Main com.amazonaws.ec2#RouteTableAssociation$Main */ => {
let var_2788 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_main(var_2788);
}
,
s if s.matches("routeTableAssociationId") /* RouteTableAssociationId com.amazonaws.ec2#RouteTableAssociation$RouteTableAssociationId */ => {
let var_2789 =
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_association_id(var_2789);
}
,
s if s.matches("routeTableId") /* RouteTableId com.amazonaws.ec2#RouteTableAssociation$RouteTableId */ => {
let var_2790 =
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_2790);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#RouteTableAssociation$SubnetId */ => {
let var_2791 =
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_2791);
}
,
s if s.matches("gatewayId") /* GatewayId com.amazonaws.ec2#RouteTableAssociation$GatewayId */ => {
let var_2792 =
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_gateway_id(var_2792);
}
,
s if s.matches("associationState") /* AssociationState com.amazonaws.ec2#RouteTableAssociation$AssociationState */ => {
let var_2793 =
Some(
crate::xml_deser::deser_structure_crate_model_route_table_association_state(&mut tag)
?
)
;
builder = builder.set_association_state(var_2793);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for RouteTableAssociation
impl Clone for RouteTableAssociation
source§fn clone(&self) -> RouteTableAssociation
fn clone(&self) -> RouteTableAssociation
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