Struct aws_sdk_directconnect::operation::start_bgp_failover_test::builders::StartBgpFailoverTestInputBuilder
source · #[non_exhaustive]pub struct StartBgpFailoverTestInputBuilder { /* private fields */ }Expand description
A builder for StartBgpFailoverTestInput.
Implementations§
source§impl StartBgpFailoverTestInputBuilder
impl StartBgpFailoverTestInputBuilder
sourcepub fn virtual_interface_id(self, input: impl Into<String>) -> Self
pub fn virtual_interface_id(self, input: impl Into<String>) -> Self
The ID of the virtual interface you want to test.
This field is required.sourcepub fn set_virtual_interface_id(self, input: Option<String>) -> Self
pub fn set_virtual_interface_id(self, input: Option<String>) -> Self
The ID of the virtual interface you want to test.
sourcepub fn get_virtual_interface_id(&self) -> &Option<String>
pub fn get_virtual_interface_id(&self) -> &Option<String>
The ID of the virtual interface you want to test.
sourcepub fn bgp_peers(self, input: impl Into<String>) -> Self
pub fn bgp_peers(self, input: impl Into<String>) -> Self
Appends an item to bgp_peers.
To override the contents of this collection use set_bgp_peers.
The BGP peers to place in the DOWN state.
sourcepub fn set_bgp_peers(self, input: Option<Vec<String>>) -> Self
pub fn set_bgp_peers(self, input: Option<Vec<String>>) -> Self
The BGP peers to place in the DOWN state.
sourcepub fn get_bgp_peers(&self) -> &Option<Vec<String>>
pub fn get_bgp_peers(&self) -> &Option<Vec<String>>
The BGP peers to place in the DOWN state.
sourcepub fn test_duration_in_minutes(self, input: i32) -> Self
pub fn test_duration_in_minutes(self, input: i32) -> Self
The time in minutes that the virtual interface failover test will last.
Maximum value: 4,320 minutes (72 hours).
Default: 180 minutes (3 hours).
sourcepub fn set_test_duration_in_minutes(self, input: Option<i32>) -> Self
pub fn set_test_duration_in_minutes(self, input: Option<i32>) -> Self
The time in minutes that the virtual interface failover test will last.
Maximum value: 4,320 minutes (72 hours).
Default: 180 minutes (3 hours).
sourcepub fn get_test_duration_in_minutes(&self) -> &Option<i32>
pub fn get_test_duration_in_minutes(&self) -> &Option<i32>
The time in minutes that the virtual interface failover test will last.
Maximum value: 4,320 minutes (72 hours).
Default: 180 minutes (3 hours).
sourcepub fn build(self) -> Result<StartBgpFailoverTestInput, BuildError>
pub fn build(self) -> Result<StartBgpFailoverTestInput, BuildError>
Consumes the builder and constructs a StartBgpFailoverTestInput.
source§impl StartBgpFailoverTestInputBuilder
impl StartBgpFailoverTestInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<StartBgpFailoverTestOutput, SdkError<StartBgpFailoverTestError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<StartBgpFailoverTestOutput, SdkError<StartBgpFailoverTestError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for StartBgpFailoverTestInputBuilder
impl Clone for StartBgpFailoverTestInputBuilder
source§fn clone(&self) -> StartBgpFailoverTestInputBuilder
fn clone(&self) -> StartBgpFailoverTestInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for StartBgpFailoverTestInputBuilder
impl Default for StartBgpFailoverTestInputBuilder
source§fn default() -> StartBgpFailoverTestInputBuilder
fn default() -> StartBgpFailoverTestInputBuilder
source§impl PartialEq for StartBgpFailoverTestInputBuilder
impl PartialEq for StartBgpFailoverTestInputBuilder
source§fn eq(&self, other: &StartBgpFailoverTestInputBuilder) -> bool
fn eq(&self, other: &StartBgpFailoverTestInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for StartBgpFailoverTestInputBuilder
Auto Trait Implementations§
impl Freeze for StartBgpFailoverTestInputBuilder
impl RefUnwindSafe for StartBgpFailoverTestInputBuilder
impl Send for StartBgpFailoverTestInputBuilder
impl Sync for StartBgpFailoverTestInputBuilder
impl Unpin for StartBgpFailoverTestInputBuilder
impl UnwindSafe for StartBgpFailoverTestInputBuilder
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
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>
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>
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 more