Struct aws_sdk_ec2::operation::detach_network_interface::builders::DetachNetworkInterfaceInputBuilder
source · #[non_exhaustive]pub struct DetachNetworkInterfaceInputBuilder { /* private fields */ }
Expand description
A builder for DetachNetworkInterfaceInput
.
Implementations§
source§impl DetachNetworkInterfaceInputBuilder
impl DetachNetworkInterfaceInputBuilder
sourcepub fn attachment_id(self, input: impl Into<String>) -> Self
pub fn attachment_id(self, input: impl Into<String>) -> Self
The ID of the attachment.
sourcepub fn set_attachment_id(self, input: Option<String>) -> Self
pub fn set_attachment_id(self, input: Option<String>) -> Self
The ID of the attachment.
sourcepub fn get_attachment_id(&self) -> &Option<String>
pub fn get_attachment_id(&self) -> &Option<String>
The ID of the attachment.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn force(self, input: bool) -> Self
pub fn force(self, input: bool) -> Self
Specifies whether to force a detachment.
-
Use the
Force
parameter only as a last resort to detach a network interface from a failed instance. -
If you use the
Force
parameter to detach a network interface, you might not be able to attach a different network interface to the same index on the instance without first stopping and starting the instance. -
If you force the detachment of a network interface, the instance metadata might not get updated. This means that the attributes associated with the detached network interface might still be visible. The instance metadata will get updated when you stop and start the instance.
sourcepub fn set_force(self, input: Option<bool>) -> Self
pub fn set_force(self, input: Option<bool>) -> Self
Specifies whether to force a detachment.
-
Use the
Force
parameter only as a last resort to detach a network interface from a failed instance. -
If you use the
Force
parameter to detach a network interface, you might not be able to attach a different network interface to the same index on the instance without first stopping and starting the instance. -
If you force the detachment of a network interface, the instance metadata might not get updated. This means that the attributes associated with the detached network interface might still be visible. The instance metadata will get updated when you stop and start the instance.
sourcepub fn get_force(&self) -> &Option<bool>
pub fn get_force(&self) -> &Option<bool>
Specifies whether to force a detachment.
-
Use the
Force
parameter only as a last resort to detach a network interface from a failed instance. -
If you use the
Force
parameter to detach a network interface, you might not be able to attach a different network interface to the same index on the instance without first stopping and starting the instance. -
If you force the detachment of a network interface, the instance metadata might not get updated. This means that the attributes associated with the detached network interface might still be visible. The instance metadata will get updated when you stop and start the instance.
sourcepub fn build(self) -> Result<DetachNetworkInterfaceInput, BuildError>
pub fn build(self) -> Result<DetachNetworkInterfaceInput, BuildError>
Consumes the builder and constructs a DetachNetworkInterfaceInput
.
source§impl DetachNetworkInterfaceInputBuilder
impl DetachNetworkInterfaceInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DetachNetworkInterfaceOutput, SdkError<DetachNetworkInterfaceError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DetachNetworkInterfaceOutput, SdkError<DetachNetworkInterfaceError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DetachNetworkInterfaceInputBuilder
impl Clone for DetachNetworkInterfaceInputBuilder
source§fn clone(&self) -> DetachNetworkInterfaceInputBuilder
fn clone(&self) -> DetachNetworkInterfaceInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DetachNetworkInterfaceInputBuilder
impl Default for DetachNetworkInterfaceInputBuilder
source§fn default() -> DetachNetworkInterfaceInputBuilder
fn default() -> DetachNetworkInterfaceInputBuilder
source§impl PartialEq<DetachNetworkInterfaceInputBuilder> for DetachNetworkInterfaceInputBuilder
impl PartialEq<DetachNetworkInterfaceInputBuilder> for DetachNetworkInterfaceInputBuilder
source§fn eq(&self, other: &DetachNetworkInterfaceInputBuilder) -> bool
fn eq(&self, other: &DetachNetworkInterfaceInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.