pub use crate::operation::reset_network_interface_attribute::_reset_network_interface_attribute_output::ResetNetworkInterfaceAttributeOutputBuilder;
pub use crate::operation::reset_network_interface_attribute::_reset_network_interface_attribute_input::ResetNetworkInterfaceAttributeInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ResetNetworkInterfaceAttributeFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::reset_network_interface_attribute::builders::ResetNetworkInterfaceAttributeInputBuilder,
}
impl ResetNetworkInterfaceAttributeFluentBuilder {
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::reset_network_interface_attribute::ResetNetworkInterfaceAttribute, aws_http::retry::AwsResponseRetryClassifier,>,
aws_smithy_http::result::SdkError<crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError>
>{
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::reset_network_interface_attribute::ResetNetworkInterfaceAttributeOutput, aws_smithy_http::result::SdkError<crate::operation::reset_network_interface_attribute::ResetNetworkInterfaceAttributeError>>
{
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 network_interface_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.network_interface_id(input.into());
self
}
pub fn set_network_interface_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_network_interface_id(input);
self
}
pub fn source_dest_check(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.source_dest_check(input.into());
self
}
pub fn set_source_dest_check(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_source_dest_check(input);
self
}
}