#[non_exhaustive]pub struct StartBgpFailoverTestInput { /* private fields */ }Implementations§
source§impl StartBgpFailoverTestInput
impl StartBgpFailoverTestInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StartBgpFailoverTest, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StartBgpFailoverTest, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<StartBgpFailoverTest>
Examples found in repository?
src/client.rs (line 6716)
6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::StartBgpFailoverTest,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::StartBgpFailoverTestError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::StartBgpFailoverTestOutput,
aws_smithy_http::result::SdkError<crate::error::StartBgpFailoverTestError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StartBgpFailoverTestInput.
source§impl StartBgpFailoverTestInput
impl StartBgpFailoverTestInput
sourcepub fn virtual_interface_id(&self) -> Option<&str>
pub fn virtual_interface_id(&self) -> Option<&str>
The ID of the virtual interface you want to test.
sourcepub fn test_duration_in_minutes(&self) -> Option<i32>
pub fn test_duration_in_minutes(&self) -> Option<i32>
The time in minutes that the virtual interface failover test will last.
Maximum value: 180 minutes (3 hours).
Default: 180 minutes (3 hours).
Trait Implementations§
source§impl Clone for StartBgpFailoverTestInput
impl Clone for StartBgpFailoverTestInput
source§fn clone(&self) -> StartBgpFailoverTestInput
fn clone(&self) -> StartBgpFailoverTestInput
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