#[non_exhaustive]pub struct ConnectPeerBgpConfigurationBuilder { /* private fields */ }
Expand description
A builder for ConnectPeerBgpConfiguration
.
Implementations§
source§impl ConnectPeerBgpConfigurationBuilder
impl ConnectPeerBgpConfigurationBuilder
sourcepub fn core_network_asn(self, input: i64) -> Self
pub fn core_network_asn(self, input: i64) -> Self
The ASN of the Coret Network.
sourcepub fn set_core_network_asn(self, input: Option<i64>) -> Self
pub fn set_core_network_asn(self, input: Option<i64>) -> Self
The ASN of the Coret Network.
sourcepub fn get_core_network_asn(&self) -> &Option<i64>
pub fn get_core_network_asn(&self) -> &Option<i64>
The ASN of the Coret Network.
sourcepub fn set_peer_asn(self, input: Option<i64>) -> Self
pub fn set_peer_asn(self, input: Option<i64>) -> Self
The ASN of the Connect peer.
sourcepub fn get_peer_asn(&self) -> &Option<i64>
pub fn get_peer_asn(&self) -> &Option<i64>
The ASN of the Connect peer.
sourcepub fn core_network_address(self, input: impl Into<String>) -> Self
pub fn core_network_address(self, input: impl Into<String>) -> Self
The address of a core network.
sourcepub fn set_core_network_address(self, input: Option<String>) -> Self
pub fn set_core_network_address(self, input: Option<String>) -> Self
The address of a core network.
sourcepub fn get_core_network_address(&self) -> &Option<String>
pub fn get_core_network_address(&self) -> &Option<String>
The address of a core network.
sourcepub fn peer_address(self, input: impl Into<String>) -> Self
pub fn peer_address(self, input: impl Into<String>) -> Self
The address of a core network Connect peer.
sourcepub fn set_peer_address(self, input: Option<String>) -> Self
pub fn set_peer_address(self, input: Option<String>) -> Self
The address of a core network Connect peer.
sourcepub fn get_peer_address(&self) -> &Option<String>
pub fn get_peer_address(&self) -> &Option<String>
The address of a core network Connect peer.
sourcepub fn build(self) -> ConnectPeerBgpConfiguration
pub fn build(self) -> ConnectPeerBgpConfiguration
Consumes the builder and constructs a ConnectPeerBgpConfiguration
.
Trait Implementations§
source§impl Clone for ConnectPeerBgpConfigurationBuilder
impl Clone for ConnectPeerBgpConfigurationBuilder
source§fn clone(&self) -> ConnectPeerBgpConfigurationBuilder
fn clone(&self) -> ConnectPeerBgpConfigurationBuilder
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 ConnectPeerBgpConfigurationBuilder
impl Default for ConnectPeerBgpConfigurationBuilder
source§fn default() -> ConnectPeerBgpConfigurationBuilder
fn default() -> ConnectPeerBgpConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ConnectPeerBgpConfigurationBuilder
impl PartialEq for ConnectPeerBgpConfigurationBuilder
source§fn eq(&self, other: &ConnectPeerBgpConfigurationBuilder) -> bool
fn eq(&self, other: &ConnectPeerBgpConfigurationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConnectPeerBgpConfigurationBuilder
Auto Trait Implementations§
impl Freeze for ConnectPeerBgpConfigurationBuilder
impl RefUnwindSafe for ConnectPeerBgpConfigurationBuilder
impl Send for ConnectPeerBgpConfigurationBuilder
impl Sync for ConnectPeerBgpConfigurationBuilder
impl Unpin for ConnectPeerBgpConfigurationBuilder
impl UnwindSafe for ConnectPeerBgpConfigurationBuilder
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.