Struct aws_sdk_ec2::types::builders::VolumeAttachmentBuilder
source · #[non_exhaustive]pub struct VolumeAttachmentBuilder { /* private fields */ }
Expand description
A builder for VolumeAttachment
.
Implementations§
source§impl VolumeAttachmentBuilder
impl VolumeAttachmentBuilder
sourcepub fn attach_time(self, input: DateTime) -> Self
pub fn attach_time(self, input: DateTime) -> Self
The time stamp when the attachment initiated.
sourcepub fn set_attach_time(self, input: Option<DateTime>) -> Self
pub fn set_attach_time(self, input: Option<DateTime>) -> Self
The time stamp when the attachment initiated.
sourcepub fn get_attach_time(&self) -> &Option<DateTime>
pub fn get_attach_time(&self) -> &Option<DateTime>
The time stamp when the attachment initiated.
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 instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The ID of the instance.
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.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The ID of the instance.
sourcepub fn state(self, input: VolumeAttachmentState) -> Self
pub fn state(self, input: VolumeAttachmentState) -> Self
The attachment state of the volume.
sourcepub fn set_state(self, input: Option<VolumeAttachmentState>) -> Self
pub fn set_state(self, input: Option<VolumeAttachmentState>) -> Self
The attachment state of the volume.
sourcepub fn get_state(&self) -> &Option<VolumeAttachmentState>
pub fn get_state(&self) -> &Option<VolumeAttachmentState>
The attachment state of the volume.
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 delete_on_termination(self, input: bool) -> Self
pub fn delete_on_termination(self, input: bool) -> Self
Indicates whether the EBS volume is deleted on instance termination.
sourcepub fn set_delete_on_termination(self, input: Option<bool>) -> Self
pub fn set_delete_on_termination(self, input: Option<bool>) -> Self
Indicates whether the EBS volume is deleted on instance termination.
sourcepub fn get_delete_on_termination(&self) -> &Option<bool>
pub fn get_delete_on_termination(&self) -> &Option<bool>
Indicates whether the EBS volume is deleted on instance termination.
sourcepub fn build(self) -> VolumeAttachment
pub fn build(self) -> VolumeAttachment
Consumes the builder and constructs a VolumeAttachment
.
Trait Implementations§
source§impl Clone for VolumeAttachmentBuilder
impl Clone for VolumeAttachmentBuilder
source§fn clone(&self) -> VolumeAttachmentBuilder
fn clone(&self) -> VolumeAttachmentBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VolumeAttachmentBuilder
impl Debug for VolumeAttachmentBuilder
source§impl Default for VolumeAttachmentBuilder
impl Default for VolumeAttachmentBuilder
source§fn default() -> VolumeAttachmentBuilder
fn default() -> VolumeAttachmentBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<VolumeAttachmentBuilder> for VolumeAttachmentBuilder
impl PartialEq<VolumeAttachmentBuilder> for VolumeAttachmentBuilder
source§fn eq(&self, other: &VolumeAttachmentBuilder) -> bool
fn eq(&self, other: &VolumeAttachmentBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VolumeAttachmentBuilder
Auto Trait Implementations§
impl RefUnwindSafe for VolumeAttachmentBuilder
impl Send for VolumeAttachmentBuilder
impl Sync for VolumeAttachmentBuilder
impl Unpin for VolumeAttachmentBuilder
impl UnwindSafe for VolumeAttachmentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more