aws-sdk-firehose 1.113.0

AWS SDK for Amazon Kinesis Firehose
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub use crate::operation::list_delivery_streams::_list_delivery_streams_input::ListDeliveryStreamsInputBuilder;

pub use crate::operation::list_delivery_streams::_list_delivery_streams_output::ListDeliveryStreamsOutputBuilder;

impl crate::operation::list_delivery_streams::builders::ListDeliveryStreamsInputBuilder {
    /// Sends a request with this input using the given client.
    pub async fn send_with(
        self,
        client: &crate::Client,
    ) -> ::std::result::Result<
        crate::operation::list_delivery_streams::ListDeliveryStreamsOutput,
        ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::list_delivery_streams::ListDeliveryStreamsError,
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
        >,
    > {
        let mut fluent_builder = client.list_delivery_streams();
        fluent_builder.inner = self;
        fluent_builder.send().await
    }
}
/// Fluent builder constructing a request to `ListDeliveryStreams`.
///
/// <p>Lists your Firehose streams in alphabetical order of their names.</p>
/// <p>The number of Firehose streams might be too large to return using a single call to <code>ListDeliveryStreams</code>. You can limit the number of Firehose streams returned, using the <code>Limit</code> parameter. To determine whether there are more delivery streams to list, check the value of <code>HasMoreDeliveryStreams</code> in the output. If there are more Firehose streams to list, you can request them by calling this operation again and setting the <code>ExclusiveStartDeliveryStreamName</code> parameter to the name of the last Firehose stream returned in the last call.</p>
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct ListDeliveryStreamsFluentBuilder {
    handle: ::std::sync::Arc<crate::client::Handle>,
    inner: crate::operation::list_delivery_streams::builders::ListDeliveryStreamsInputBuilder,
    config_override: ::std::option::Option<crate::config::Builder>,
}
impl
    crate::client::customize::internal::CustomizableSend<
        crate::operation::list_delivery_streams::ListDeliveryStreamsOutput,
        crate::operation::list_delivery_streams::ListDeliveryStreamsError,
    > for ListDeliveryStreamsFluentBuilder
{
    fn send(
        self,
        config_override: crate::config::Builder,
    ) -> crate::client::customize::internal::BoxFuture<
        crate::client::customize::internal::SendResult<
            crate::operation::list_delivery_streams::ListDeliveryStreamsOutput,
            crate::operation::list_delivery_streams::ListDeliveryStreamsError,
        >,
    > {
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
    }
}
impl ListDeliveryStreamsFluentBuilder {
    /// Creates a new `ListDeliveryStreamsFluentBuilder`.
    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 ListDeliveryStreams as a reference.
    pub fn as_input(&self) -> &crate::operation::list_delivery_streams::builders::ListDeliveryStreamsInputBuilder {
        &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::list_delivery_streams::ListDeliveryStreamsOutput,
        ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::list_delivery_streams::ListDeliveryStreamsError,
            ::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::list_delivery_streams::ListDeliveryStreams::operation_runtime_plugins(
            self.handle.runtime_plugins.clone(),
            &self.handle.conf,
            self.config_override,
        );
        crate::operation::list_delivery_streams::ListDeliveryStreams::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::list_delivery_streams::ListDeliveryStreamsOutput,
        crate::operation::list_delivery_streams::ListDeliveryStreamsError,
        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 maximum number of Firehose streams to list. The default value is 10.</p>
    pub fn limit(mut self, input: i32) -> Self {
        self.inner = self.inner.limit(input);
        self
    }
    /// <p>The maximum number of Firehose streams to list. The default value is 10.</p>
    pub fn set_limit(mut self, input: ::std::option::Option<i32>) -> Self {
        self.inner = self.inner.set_limit(input);
        self
    }
    /// <p>The maximum number of Firehose streams to list. The default value is 10.</p>
    pub fn get_limit(&self) -> &::std::option::Option<i32> {
        self.inner.get_limit()
    }
    /// <p>The Firehose stream type. This can be one of the following values:</p>
    /// <ul>
    /// <li>
    /// <p><code>DirectPut</code>: Provider applications access the Firehose stream directly.</p></li>
    /// <li>
    /// <p><code>KinesisStreamAsSource</code>: The Firehose stream uses a Kinesis data stream as a source.</p></li>
    /// </ul>
    /// <p>This parameter is optional. If this parameter is omitted, Firehose streams of all types are returned.</p>
    pub fn delivery_stream_type(mut self, input: crate::types::DeliveryStreamType) -> Self {
        self.inner = self.inner.delivery_stream_type(input);
        self
    }
    /// <p>The Firehose stream type. This can be one of the following values:</p>
    /// <ul>
    /// <li>
    /// <p><code>DirectPut</code>: Provider applications access the Firehose stream directly.</p></li>
    /// <li>
    /// <p><code>KinesisStreamAsSource</code>: The Firehose stream uses a Kinesis data stream as a source.</p></li>
    /// </ul>
    /// <p>This parameter is optional. If this parameter is omitted, Firehose streams of all types are returned.</p>
    pub fn set_delivery_stream_type(mut self, input: ::std::option::Option<crate::types::DeliveryStreamType>) -> Self {
        self.inner = self.inner.set_delivery_stream_type(input);
        self
    }
    /// <p>The Firehose stream type. This can be one of the following values:</p>
    /// <ul>
    /// <li>
    /// <p><code>DirectPut</code>: Provider applications access the Firehose stream directly.</p></li>
    /// <li>
    /// <p><code>KinesisStreamAsSource</code>: The Firehose stream uses a Kinesis data stream as a source.</p></li>
    /// </ul>
    /// <p>This parameter is optional. If this parameter is omitted, Firehose streams of all types are returned.</p>
    pub fn get_delivery_stream_type(&self) -> &::std::option::Option<crate::types::DeliveryStreamType> {
        self.inner.get_delivery_stream_type()
    }
    /// <p>The list of Firehose streams returned by this call to <code>ListDeliveryStreams</code> will start with the Firehose stream whose name comes alphabetically immediately after the name you specify in <code>ExclusiveStartDeliveryStreamName</code>.</p>
    pub fn exclusive_start_delivery_stream_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.exclusive_start_delivery_stream_name(input.into());
        self
    }
    /// <p>The list of Firehose streams returned by this call to <code>ListDeliveryStreams</code> will start with the Firehose stream whose name comes alphabetically immediately after the name you specify in <code>ExclusiveStartDeliveryStreamName</code>.</p>
    pub fn set_exclusive_start_delivery_stream_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_exclusive_start_delivery_stream_name(input);
        self
    }
    /// <p>The list of Firehose streams returned by this call to <code>ListDeliveryStreams</code> will start with the Firehose stream whose name comes alphabetically immediately after the name you specify in <code>ExclusiveStartDeliveryStreamName</code>.</p>
    pub fn get_exclusive_start_delivery_stream_name(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_exclusive_start_delivery_stream_name()
    }
}