pub use crate::operation::create_archive_rule::_create_archive_rule_output::CreateArchiveRuleOutputBuilder;
pub use crate::operation::create_archive_rule::_create_archive_rule_input::CreateArchiveRuleInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateArchiveRuleFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_archive_rule::builders::CreateArchiveRuleInputBuilder,
}
impl CreateArchiveRuleFluentBuilder {
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::create_archive_rule::CreateArchiveRule,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::operation::create_archive_rule::CreateArchiveRuleError,
>,
> {
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::create_archive_rule::CreateArchiveRuleOutput,
aws_smithy_http::result::SdkError<
crate::operation::create_archive_rule::CreateArchiveRuleError,
>,
> {
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 analyzer_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.analyzer_name(input.into());
self
}
pub fn set_analyzer_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_analyzer_name(input);
self
}
pub fn rule_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.rule_name(input.into());
self
}
pub fn set_rule_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_rule_name(input);
self
}
pub fn filter(mut self, k: impl Into<std::string::String>, v: crate::types::Criterion) -> Self {
self.inner = self.inner.filter(k.into(), v);
self
}
pub fn set_filter(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, crate::types::Criterion>,
>,
) -> Self {
self.inner = self.inner.set_filter(input);
self
}
pub fn client_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.client_token(input.into());
self
}
pub fn set_client_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_client_token(input);
self
}
}