// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub use crate::operation::describe_replay::_describe_replay_input::DescribeReplayInputBuilder;
pub use crate::operation::describe_replay::_describe_replay_output::DescribeReplayOutputBuilder;
impl crate::operation::describe_replay::builders::DescribeReplayInputBuilder {
/// Sends a request with this input using the given client.
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::describe_replay::DescribeReplayOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_replay::DescribeReplayError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.describe_replay();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
/// Fluent builder constructing a request to `DescribeReplay`.
///
/// <p>Retrieves details about a replay. Use <code>DescribeReplay</code> to determine the progress of a running replay. A replay processes events to replay based on the time in the event, and replays them using 1 minute intervals. If you use <code>StartReplay</code> and specify an <code>EventStartTime</code> and an <code>EventEndTime</code> that covers a 20 minute time range, the events are replayed from the first minute of that 20 minute range first. Then the events from the second minute are replayed. You can use <code>DescribeReplay</code> to determine the progress of a replay. The value returned for <code>EventLastReplayedTime</code> indicates the time within the specified time range associated with the last event replayed.</p>
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct DescribeReplayFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::describe_replay::builders::DescribeReplayInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::describe_replay::DescribeReplayOutput,
crate::operation::describe_replay::DescribeReplayError,
> for DescribeReplayFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::describe_replay::DescribeReplayOutput,
crate::operation::describe_replay::DescribeReplayError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl DescribeReplayFluentBuilder {
/// Creates a new `DescribeReplayFluentBuilder`.
pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: ::std::default::Default::default(),
config_override: ::std::option::Option::None,
}
}
/// Access the DescribeReplay as a reference.
pub fn as_input(&self) -> &crate::operation::describe_replay::builders::DescribeReplayInputBuilder {
&self.inner
}
/// 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::operation::describe_replay::DescribeReplayOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_replay::DescribeReplayError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let input = self
.inner
.build()
.map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
let runtime_plugins = crate::operation::describe_replay::DescribeReplay::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::describe_replay::DescribeReplay::orchestrate(&runtime_plugins, input).await
}
/// Consumes this builder, creating a customizable operation that can be modified before being sent.
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::describe_replay::DescribeReplayOutput,
crate::operation::describe_replay::DescribeReplayError,
Self,
> {
crate::client::customize::CustomizableOperation::new(self)
}
pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
self.set_config_override(::std::option::Option::Some(config_override.into()));
self
}
pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
self.config_override = config_override;
self
}
/// <p>The name of the replay to retrieve.</p>
pub fn replay_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.replay_name(input.into());
self
}
/// <p>The name of the replay to retrieve.</p>
pub fn set_replay_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_replay_name(input);
self
}
/// <p>The name of the replay to retrieve.</p>
pub fn get_replay_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_replay_name()
}
}