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 ==.