pub use crate::operation::describe_log_streams::_describe_log_streams_output::DescribeLogStreamsOutputBuilder;
pub use crate::operation::describe_log_streams::_describe_log_streams_input::DescribeLogStreamsInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeLogStreamsFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::describe_log_streams::builders::DescribeLogStreamsInputBuilder,
}
impl DescribeLogStreamsFluentBuilder {
pub(crate) fn new(handle: std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
pub async fn customize(
self,
) -> std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::describe_log_streams::DescribeLogStreams,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::operation::describe_log_streams::DescribeLogStreamsError,
>,
> {
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::client::customize::CustomizableOperation { handle, operation })
}
pub async fn send(
self,
) -> std::result::Result<
crate::operation::describe_log_streams::DescribeLogStreamsOutput,
aws_smithy_http::result::SdkError<
crate::operation::describe_log_streams::DescribeLogStreamsError,
>,
> {
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
}
pub fn into_paginator(
self,
) -> crate::operation::describe_log_streams::paginator::DescribeLogStreamsPaginator {
crate::operation::describe_log_streams::paginator::DescribeLogStreamsPaginator::new(
self.handle,
self.inner,
)
}
pub fn log_group_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.log_group_name(input.into());
self
}
pub fn set_log_group_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_log_group_name(input);
self
}
pub fn log_group_identifier(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.log_group_identifier(input.into());
self
}
pub fn set_log_group_identifier(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_log_group_identifier(input);
self
}
pub fn log_stream_name_prefix(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.log_stream_name_prefix(input.into());
self
}
pub fn set_log_stream_name_prefix(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_log_stream_name_prefix(input);
self
}
pub fn order_by(mut self, input: crate::types::OrderBy) -> Self {
self.inner = self.inner.order_by(input);
self
}
pub fn set_order_by(mut self, input: std::option::Option<crate::types::OrderBy>) -> Self {
self.inner = self.inner.set_order_by(input);
self
}
pub fn descending(mut self, input: bool) -> Self {
self.inner = self.inner.descending(input);
self
}
pub fn set_descending(mut self, input: std::option::Option<bool>) -> Self {
self.inner = self.inner.set_descending(input);
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
pub fn limit(mut self, input: i32) -> Self {
self.inner = self.inner.limit(input);
self
}
pub fn set_limit(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_limit(input);
self
}
}