Struct aws_sdk_ec2::model::network_interface_attachment::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for NetworkInterfaceAttachment
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn attach_time(self, input: DateTime) -> Self
pub fn attach_time(self, input: DateTime) -> Self
The timestamp indicating 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 timestamp indicating when the attachment initiated.
sourcepub fn attachment_id(self, input: impl Into<String>) -> Self
pub fn attachment_id(self, input: impl Into<String>) -> Self
The ID of the network interface attachment.
sourcepub fn set_attachment_id(self, input: Option<String>) -> Self
pub fn set_attachment_id(self, input: Option<String>) -> Self
The ID of the network interface attachment.
sourcepub fn delete_on_termination(self, input: bool) -> Self
pub fn delete_on_termination(self, input: bool) -> Self
Indicates whether the network interface is deleted when the 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
Indicates whether the network interface is deleted when the instance is terminated.
sourcepub fn device_index(self, input: i32) -> Self
pub fn device_index(self, input: i32) -> Self
The device index of the network interface attachment on the instance.
sourcepub fn set_device_index(self, input: Option<i32>) -> Self
pub fn set_device_index(self, input: Option<i32>) -> Self
The device index of the network interface attachment on the instance.
sourcepub fn network_card_index(self, input: i32) -> Self
pub fn network_card_index(self, input: i32) -> Self
The index of the network card.
sourcepub fn set_network_card_index(self, input: Option<i32>) -> Self
pub fn set_network_card_index(self, input: Option<i32>) -> Self
The index of the network card.
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 instance_owner_id(self, input: impl Into<String>) -> Self
pub fn instance_owner_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID of the owner of the instance.
sourcepub fn set_instance_owner_id(self, input: Option<String>) -> Self
pub fn set_instance_owner_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID of the owner of the instance.
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 ena_srd_specification(self, input: AttachmentEnaSrdSpecification) -> Self
pub fn ena_srd_specification(self, input: AttachmentEnaSrdSpecification) -> Self
Configures ENA Express for the network interface that this action attaches to the instance.
sourcepub fn set_ena_srd_specification(
self,
input: Option<AttachmentEnaSrdSpecification>
) -> Self
pub fn set_ena_srd_specification(
self,
input: Option<AttachmentEnaSrdSpecification>
) -> Self
Configures ENA Express for the network interface that this action attaches to the instance.
sourcepub fn build(self) -> NetworkInterfaceAttachment
pub fn build(self) -> NetworkInterfaceAttachment
Consumes the builder and constructs a NetworkInterfaceAttachment
.