#[non_exhaustive]pub struct TransitGatewayAttachmentBgpConfigurationBuilder { /* private fields */ }
Expand description
A builder for TransitGatewayAttachmentBgpConfiguration
.
Implementations§
source§impl TransitGatewayAttachmentBgpConfigurationBuilder
impl TransitGatewayAttachmentBgpConfigurationBuilder
sourcepub fn transit_gateway_asn(self, input: i64) -> Self
pub fn transit_gateway_asn(self, input: i64) -> Self
The transit gateway Autonomous System Number (ASN).
sourcepub fn set_transit_gateway_asn(self, input: Option<i64>) -> Self
pub fn set_transit_gateway_asn(self, input: Option<i64>) -> Self
The transit gateway Autonomous System Number (ASN).
sourcepub fn get_transit_gateway_asn(&self) -> &Option<i64>
pub fn get_transit_gateway_asn(&self) -> &Option<i64>
The transit gateway Autonomous System Number (ASN).
sourcepub fn set_peer_asn(self, input: Option<i64>) -> Self
pub fn set_peer_asn(self, input: Option<i64>) -> Self
The peer Autonomous System Number (ASN).
sourcepub fn get_peer_asn(&self) -> &Option<i64>
pub fn get_peer_asn(&self) -> &Option<i64>
The peer Autonomous System Number (ASN).
sourcepub fn transit_gateway_address(self, input: impl Into<String>) -> Self
pub fn transit_gateway_address(self, input: impl Into<String>) -> Self
The interior BGP peer IP address for the transit gateway.
sourcepub fn set_transit_gateway_address(self, input: Option<String>) -> Self
pub fn set_transit_gateway_address(self, input: Option<String>) -> Self
The interior BGP peer IP address for the transit gateway.
sourcepub fn get_transit_gateway_address(&self) -> &Option<String>
pub fn get_transit_gateway_address(&self) -> &Option<String>
The interior BGP peer IP address for the transit gateway.
sourcepub fn peer_address(self, input: impl Into<String>) -> Self
pub fn peer_address(self, input: impl Into<String>) -> Self
The interior BGP peer IP address for the appliance.
sourcepub fn set_peer_address(self, input: Option<String>) -> Self
pub fn set_peer_address(self, input: Option<String>) -> Self
The interior BGP peer IP address for the appliance.
sourcepub fn get_peer_address(&self) -> &Option<String>
pub fn get_peer_address(&self) -> &Option<String>
The interior BGP peer IP address for the appliance.
sourcepub fn bgp_status(self, input: BgpStatus) -> Self
pub fn bgp_status(self, input: BgpStatus) -> Self
The BGP status.
sourcepub fn set_bgp_status(self, input: Option<BgpStatus>) -> Self
pub fn set_bgp_status(self, input: Option<BgpStatus>) -> Self
The BGP status.
sourcepub fn get_bgp_status(&self) -> &Option<BgpStatus>
pub fn get_bgp_status(&self) -> &Option<BgpStatus>
The BGP status.
sourcepub fn build(self) -> TransitGatewayAttachmentBgpConfiguration
pub fn build(self) -> TransitGatewayAttachmentBgpConfiguration
Consumes the builder and constructs a TransitGatewayAttachmentBgpConfiguration
.
Trait Implementations§
source§impl Clone for TransitGatewayAttachmentBgpConfigurationBuilder
impl Clone for TransitGatewayAttachmentBgpConfigurationBuilder
source§fn clone(&self) -> TransitGatewayAttachmentBgpConfigurationBuilder
fn clone(&self) -> TransitGatewayAttachmentBgpConfigurationBuilder
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 moresource§impl Default for TransitGatewayAttachmentBgpConfigurationBuilder
impl Default for TransitGatewayAttachmentBgpConfigurationBuilder
source§fn default() -> TransitGatewayAttachmentBgpConfigurationBuilder
fn default() -> TransitGatewayAttachmentBgpConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for TransitGatewayAttachmentBgpConfigurationBuilder
impl PartialEq for TransitGatewayAttachmentBgpConfigurationBuilder
source§fn eq(&self, other: &TransitGatewayAttachmentBgpConfigurationBuilder) -> bool
fn eq(&self, other: &TransitGatewayAttachmentBgpConfigurationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TransitGatewayAttachmentBgpConfigurationBuilder
Auto Trait Implementations§
impl Freeze for TransitGatewayAttachmentBgpConfigurationBuilder
impl RefUnwindSafe for TransitGatewayAttachmentBgpConfigurationBuilder
impl Send for TransitGatewayAttachmentBgpConfigurationBuilder
impl Sync for TransitGatewayAttachmentBgpConfigurationBuilder
impl Unpin for TransitGatewayAttachmentBgpConfigurationBuilder
impl UnwindSafe for TransitGatewayAttachmentBgpConfigurationBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.