Struct aws_sdk_ec2::model::launch_template_instance_network_interface_specification::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for LaunchTemplateInstanceNetworkInterfaceSpecification
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn associate_carrier_ip_address(self, input: bool) -> Self
pub fn associate_carrier_ip_address(self, input: bool) -> Self
Indicates whether to associate a Carrier IP address with eth0 for a new network interface.
Use this option when you launch an instance in a Wavelength Zone and want to associate a Carrier IP address with the network interface. For more information about Carrier IP addresses, see Carrier IP addresses in the Wavelength Developer Guide.
sourcepub fn set_associate_carrier_ip_address(self, input: Option<bool>) -> Self
pub fn set_associate_carrier_ip_address(self, input: Option<bool>) -> Self
Indicates whether to associate a Carrier IP address with eth0 for a new network interface.
Use this option when you launch an instance in a Wavelength Zone and want to associate a Carrier IP address with the network interface. For more information about Carrier IP addresses, see Carrier IP addresses in the Wavelength Developer Guide.
sourcepub fn associate_public_ip_address(self, input: bool) -> Self
pub fn associate_public_ip_address(self, input: bool) -> Self
Indicates whether to associate a public IPv4 address with eth0 for a new network interface.
sourcepub fn set_associate_public_ip_address(self, input: Option<bool>) -> Self
pub fn set_associate_public_ip_address(self, input: Option<bool>) -> Self
Indicates whether to associate a public IPv4 address with eth0 for a new network interface.
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 description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description for the network interface.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description for the network interface.
sourcepub fn device_index(self, input: i32) -> Self
pub fn device_index(self, input: i32) -> Self
The device index for the network interface attachment.
sourcepub fn set_device_index(self, input: Option<i32>) -> Self
pub fn set_device_index(self, input: Option<i32>) -> Self
The device index for the network interface attachment.
sourcepub fn groups(self, input: impl Into<String>) -> Self
pub fn groups(self, input: impl Into<String>) -> Self
Appends an item to groups
.
To override the contents of this collection use set_groups
.
The IDs of one or more security groups.
sourcepub fn set_groups(self, input: Option<Vec<String>>) -> Self
pub fn set_groups(self, input: Option<Vec<String>>) -> Self
The IDs of one or more security groups.
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.
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.
sourcepub fn ipv6_address_count(self, input: i32) -> Self
pub fn ipv6_address_count(self, input: i32) -> Self
The number of IPv6 addresses for the network interface.
sourcepub fn set_ipv6_address_count(self, input: Option<i32>) -> Self
pub fn set_ipv6_address_count(self, input: Option<i32>) -> Self
The number of IPv6 addresses for the network interface.
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
.
The IPv6 addresses for 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
The IPv6 addresses for the network interface.
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 private_ip_address(self, input: impl Into<String>) -> Self
pub fn private_ip_address(self, input: impl Into<String>) -> Self
The primary private IPv4 address of the network interface.
sourcepub fn set_private_ip_address(self, input: Option<String>) -> Self
pub fn set_private_ip_address(self, input: Option<String>) -> Self
The primary private IPv4 address of the network interface.
sourcepub fn private_ip_addresses(self, input: PrivateIpAddressSpecification) -> Self
pub fn private_ip_addresses(self, input: PrivateIpAddressSpecification) -> 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.
sourcepub fn set_private_ip_addresses(
self,
input: Option<Vec<PrivateIpAddressSpecification>>
) -> Self
pub fn set_private_ip_addresses(
self,
input: Option<Vec<PrivateIpAddressSpecification>>
) -> Self
One or more private IPv4 addresses.
sourcepub fn secondary_private_ip_address_count(self, input: i32) -> Self
pub fn secondary_private_ip_address_count(self, input: i32) -> Self
The number of secondary private IPv4 addresses for the network interface.
sourcepub fn set_secondary_private_ip_address_count(self, input: Option<i32>) -> Self
pub fn set_secondary_private_ip_address_count(self, input: Option<i32>) -> Self
The number of secondary private IPv4 addresses for the network interface.
sourcepub fn subnet_id(self, input: impl Into<String>) -> Self
pub fn subnet_id(self, input: impl Into<String>) -> Self
The ID of the subnet for 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 for the network interface.
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 ipv4_prefixes(self, input: Ipv4PrefixSpecificationResponse) -> Self
pub fn ipv4_prefixes(self, input: Ipv4PrefixSpecificationResponse) -> Self
Appends an item to ipv4_prefixes
.
To override the contents of this collection use set_ipv4_prefixes
.
One or more IPv4 prefixes assigned to the network interface.
sourcepub fn set_ipv4_prefixes(
self,
input: Option<Vec<Ipv4PrefixSpecificationResponse>>
) -> Self
pub fn set_ipv4_prefixes(
self,
input: Option<Vec<Ipv4PrefixSpecificationResponse>>
) -> Self
One or more IPv4 prefixes assigned to the network interface.
sourcepub fn ipv4_prefix_count(self, input: i32) -> Self
pub fn ipv4_prefix_count(self, input: i32) -> Self
The number of IPv4 prefixes that Amazon Web Services automatically assigned to the network interface.
sourcepub fn set_ipv4_prefix_count(self, input: Option<i32>) -> Self
pub fn set_ipv4_prefix_count(self, input: Option<i32>) -> Self
The number of IPv4 prefixes that Amazon Web Services automatically assigned to the network interface.
sourcepub fn ipv6_prefixes(self, input: Ipv6PrefixSpecificationResponse) -> Self
pub fn ipv6_prefixes(self, input: Ipv6PrefixSpecificationResponse) -> Self
Appends an item to ipv6_prefixes
.
To override the contents of this collection use set_ipv6_prefixes
.
One or more IPv6 prefixes assigned to the network interface.
sourcepub fn set_ipv6_prefixes(
self,
input: Option<Vec<Ipv6PrefixSpecificationResponse>>
) -> Self
pub fn set_ipv6_prefixes(
self,
input: Option<Vec<Ipv6PrefixSpecificationResponse>>
) -> Self
One or more IPv6 prefixes assigned to the network interface.
sourcepub fn ipv6_prefix_count(self, input: i32) -> Self
pub fn ipv6_prefix_count(self, input: i32) -> Self
The number of IPv6 prefixes that Amazon Web Services automatically assigned to the network interface.
sourcepub fn set_ipv6_prefix_count(self, input: Option<i32>) -> Self
pub fn set_ipv6_prefix_count(self, input: Option<i32>) -> Self
The number of IPv6 prefixes that Amazon Web Services automatically assigned to the network interface.
sourcepub fn build(self) -> LaunchTemplateInstanceNetworkInterfaceSpecification
pub fn build(self) -> LaunchTemplateInstanceNetworkInterfaceSpecification
Consumes the builder and constructs a LaunchTemplateInstanceNetworkInterfaceSpecification
.