pub use crate::operation::create_network_interface_permission::_create_network_interface_permission_output::CreateNetworkInterfacePermissionOutputBuilder;
pub use crate::operation::create_network_interface_permission::_create_network_interface_permission_input::CreateNetworkInterfacePermissionInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateNetworkInterfacePermissionFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_network_interface_permission::builders::CreateNetworkInterfacePermissionInputBuilder,
}
impl CreateNetworkInterfacePermissionFluentBuilder {
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_network_interface_permission::CreateNetworkInterfacePermission, aws_http::retry::AwsResponseRetryClassifier,>,
aws_smithy_http::result::SdkError<crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError>
>{
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_network_interface_permission::CreateNetworkInterfacePermissionOutput, aws_smithy_http::result::SdkError<crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError>>
{
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 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 aws_account_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.aws_account_id(input.into());
self
}
pub fn set_aws_account_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_aws_account_id(input);
self
}
pub fn aws_service(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.aws_service(input.into());
self
}
pub fn set_aws_service(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_aws_service(input);
self
}
pub fn permission(mut self, input: crate::types::InterfacePermissionType) -> Self {
self.inner = self.inner.permission(input);
self
}
pub fn set_permission(
mut self,
input: std::option::Option<crate::types::InterfacePermissionType>,
) -> Self {
self.inner = self.inner.set_permission(input);
self
}
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
}
}