#[non_exhaustive]pub struct DetachVolumeInputBuilder { /* private fields */ }
Expand description
A builder for DetachVolumeInput
.
Implementations§
source§impl DetachVolumeInputBuilder
impl DetachVolumeInputBuilder
sourcepub fn set_device(self, input: Option<String>) -> Self
pub fn set_device(self, input: Option<String>) -> Self
The device name.
sourcepub fn get_device(&self) -> &Option<String>
pub fn get_device(&self) -> &Option<String>
The device name.
sourcepub fn force(self, input: bool) -> Self
pub fn force(self, input: bool) -> Self
Forces detachment if the previous detachment attempt did not occur cleanly (for example, logging into an instance, unmounting the volume, and detaching normally). This option can lead to data loss or a corrupted file system. Use this option only as a last resort to detach a volume from a failed instance. The instance won't have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures.
sourcepub fn set_force(self, input: Option<bool>) -> Self
pub fn set_force(self, input: Option<bool>) -> Self
Forces detachment if the previous detachment attempt did not occur cleanly (for example, logging into an instance, unmounting the volume, and detaching normally). This option can lead to data loss or a corrupted file system. Use this option only as a last resort to detach a volume from a failed instance. The instance won't have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures.
sourcepub fn get_force(&self) -> &Option<bool>
pub fn get_force(&self) -> &Option<bool>
Forces detachment if the previous detachment attempt did not occur cleanly (for example, logging into an instance, unmounting the volume, and detaching normally). This option can lead to data loss or a corrupted file system. Use this option only as a last resort to detach a volume from a failed instance. The instance won't have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures.
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The ID of the instance. If you are detaching a Multi-Attach enabled volume, you must specify an instance ID.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The ID of the instance. If you are detaching a Multi-Attach enabled volume, you must specify an instance ID.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The ID of the instance. If you are detaching a Multi-Attach enabled volume, you must specify an instance ID.
sourcepub fn volume_id(self, input: impl Into<String>) -> Self
pub fn volume_id(self, input: impl Into<String>) -> Self
The ID of the volume.
This field is required.sourcepub fn set_volume_id(self, input: Option<String>) -> Self
pub fn set_volume_id(self, input: Option<String>) -> Self
The ID of the volume.
sourcepub fn get_volume_id(&self) -> &Option<String>
pub fn get_volume_id(&self) -> &Option<String>
The ID of the volume.
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 build(self) -> Result<DetachVolumeInput, BuildError>
pub fn build(self) -> Result<DetachVolumeInput, BuildError>
Consumes the builder and constructs a DetachVolumeInput
.
source§impl DetachVolumeInputBuilder
impl DetachVolumeInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DetachVolumeOutput, SdkError<DetachVolumeError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DetachVolumeOutput, SdkError<DetachVolumeError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DetachVolumeInputBuilder
impl Clone for DetachVolumeInputBuilder
source§fn clone(&self) -> DetachVolumeInputBuilder
fn clone(&self) -> DetachVolumeInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DetachVolumeInputBuilder
impl Debug for DetachVolumeInputBuilder
source§impl Default for DetachVolumeInputBuilder
impl Default for DetachVolumeInputBuilder
source§fn default() -> DetachVolumeInputBuilder
fn default() -> DetachVolumeInputBuilder
source§impl PartialEq for DetachVolumeInputBuilder
impl PartialEq for DetachVolumeInputBuilder
source§fn eq(&self, other: &DetachVolumeInputBuilder) -> bool
fn eq(&self, other: &DetachVolumeInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.