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 associated_resource(self, input: impl Into<String>) -> Self
pub fn associated_resource(self, input: impl Into<String>) -> Self
The ARN of the Amazon ECS or Fargate task to which the volume is attached.
sourcepub fn set_associated_resource(self, input: Option<String>) -> Self
pub fn set_associated_resource(self, input: Option<String>) -> Self
The ARN of the Amazon ECS or Fargate task to which the volume is attached.
sourcepub fn get_associated_resource(&self) -> &Option<String>
pub fn get_associated_resource(&self) -> &Option<String>
The ARN of the Amazon ECS or Fargate task to which the volume is attached.
sourcepub fn volume_owner_id(self, input: impl Into<String>) -> Self
pub fn volume_owner_id(self, input: impl Into<String>) -> Self
The ID of the Amazon Web Services account that owns the volume.
This parameter is returned only for volumes that are attached to Fargate tasks.
sourcepub fn set_volume_owner_id(self, input: Option<String>) -> Self
pub fn set_volume_owner_id(self, input: Option<String>) -> Self
The ID of the Amazon Web Services account that owns the volume.
This parameter is returned only for volumes that are attached to Fargate tasks.
sourcepub fn get_volume_owner_id(&self) -> &Option<String>
pub fn get_volume_owner_id(&self) -> &Option<String>
The ID of the Amazon Web Services account that owns the volume.
This parameter is returned only for volumes that are attached to Fargate tasks.
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for EbsInstanceBlockDeviceBuilder
impl Default for EbsInstanceBlockDeviceBuilder
source§fn default() -> EbsInstanceBlockDeviceBuilder
fn default() -> EbsInstanceBlockDeviceBuilder
source§impl PartialEq for EbsInstanceBlockDeviceBuilder
impl PartialEq for EbsInstanceBlockDeviceBuilder
source§fn eq(&self, other: &EbsInstanceBlockDeviceBuilder) -> bool
fn eq(&self, other: &EbsInstanceBlockDeviceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EbsInstanceBlockDeviceBuilder
Auto Trait Implementations§
impl Freeze for EbsInstanceBlockDeviceBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more