pub struct Builder { /* private fields */ }
Expand description
A builder for ScheduledInstancesNetworkInterface
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn associate_public_ip_address(self, input: bool) -> Self
pub fn associate_public_ip_address(self, input: bool) -> Self
Indicates whether to assign a public IPv4 address to instances launched in a VPC. The public IPv4 address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true
.
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 assign a public IPv4 address to instances launched in a VPC. The public IPv4 address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true
.
sourcepub fn delete_on_termination(self, input: bool) -> Self
pub fn delete_on_termination(self, input: bool) -> Self
Indicates whether to delete the interface 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 to delete the interface when the instance is terminated.
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 device_index(self, input: i32) -> Self
pub fn device_index(self, input: i32) -> Self
The index of the device 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 index of the device 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 the 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 the security groups.
sourcepub fn ipv6_address_count(self, input: i32) -> Self
pub fn ipv6_address_count(self, input: i32) -> Self
The number of IPv6 addresses to assign to the network interface. The IPv6 addresses are automatically selected from the subnet range.
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 to assign to the network interface. The IPv6 addresses are automatically selected from the subnet range.
sourcepub fn ipv6_addresses(self, input: ScheduledInstancesIpv6Address) -> Self
pub fn ipv6_addresses(self, input: ScheduledInstancesIpv6Address) -> Self
Appends an item to ipv6_addresses
.
To override the contents of this collection use set_ipv6_addresses
.
The specific IPv6 addresses from the subnet range.
sourcepub fn set_ipv6_addresses(
self,
input: Option<Vec<ScheduledInstancesIpv6Address>>
) -> Self
pub fn set_ipv6_addresses(
self,
input: Option<Vec<ScheduledInstancesIpv6Address>>
) -> Self
The specific IPv6 addresses from the subnet range.
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 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_address_configs(
self,
input: ScheduledInstancesPrivateIpAddressConfig
) -> Self
pub fn private_ip_address_configs(
self,
input: ScheduledInstancesPrivateIpAddressConfig
) -> Self
Appends an item to private_ip_address_configs
.
To override the contents of this collection use set_private_ip_address_configs
.
The private IPv4 addresses.
sourcepub fn set_private_ip_address_configs(
self,
input: Option<Vec<ScheduledInstancesPrivateIpAddressConfig>>
) -> Self
pub fn set_private_ip_address_configs(
self,
input: Option<Vec<ScheduledInstancesPrivateIpAddressConfig>>
) -> Self
The 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.
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.
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 build(self) -> ScheduledInstancesNetworkInterface
pub fn build(self) -> ScheduledInstancesNetworkInterface
Consumes the builder and constructs a ScheduledInstancesNetworkInterface
.