Struct aws_sdk_ec2::types::builders::EbsInstanceBlockDeviceBuilder
source · #[non_exhaustive]pub struct EbsInstanceBlockDeviceBuilder { /* private fields */ }
Expand description
A builder for EbsInstanceBlockDevice
.
Implementations§
source§impl EbsInstanceBlockDeviceBuilder
impl EbsInstanceBlockDeviceBuilder
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 delete_on_termination(self, input: bool) -> Self
pub fn delete_on_termination(self, input: bool) -> Self
Indicates whether the 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 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 volume is deleted on instance termination.
sourcepub fn status(self, input: AttachmentStatus) -> Self
pub fn status(self, input: AttachmentStatus) -> Self
The attachment state.
sourcepub fn set_status(self, input: Option<AttachmentStatus>) -> Self
pub fn set_status(self, input: Option<AttachmentStatus>) -> Self
The attachment state.
sourcepub fn get_status(&self) -> &Option<AttachmentStatus>
pub fn get_status(&self) -> &Option<AttachmentStatus>
The attachment state.
sourcepub fn set_volume_id(self, input: Option<String>) -> Self
pub fn set_volume_id(self, input: Option<String>) -> Self
The ID of the EBS volume.
sourcepub fn get_volume_id(&self) -> &Option<String>
pub fn get_volume_id(&self) -> &Option<String>
The ID of the EBS volume.
sourcepub fn build(self) -> EbsInstanceBlockDevice
pub fn build(self) -> EbsInstanceBlockDevice
Consumes the builder and constructs a EbsInstanceBlockDevice
.
Trait Implementations§
source§impl Clone for EbsInstanceBlockDeviceBuilder
impl Clone for EbsInstanceBlockDeviceBuilder
source§fn clone(&self) -> EbsInstanceBlockDeviceBuilder
fn clone(&self) -> EbsInstanceBlockDeviceBuilder
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 Default for EbsInstanceBlockDeviceBuilder
impl Default for EbsInstanceBlockDeviceBuilder
source§fn default() -> EbsInstanceBlockDeviceBuilder
fn default() -> EbsInstanceBlockDeviceBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<EbsInstanceBlockDeviceBuilder> for EbsInstanceBlockDeviceBuilder
impl PartialEq<EbsInstanceBlockDeviceBuilder> for EbsInstanceBlockDeviceBuilder
source§fn eq(&self, other: &EbsInstanceBlockDeviceBuilder) -> bool
fn eq(&self, other: &EbsInstanceBlockDeviceBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EbsInstanceBlockDeviceBuilder
Auto Trait Implementations§
impl RefUnwindSafe for EbsInstanceBlockDeviceBuilder
impl Send for EbsInstanceBlockDeviceBuilder
impl Sync for EbsInstanceBlockDeviceBuilder
impl Unpin for EbsInstanceBlockDeviceBuilder
impl UnwindSafe for EbsInstanceBlockDeviceBuilder
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