#[non_exhaustive]pub struct TransitGatewayAttachmentBgpConfiguration { /* private fields */ }
Expand description
The BGP configuration information.
Implementations§
source§impl TransitGatewayAttachmentBgpConfiguration
impl TransitGatewayAttachmentBgpConfiguration
sourcepub fn transit_gateway_asn(&self) -> Option<i64>
pub fn transit_gateway_asn(&self) -> Option<i64>
The transit gateway Autonomous System Number (ASN).
sourcepub fn transit_gateway_address(&self) -> Option<&str>
pub fn transit_gateway_address(&self) -> Option<&str>
The interior BGP peer IP address for the transit gateway.
sourcepub fn peer_address(&self) -> Option<&str>
pub fn peer_address(&self) -> Option<&str>
The interior BGP peer IP address for the appliance.
sourcepub fn bgp_status(&self) -> Option<&BgpStatus>
pub fn bgp_status(&self) -> Option<&BgpStatus>
The BGP status.
source§impl TransitGatewayAttachmentBgpConfiguration
impl TransitGatewayAttachmentBgpConfiguration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TransitGatewayAttachmentBgpConfiguration
.
Examples found in repository?
src/xml_deser.rs (line 64462)
64455 64456 64457 64458 64459 64460 64461 64462 64463 64464 64465 64466 64467 64468 64469 64470 64471 64472 64473 64474 64475 64476 64477 64478 64479 64480 64481 64482 64483 64484 64485 64486 64487 64488 64489 64490 64491 64492 64493 64494 64495 64496 64497 64498 64499 64500 64501 64502 64503 64504 64505 64506 64507 64508 64509 64510 64511 64512 64513 64514 64515 64516 64517 64518 64519 64520 64521 64522 64523 64524 64525 64526 64527 64528 64529 64530 64531 64532 64533 64534 64535 64536 64537 64538 64539
pub fn deser_structure_crate_model_transit_gateway_attachment_bgp_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<
crate::model::TransitGatewayAttachmentBgpConfiguration,
aws_smithy_xml::decode::XmlDecodeError,
> {
#[allow(unused_mut)]
let mut builder = crate::model::TransitGatewayAttachmentBgpConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("transitGatewayAsn") /* TransitGatewayAsn com.amazonaws.ec2#TransitGatewayAttachmentBgpConfiguration$TransitGatewayAsn */ => {
let var_3171 =
Some(
{
<i64 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 (long: `com.amazonaws.ec2#Long`)"))
}
?
)
;
builder = builder.set_transit_gateway_asn(var_3171);
}
,
s if s.matches("peerAsn") /* PeerAsn com.amazonaws.ec2#TransitGatewayAttachmentBgpConfiguration$PeerAsn */ => {
let var_3172 =
Some(
{
<i64 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 (long: `com.amazonaws.ec2#Long`)"))
}
?
)
;
builder = builder.set_peer_asn(var_3172);
}
,
s if s.matches("transitGatewayAddress") /* TransitGatewayAddress com.amazonaws.ec2#TransitGatewayAttachmentBgpConfiguration$TransitGatewayAddress */ => {
let var_3173 =
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_address(var_3173);
}
,
s if s.matches("peerAddress") /* PeerAddress com.amazonaws.ec2#TransitGatewayAttachmentBgpConfiguration$PeerAddress */ => {
let var_3174 =
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_address(var_3174);
}
,
s if s.matches("bgpStatus") /* BgpStatus com.amazonaws.ec2#TransitGatewayAttachmentBgpConfiguration$BgpStatus */ => {
let var_3175 =
Some(
Result::<crate::model::BgpStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BgpStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_bgp_status(var_3175);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for TransitGatewayAttachmentBgpConfiguration
impl Clone for TransitGatewayAttachmentBgpConfiguration
source§fn clone(&self) -> TransitGatewayAttachmentBgpConfiguration
fn clone(&self) -> TransitGatewayAttachmentBgpConfiguration
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