Struct aws_sdk_ec2::model::TransitGatewayRouteTable
source · #[non_exhaustive]pub struct TransitGatewayRouteTable { /* private fields */ }
Expand description
Describes a transit gateway route table.
Implementations§
source§impl TransitGatewayRouteTable
impl TransitGatewayRouteTable
sourcepub fn transit_gateway_route_table_id(&self) -> Option<&str>
pub fn transit_gateway_route_table_id(&self) -> Option<&str>
The ID of the transit gateway route table.
sourcepub fn transit_gateway_id(&self) -> Option<&str>
pub fn transit_gateway_id(&self) -> Option<&str>
The ID of the transit gateway.
sourcepub fn state(&self) -> Option<&TransitGatewayRouteTableState>
pub fn state(&self) -> Option<&TransitGatewayRouteTableState>
The state of the transit gateway route table.
sourcepub fn default_association_route_table(&self) -> Option<bool>
pub fn default_association_route_table(&self) -> Option<bool>
Indicates whether this is the default association route table for the transit gateway.
sourcepub fn default_propagation_route_table(&self) -> Option<bool>
pub fn default_propagation_route_table(&self) -> Option<bool>
Indicates whether this is the default propagation route table for the transit gateway.
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
The creation time.
Any tags assigned to the route table.
source§impl TransitGatewayRouteTable
impl TransitGatewayRouteTable
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TransitGatewayRouteTable
.
Examples found in repository?
src/xml_deser.rs (line 31263)
31259 31260 31261 31262 31263 31264 31265 31266 31267 31268 31269 31270 31271 31272 31273 31274 31275 31276 31277 31278 31279 31280 31281 31282 31283 31284 31285 31286 31287 31288 31289 31290 31291 31292 31293 31294 31295 31296 31297 31298 31299 31300 31301 31302 31303 31304 31305 31306 31307 31308 31309 31310 31311 31312 31313 31314 31315 31316 31317 31318 31319 31320 31321 31322 31323 31324 31325 31326 31327 31328 31329 31330 31331 31332 31333 31334 31335 31336 31337 31338 31339 31340 31341 31342 31343 31344 31345 31346 31347 31348 31349 31350 31351 31352 31353 31354 31355 31356 31357 31358 31359 31360 31361 31362 31363 31364
pub fn deser_structure_crate_model_transit_gateway_route_table(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TransitGatewayRouteTable, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::TransitGatewayRouteTable::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("transitGatewayRouteTableId") /* TransitGatewayRouteTableId com.amazonaws.ec2#TransitGatewayRouteTable$TransitGatewayRouteTableId */ => {
let var_1377 =
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_transit_gateway_route_table_id(var_1377);
}
,
s if s.matches("transitGatewayId") /* TransitGatewayId com.amazonaws.ec2#TransitGatewayRouteTable$TransitGatewayId */ => {
let var_1378 =
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_transit_gateway_id(var_1378);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#TransitGatewayRouteTable$State */ => {
let var_1379 =
Some(
Result::<crate::model::TransitGatewayRouteTableState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::TransitGatewayRouteTableState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1379);
}
,
s if s.matches("defaultAssociationRouteTable") /* DefaultAssociationRouteTable com.amazonaws.ec2#TransitGatewayRouteTable$DefaultAssociationRouteTable */ => {
let var_1380 =
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_default_association_route_table(var_1380);
}
,
s if s.matches("defaultPropagationRouteTable") /* DefaultPropagationRouteTable com.amazonaws.ec2#TransitGatewayRouteTable$DefaultPropagationRouteTable */ => {
let var_1381 =
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_default_propagation_route_table(var_1381);
}
,
s if s.matches("creationTime") /* CreationTime com.amazonaws.ec2#TransitGatewayRouteTable$CreationTime */ => {
let var_1382 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_creation_time(var_1382);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#TransitGatewayRouteTable$Tags */ => {
let var_1383 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1383);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for TransitGatewayRouteTable
impl Clone for TransitGatewayRouteTable
source§fn clone(&self) -> TransitGatewayRouteTable
fn clone(&self) -> TransitGatewayRouteTable
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