Struct aws_sdk_ec2::model::instance_network_interface::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for InstanceNetworkInterface
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn association(self, input: InstanceNetworkInterfaceAssociation) -> Self
pub fn association(self, input: InstanceNetworkInterfaceAssociation) -> Self
The association information for an Elastic IPv4 associated with the network interface.
sourcepub fn set_association(
self,
input: Option<InstanceNetworkInterfaceAssociation>
) -> Self
pub fn set_association(
self,
input: Option<InstanceNetworkInterfaceAssociation>
) -> Self
The association information for an Elastic IPv4 associated with the network interface.
sourcepub fn attachment(self, input: InstanceNetworkInterfaceAttachment) -> Self
pub fn attachment(self, input: InstanceNetworkInterfaceAttachment) -> Self
The network interface attachment.
sourcepub fn set_attachment(
self,
input: Option<InstanceNetworkInterfaceAttachment>
) -> Self
pub fn set_attachment(
self,
input: Option<InstanceNetworkInterfaceAttachment>
) -> Self
The network interface attachment.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description.
sourcepub fn groups(self, input: GroupIdentifier) -> Self
pub fn groups(self, input: GroupIdentifier) -> Self
Appends an item to groups
.
To override the contents of this collection use set_groups
.
One or more security groups.
sourcepub fn set_groups(self, input: Option<Vec<GroupIdentifier>>) -> Self
pub fn set_groups(self, input: Option<Vec<GroupIdentifier>>) -> Self
One or more security groups.
sourcepub fn ipv6_addresses(self, input: InstanceIpv6Address) -> Self
pub fn ipv6_addresses(self, input: InstanceIpv6Address) -> Self
Appends an item to ipv6_addresses
.
To override the contents of this collection use set_ipv6_addresses
.
One or more IPv6 addresses associated with the network interface.
sourcepub fn set_ipv6_addresses(self, input: Option<Vec<InstanceIpv6Address>>) -> Self
pub fn set_ipv6_addresses(self, input: Option<Vec<InstanceIpv6Address>>) -> Self
One or more IPv6 addresses associated with the network interface.
sourcepub fn mac_address(self, input: impl Into<String>) -> Self
pub fn mac_address(self, input: impl Into<String>) -> Self
The MAC address.
sourcepub fn set_mac_address(self, input: Option<String>) -> Self
pub fn set_mac_address(self, input: Option<String>) -> Self
The MAC address.
sourcepub fn network_interface_id(self, input: impl Into<String>) -> Self
pub fn network_interface_id(self, input: impl Into<String>) -> Self
The ID of the network interface.
sourcepub fn set_network_interface_id(self, input: Option<String>) -> Self
pub fn set_network_interface_id(self, input: Option<String>) -> Self
The ID of the network interface.
sourcepub fn owner_id(self, input: impl Into<String>) -> Self
pub fn owner_id(self, input: impl Into<String>) -> Self
The ID of the Amazon Web Services account that created the network interface.
sourcepub fn set_owner_id(self, input: Option<String>) -> Self
pub fn set_owner_id(self, input: Option<String>) -> Self
The ID of the Amazon Web Services account that created the network interface.
sourcepub fn private_dns_name(self, input: impl Into<String>) -> Self
pub fn private_dns_name(self, input: impl Into<String>) -> Self
The private DNS name.
sourcepub fn set_private_dns_name(self, input: Option<String>) -> Self
pub fn set_private_dns_name(self, input: Option<String>) -> Self
The private DNS name.
sourcepub fn private_ip_address(self, input: impl Into<String>) -> Self
pub fn private_ip_address(self, input: impl Into<String>) -> Self
The IPv4 address of the network interface within the subnet.
sourcepub fn set_private_ip_address(self, input: Option<String>) -> Self
pub fn set_private_ip_address(self, input: Option<String>) -> Self
The IPv4 address of the network interface within the subnet.
sourcepub fn private_ip_addresses(self, input: InstancePrivateIpAddress) -> Self
pub fn private_ip_addresses(self, input: InstancePrivateIpAddress) -> Self
Appends an item to private_ip_addresses
.
To override the contents of this collection use set_private_ip_addresses
.
One or more private IPv4 addresses associated with the network interface.
sourcepub fn set_private_ip_addresses(
self,
input: Option<Vec<InstancePrivateIpAddress>>
) -> Self
pub fn set_private_ip_addresses(
self,
input: Option<Vec<InstancePrivateIpAddress>>
) -> Self
One or more private IPv4 addresses associated with the network interface.
sourcepub fn source_dest_check(self, input: bool) -> Self
pub fn source_dest_check(self, input: bool) -> Self
Indicates whether source/destination checking is enabled.
sourcepub fn set_source_dest_check(self, input: Option<bool>) -> Self
pub fn set_source_dest_check(self, input: Option<bool>) -> Self
Indicates whether source/destination checking is enabled.
sourcepub fn status(self, input: NetworkInterfaceStatus) -> Self
pub fn status(self, input: NetworkInterfaceStatus) -> Self
The status of the network interface.
sourcepub fn set_status(self, input: Option<NetworkInterfaceStatus>) -> Self
pub fn set_status(self, input: Option<NetworkInterfaceStatus>) -> Self
The status of the network interface.
sourcepub fn set_subnet_id(self, input: Option<String>) -> Self
pub fn set_subnet_id(self, input: Option<String>) -> Self
The ID of the subnet.
sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
The ID of the VPC.
sourcepub fn interface_type(self, input: impl Into<String>) -> Self
pub fn interface_type(self, input: impl Into<String>) -> Self
The type of network interface.
Valid values: interface
| efa
| trunk
sourcepub fn set_interface_type(self, input: Option<String>) -> Self
pub fn set_interface_type(self, input: Option<String>) -> Self
The type of network interface.
Valid values: interface
| efa
| trunk
sourcepub fn ipv4_prefixes(self, input: InstanceIpv4Prefix) -> Self
pub fn ipv4_prefixes(self, input: InstanceIpv4Prefix) -> Self
Appends an item to ipv4_prefixes
.
To override the contents of this collection use set_ipv4_prefixes
.
The IPv4 delegated prefixes that are assigned to the network interface.
sourcepub fn set_ipv4_prefixes(self, input: Option<Vec<InstanceIpv4Prefix>>) -> Self
pub fn set_ipv4_prefixes(self, input: Option<Vec<InstanceIpv4Prefix>>) -> Self
The IPv4 delegated prefixes that are assigned to the network interface.
sourcepub fn ipv6_prefixes(self, input: InstanceIpv6Prefix) -> Self
pub fn ipv6_prefixes(self, input: InstanceIpv6Prefix) -> Self
Appends an item to ipv6_prefixes
.
To override the contents of this collection use set_ipv6_prefixes
.
The IPv6 delegated prefixes that are assigned to the network interface.
sourcepub fn set_ipv6_prefixes(self, input: Option<Vec<InstanceIpv6Prefix>>) -> Self
pub fn set_ipv6_prefixes(self, input: Option<Vec<InstanceIpv6Prefix>>) -> Self
The IPv6 delegated prefixes that are assigned to the network interface.
sourcepub fn build(self) -> InstanceNetworkInterface
pub fn build(self) -> InstanceNetworkInterface
Consumes the builder and constructs a InstanceNetworkInterface
.