#[non_exhaustive]pub struct TransitGatewayRouteTableAnnouncement { /* private fields */ }
Expand description
Describes a transit gateway route table announcement.
Implementations§
source§impl TransitGatewayRouteTableAnnouncement
impl TransitGatewayRouteTableAnnouncement
sourcepub fn transit_gateway_route_table_announcement_id(&self) -> Option<&str>
pub fn transit_gateway_route_table_announcement_id(&self) -> Option<&str>
The ID of the transit gateway route table announcement.
sourcepub fn transit_gateway_id(&self) -> Option<&str>
pub fn transit_gateway_id(&self) -> Option<&str>
The ID of the transit gateway.
sourcepub fn core_network_id(&self) -> Option<&str>
pub fn core_network_id(&self) -> Option<&str>
The ID of the core network for the transit gateway route table announcement.
sourcepub fn peer_transit_gateway_id(&self) -> Option<&str>
pub fn peer_transit_gateway_id(&self) -> Option<&str>
The ID of the peer transit gateway.
sourcepub fn peer_core_network_id(&self) -> Option<&str>
pub fn peer_core_network_id(&self) -> Option<&str>
The ID of the core network ID for the peer.
sourcepub fn peering_attachment_id(&self) -> Option<&str>
pub fn peering_attachment_id(&self) -> Option<&str>
The ID of the peering attachment.
sourcepub fn announcement_direction(
&self
) -> Option<&TransitGatewayRouteTableAnnouncementDirection>
pub fn announcement_direction(
&self
) -> Option<&TransitGatewayRouteTableAnnouncementDirection>
The direction for the route table announcement.
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 state(&self) -> Option<&TransitGatewayRouteTableAnnouncementState>
pub fn state(&self) -> Option<&TransitGatewayRouteTableAnnouncementState>
The state of the transit gateway announcement.
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
The timestamp when the transit gateway route table announcement was created.
The key-value pairs associated with the route table announcement.
source§impl TransitGatewayRouteTableAnnouncement
impl TransitGatewayRouteTableAnnouncement
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TransitGatewayRouteTableAnnouncement
.
Examples found in repository?
src/xml_deser.rs (line 31373)
31366 31367 31368 31369 31370 31371 31372 31373 31374 31375 31376 31377 31378 31379 31380 31381 31382 31383 31384 31385 31386 31387 31388 31389 31390 31391 31392 31393 31394 31395 31396 31397 31398 31399 31400 31401 31402 31403 31404 31405 31406 31407 31408 31409 31410 31411 31412 31413 31414 31415 31416 31417 31418 31419 31420 31421 31422 31423 31424 31425 31426 31427 31428 31429 31430 31431 31432 31433 31434 31435 31436 31437 31438 31439 31440 31441 31442 31443 31444 31445 31446 31447 31448 31449 31450 31451 31452 31453 31454 31455 31456 31457 31458 31459 31460 31461 31462 31463 31464 31465 31466 31467 31468 31469 31470 31471 31472 31473 31474 31475 31476 31477 31478 31479 31480 31481 31482 31483 31484 31485 31486 31487 31488 31489 31490 31491 31492 31493 31494 31495 31496 31497 31498 31499 31500 31501 31502 31503 31504 31505 31506 31507 31508 31509 31510 31511 31512 31513 31514 31515 31516 31517 31518 31519 31520 31521 31522 31523
pub fn deser_structure_crate_model_transit_gateway_route_table_announcement(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<
crate::model::TransitGatewayRouteTableAnnouncement,
aws_smithy_xml::decode::XmlDecodeError,
> {
#[allow(unused_mut)]
let mut builder = crate::model::TransitGatewayRouteTableAnnouncement::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("transitGatewayRouteTableAnnouncementId") /* TransitGatewayRouteTableAnnouncementId com.amazonaws.ec2#TransitGatewayRouteTableAnnouncement$TransitGatewayRouteTableAnnouncementId */ => {
let var_1384 =
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_announcement_id(var_1384);
}
,
s if s.matches("transitGatewayId") /* TransitGatewayId com.amazonaws.ec2#TransitGatewayRouteTableAnnouncement$TransitGatewayId */ => {
let var_1385 =
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_1385);
}
,
s if s.matches("coreNetworkId") /* CoreNetworkId com.amazonaws.ec2#TransitGatewayRouteTableAnnouncement$CoreNetworkId */ => {
let var_1386 =
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_core_network_id(var_1386);
}
,
s if s.matches("peerTransitGatewayId") /* PeerTransitGatewayId com.amazonaws.ec2#TransitGatewayRouteTableAnnouncement$PeerTransitGatewayId */ => {
let var_1387 =
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_peer_transit_gateway_id(var_1387);
}
,
s if s.matches("peerCoreNetworkId") /* PeerCoreNetworkId com.amazonaws.ec2#TransitGatewayRouteTableAnnouncement$PeerCoreNetworkId */ => {
let var_1388 =
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_peer_core_network_id(var_1388);
}
,
s if s.matches("peeringAttachmentId") /* PeeringAttachmentId com.amazonaws.ec2#TransitGatewayRouteTableAnnouncement$PeeringAttachmentId */ => {
let var_1389 =
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_peering_attachment_id(var_1389);
}
,
s if s.matches("announcementDirection") /* AnnouncementDirection com.amazonaws.ec2#TransitGatewayRouteTableAnnouncement$AnnouncementDirection */ => {
let var_1390 =
Some(
Result::<crate::model::TransitGatewayRouteTableAnnouncementDirection, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::TransitGatewayRouteTableAnnouncementDirection::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_announcement_direction(var_1390);
}
,
s if s.matches("transitGatewayRouteTableId") /* TransitGatewayRouteTableId com.amazonaws.ec2#TransitGatewayRouteTableAnnouncement$TransitGatewayRouteTableId */ => {
let var_1391 =
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_1391);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#TransitGatewayRouteTableAnnouncement$State */ => {
let var_1392 =
Some(
Result::<crate::model::TransitGatewayRouteTableAnnouncementState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::TransitGatewayRouteTableAnnouncementState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1392);
}
,
s if s.matches("creationTime") /* CreationTime com.amazonaws.ec2#TransitGatewayRouteTableAnnouncement$CreationTime */ => {
let var_1393 =
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_1393);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#TransitGatewayRouteTableAnnouncement$Tags */ => {
let var_1394 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1394);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for TransitGatewayRouteTableAnnouncement
impl Clone for TransitGatewayRouteTableAnnouncement
source§fn clone(&self) -> TransitGatewayRouteTableAnnouncement
fn clone(&self) -> TransitGatewayRouteTableAnnouncement
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