pub struct Builder { /* private fields */ }
Expand description
A builder for AwsEc2VolumeAttachment
.
Implementations§
source§impl Builder
impl Builder
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 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 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 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 build(self) -> AwsEc2VolumeAttachment
pub fn build(self) -> AwsEc2VolumeAttachment
Consumes the builder and constructs a AwsEc2VolumeAttachment
.