pub use crate::operation::describe_rules::_describe_rules_output::DescribeRulesOutputBuilder;
pub use crate::operation::describe_rules::_describe_rules_input::DescribeRulesInputBuilder;
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct DescribeRulesFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::describe_rules::builders::DescribeRulesInputBuilder,
}
impl DescribeRulesFluentBuilder {
pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: ::std::default::Default::default(),
}
}
#[doc(hidden)]
pub async fn customize_middleware(
self,
) -> ::std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::describe_rules::DescribeRules,
::aws_http::retry::AwsResponseRetryClassifier,
>,
::aws_smithy_http::result::SdkError<crate::operation::describe_rules::DescribeRulesError>,
> {
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)?;
::std::result::Result::Ok(crate::client::customize::CustomizableOperation {
handle,
operation,
})
}
#[doc(hidden)]
pub async fn send_middleware(
self,
) -> ::std::result::Result<
crate::operation::describe_rules::DescribeRulesOutput,
::aws_smithy_http::result::SdkError<crate::operation::describe_rules::DescribeRulesError>,
> {
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 async fn send(
self,
) -> ::std::result::Result<
crate::operation::describe_rules::DescribeRulesOutput,
::aws_smithy_http::result::SdkError<crate::operation::describe_rules::DescribeRulesError>,
> {
self.send_middleware().await
}
pub async fn customize(
self,
) -> ::std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::describe_rules::DescribeRules,
::aws_http::retry::AwsResponseRetryClassifier,
>,
::aws_smithy_http::result::SdkError<crate::operation::describe_rules::DescribeRulesError>,
> {
self.customize_middleware().await
}
pub fn listener_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.listener_arn(input.into());
self
}
pub fn set_listener_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_listener_arn(input);
self
}
pub fn rule_arns(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.rule_arns(input.into());
self
}
pub fn set_rule_arns(
mut self,
input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
) -> Self {
self.inner = self.inner.set_rule_arns(input);
self
}
pub fn marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.marker(input.into());
self
}
pub fn set_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_marker(input);
self
}
pub fn page_size(mut self, input: i32) -> Self {
self.inner = self.inner.page_size(input);
self
}
pub fn set_page_size(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_page_size(input);
self
}
}