#[non_exhaustive]pub struct AwsEc2VolumeAttachmentBuilder { /* private fields */ }
Expand description
A builder for AwsEc2VolumeAttachment
.
Implementations§
source§impl AwsEc2VolumeAttachmentBuilder
impl AwsEc2VolumeAttachmentBuilder
sourcepub fn attach_time(self, input: impl Into<String>) -> Self
pub fn attach_time(self, input: impl Into<String>) -> Self
The datetime when the attachment initiated.
sourcepub fn set_attach_time(self, input: Option<String>) -> Self
pub fn set_attach_time(self, input: Option<String>) -> Self
The datetime when the attachment initiated.
sourcepub fn get_attach_time(&self) -> &Option<String>
pub fn get_attach_time(&self) -> &Option<String>
The datetime when the attachment initiated.
sourcepub fn delete_on_termination(self, input: bool) -> Self
pub fn delete_on_termination(self, input: bool) -> Self
Whether the EBS volume is deleted when the EC2 instance is terminated.
sourcepub fn set_delete_on_termination(self, input: Option<bool>) -> Self
pub fn set_delete_on_termination(self, input: Option<bool>) -> Self
Whether the EBS volume is deleted when the EC2 instance is terminated.
sourcepub fn get_delete_on_termination(&self) -> &Option<bool>
pub fn get_delete_on_termination(&self) -> &Option<bool>
Whether the EBS volume is deleted when the EC2 instance is terminated.
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The identifier of the EC2 instance.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The identifier of the EC2 instance.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The identifier of the EC2 instance.
sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
The attachment state of the volume. Valid values are as follows:
-
attaching
-
attached
-
busy
-
detaching
-
detached
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The attachment state of the volume. Valid values are as follows:
-
attaching
-
attached
-
busy
-
detaching
-
detached
sourcepub fn get_status(&self) -> &Option<String>
pub fn get_status(&self) -> &Option<String>
The attachment state of the volume. Valid values are as follows:
-
attaching
-
attached
-
busy
-
detaching
-
detached
sourcepub fn build(self) -> AwsEc2VolumeAttachment
pub fn build(self) -> AwsEc2VolumeAttachment
Consumes the builder and constructs a AwsEc2VolumeAttachment
.
Trait Implementations§
source§impl Clone for AwsEc2VolumeAttachmentBuilder
impl Clone for AwsEc2VolumeAttachmentBuilder
source§fn clone(&self) -> AwsEc2VolumeAttachmentBuilder
fn clone(&self) -> AwsEc2VolumeAttachmentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AwsEc2VolumeAttachmentBuilder
impl Default for AwsEc2VolumeAttachmentBuilder
source§fn default() -> AwsEc2VolumeAttachmentBuilder
fn default() -> AwsEc2VolumeAttachmentBuilder
source§impl PartialEq for AwsEc2VolumeAttachmentBuilder
impl PartialEq for AwsEc2VolumeAttachmentBuilder
source§fn eq(&self, other: &AwsEc2VolumeAttachmentBuilder) -> bool
fn eq(&self, other: &AwsEc2VolumeAttachmentBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.