Struct aws_sdk_ec2::model::volume_attachment::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for VolumeAttachment
.
Implementations§
source§impl Builder
impl Builder
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 set_device(self, input: Option<String>) -> Self
pub fn set_device(self, input: Option<String>) -> Self
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 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 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 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 build(self) -> VolumeAttachment
pub fn build(self) -> VolumeAttachment
Consumes the builder and constructs a VolumeAttachment
.