Struct aws_sdk_ec2::model::network_interface::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for NetworkInterface
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn association(self, input: NetworkInterfaceAssociation) -> Self
pub fn association(self, input: NetworkInterfaceAssociation) -> Self
The association information for an Elastic IP address (IPv4) associated with the network interface.
sourcepub fn set_association(self, input: Option<NetworkInterfaceAssociation>) -> Self
pub fn set_association(self, input: Option<NetworkInterfaceAssociation>) -> Self
The association information for an Elastic IP address (IPv4) associated with the network interface.
sourcepub fn attachment(self, input: NetworkInterfaceAttachment) -> Self
pub fn attachment(self, input: NetworkInterfaceAttachment) -> Self
The network interface attachment.
sourcepub fn set_attachment(self, input: Option<NetworkInterfaceAttachment>) -> Self
pub fn set_attachment(self, input: Option<NetworkInterfaceAttachment>) -> Self
The network interface attachment.
sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
The Availability Zone.
sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
pub fn set_availability_zone(self, input: Option<String>) -> Self
The Availability Zone.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A 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
.
Any security groups for the network interface.
sourcepub fn set_groups(self, input: Option<Vec<GroupIdentifier>>) -> Self
pub fn set_groups(self, input: Option<Vec<GroupIdentifier>>) -> Self
Any security groups for the network interface.
sourcepub fn interface_type(self, input: NetworkInterfaceType) -> Self
pub fn interface_type(self, input: NetworkInterfaceType) -> Self
The type of network interface.
sourcepub fn set_interface_type(self, input: Option<NetworkInterfaceType>) -> Self
pub fn set_interface_type(self, input: Option<NetworkInterfaceType>) -> Self
The type of network interface.
sourcepub fn ipv6_addresses(self, input: NetworkInterfaceIpv6Address) -> Self
pub fn ipv6_addresses(self, input: NetworkInterfaceIpv6Address) -> Self
Appends an item to ipv6_addresses
.
To override the contents of this collection use set_ipv6_addresses
.
The IPv6 addresses associated with the network interface.
sourcepub fn set_ipv6_addresses(
self,
input: Option<Vec<NetworkInterfaceIpv6Address>>
) -> Self
pub fn set_ipv6_addresses(
self,
input: Option<Vec<NetworkInterfaceIpv6Address>>
) -> Self
The 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 outpost_arn(self, input: impl Into<String>) -> Self
pub fn outpost_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the Outpost.
sourcepub fn set_outpost_arn(self, input: Option<String>) -> Self
pub fn set_outpost_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the Outpost.
sourcepub fn owner_id(self, input: impl Into<String>) -> Self
pub fn owner_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID of the owner of the network interface.
sourcepub fn set_owner_id(self, input: Option<String>) -> Self
pub fn set_owner_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID of the owner of 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: NetworkInterfacePrivateIpAddress
) -> Self
pub fn private_ip_addresses(
self,
input: NetworkInterfacePrivateIpAddress
) -> Self
Appends an item to private_ip_addresses
.
To override the contents of this collection use set_private_ip_addresses
.
The private IPv4 addresses associated with the network interface.
sourcepub fn set_private_ip_addresses(
self,
input: Option<Vec<NetworkInterfacePrivateIpAddress>>
) -> Self
pub fn set_private_ip_addresses(
self,
input: Option<Vec<NetworkInterfacePrivateIpAddress>>
) -> Self
The private IPv4 addresses associated with the network interface.
sourcepub fn ipv4_prefixes(self, input: Ipv4PrefixSpecification) -> Self
pub fn ipv4_prefixes(self, input: Ipv4PrefixSpecification) -> Self
Appends an item to ipv4_prefixes
.
To override the contents of this collection use set_ipv4_prefixes
.
The IPv4 prefixes that are assigned to the network interface.
sourcepub fn set_ipv4_prefixes(
self,
input: Option<Vec<Ipv4PrefixSpecification>>
) -> Self
pub fn set_ipv4_prefixes(
self,
input: Option<Vec<Ipv4PrefixSpecification>>
) -> Self
The IPv4 prefixes that are assigned to the network interface.
sourcepub fn ipv6_prefixes(self, input: Ipv6PrefixSpecification) -> Self
pub fn ipv6_prefixes(self, input: Ipv6PrefixSpecification) -> Self
Appends an item to ipv6_prefixes
.
To override the contents of this collection use set_ipv6_prefixes
.
The IPv6 prefixes that are assigned to the network interface.
sourcepub fn set_ipv6_prefixes(
self,
input: Option<Vec<Ipv6PrefixSpecification>>
) -> Self
pub fn set_ipv6_prefixes(
self,
input: Option<Vec<Ipv6PrefixSpecification>>
) -> Self
The IPv6 prefixes that are assigned to the network interface.
sourcepub fn requester_id(self, input: impl Into<String>) -> Self
pub fn requester_id(self, input: impl Into<String>) -> Self
The alias or Amazon Web Services account ID of the principal or service that created the network interface.
sourcepub fn set_requester_id(self, input: Option<String>) -> Self
pub fn set_requester_id(self, input: Option<String>) -> Self
The alias or Amazon Web Services account ID of the principal or service that created the network interface.
sourcepub fn requester_managed(self, input: bool) -> Self
pub fn requester_managed(self, input: bool) -> Self
Indicates whether the network interface is being managed by Amazon Web Services.
sourcepub fn set_requester_managed(self, input: Option<bool>) -> Self
pub fn set_requester_managed(self, input: Option<bool>) -> Self
Indicates whether the network interface is being managed by Amazon Web Services.
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 tag_set(self, input: Tag) -> Self
pub fn tag_set(self, input: Tag) -> Self
Appends an item to tag_set
.
To override the contents of this collection use set_tag_set
.
Any tags assigned to the network interface.
sourcepub fn set_tag_set(self, input: Option<Vec<Tag>>) -> Self
pub fn set_tag_set(self, input: Option<Vec<Tag>>) -> Self
Any tags assigned to the network interface.
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 deny_all_igw_traffic(self, input: bool) -> Self
pub fn deny_all_igw_traffic(self, input: bool) -> Self
Indicates whether a network interface with an IPv6 address is unreachable from the public internet. If the value is true
, inbound traffic from the internet is dropped and you cannot assign an elastic IP address to the network interface. The network interface is reachable from peered VPCs and resources connected through a transit gateway, including on-premises networks.
sourcepub fn set_deny_all_igw_traffic(self, input: Option<bool>) -> Self
pub fn set_deny_all_igw_traffic(self, input: Option<bool>) -> Self
Indicates whether a network interface with an IPv6 address is unreachable from the public internet. If the value is true
, inbound traffic from the internet is dropped and you cannot assign an elastic IP address to the network interface. The network interface is reachable from peered VPCs and resources connected through a transit gateway, including on-premises networks.
sourcepub fn ipv6_native(self, input: bool) -> Self
pub fn ipv6_native(self, input: bool) -> Self
Indicates whether this is an IPv6 only network interface.
sourcepub fn set_ipv6_native(self, input: Option<bool>) -> Self
pub fn set_ipv6_native(self, input: Option<bool>) -> Self
Indicates whether this is an IPv6 only network interface.
sourcepub fn ipv6_address(self, input: impl Into<String>) -> Self
pub fn ipv6_address(self, input: impl Into<String>) -> Self
The IPv6 globally unique address associated with the network interface.
sourcepub fn set_ipv6_address(self, input: Option<String>) -> Self
pub fn set_ipv6_address(self, input: Option<String>) -> Self
The IPv6 globally unique address associated with the network interface.
sourcepub fn build(self) -> NetworkInterface
pub fn build(self) -> NetworkInterface
Consumes the builder and constructs a NetworkInterface
.