pub use crate::operation::delete_network_acl_entry::_delete_network_acl_entry_output::DeleteNetworkAclEntryOutputBuilder;
pub use crate::operation::delete_network_acl_entry::_delete_network_acl_entry_input::DeleteNetworkAclEntryInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteNetworkAclEntryFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::delete_network_acl_entry::builders::DeleteNetworkAclEntryInputBuilder,
}
impl DeleteNetworkAclEntryFluentBuilder {
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::delete_network_acl_entry::DeleteNetworkAclEntry,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError,
>,
> {
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::delete_network_acl_entry::DeleteNetworkAclEntryOutput,
aws_smithy_http::result::SdkError<
crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError,
>,
> {
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 dry_run(mut self, input: bool) -> Self {
self.inner = self.inner.dry_run(input);
self
}
pub fn set_dry_run(mut self, input: std::option::Option<bool>) -> Self {
self.inner = self.inner.set_dry_run(input);
self
}
pub fn egress(mut self, input: bool) -> Self {
self.inner = self.inner.egress(input);
self
}
pub fn set_egress(mut self, input: std::option::Option<bool>) -> Self {
self.inner = self.inner.set_egress(input);
self
}
pub fn network_acl_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.network_acl_id(input.into());
self
}
pub fn set_network_acl_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_network_acl_id(input);
self
}
pub fn rule_number(mut self, input: i32) -> Self {
self.inner = self.inner.rule_number(input);
self
}
pub fn set_rule_number(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_rule_number(input);
self
}
}