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
.
Trait Implementations
sourceimpl PartialEq<Builder> for Builder
impl PartialEq<Builder> for Builder
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more