Struct aws_sdk_ec2::operation::assign_ipv6_addresses::builders::AssignIpv6AddressesInputBuilder
source · #[non_exhaustive]pub struct AssignIpv6AddressesInputBuilder { /* private fields */ }
Expand description
A builder for AssignIpv6AddressesInput
.
Implementations§
source§impl AssignIpv6AddressesInputBuilder
impl AssignIpv6AddressesInputBuilder
sourcepub fn ipv6_address_count(self, input: i32) -> Self
pub fn ipv6_address_count(self, input: i32) -> Self
The number of additional IPv6 addresses to assign to the network interface. The specified number of IPv6 addresses are assigned in addition to the existing IPv6 addresses that are already assigned to the network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.
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 additional IPv6 addresses to assign to the network interface. The specified number of IPv6 addresses are assigned in addition to the existing IPv6 addresses that are already assigned to the network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.
sourcepub fn get_ipv6_address_count(&self) -> &Option<i32>
pub fn get_ipv6_address_count(&self) -> &Option<i32>
The number of additional IPv6 addresses to assign to the network interface. The specified number of IPv6 addresses are assigned in addition to the existing IPv6 addresses that are already assigned to the network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.
sourcepub fn ipv6_addresses(self, input: impl Into<String>) -> Self
pub fn ipv6_addresses(self, input: impl Into<String>) -> Self
Appends an item to ipv6_addresses
.
To override the contents of this collection use set_ipv6_addresses
.
The IPv6 addresses to be assigned to the network interface. You can't use this option if you're specifying a number of IPv6 addresses.
sourcepub fn set_ipv6_addresses(self, input: Option<Vec<String>>) -> Self
pub fn set_ipv6_addresses(self, input: Option<Vec<String>>) -> Self
The IPv6 addresses to be assigned to the network interface. You can't use this option if you're specifying a number of IPv6 addresses.
sourcepub fn get_ipv6_addresses(&self) -> &Option<Vec<String>>
pub fn get_ipv6_addresses(&self) -> &Option<Vec<String>>
The IPv6 addresses to be assigned to the network interface. You can't use this option if you're specifying a number of IPv6 addresses.
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 assigns to the network interface. You cannot use this option if you use the Ipv6Prefixes
option.
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 assigns to the network interface. You cannot use this option if you use the Ipv6Prefixes
option.
sourcepub fn get_ipv6_prefix_count(&self) -> &Option<i32>
pub fn get_ipv6_prefix_count(&self) -> &Option<i32>
The number of IPv6 prefixes that Amazon Web Services automatically assigns to the network interface. You cannot use this option if you use the Ipv6Prefixes
option.
sourcepub fn ipv6_prefixes(self, input: impl Into<String>) -> Self
pub fn ipv6_prefixes(self, input: impl Into<String>) -> 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. You cannot use this option if you use the Ipv6PrefixCount
option.
sourcepub fn set_ipv6_prefixes(self, input: Option<Vec<String>>) -> Self
pub fn set_ipv6_prefixes(self, input: Option<Vec<String>>) -> Self
One or more IPv6 prefixes assigned to the network interface. You cannot use this option if you use the Ipv6PrefixCount
option.
sourcepub fn get_ipv6_prefixes(&self) -> &Option<Vec<String>>
pub fn get_ipv6_prefixes(&self) -> &Option<Vec<String>>
One or more IPv6 prefixes assigned to the network interface. You cannot use this option if you use the Ipv6PrefixCount
option.
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 get_network_interface_id(&self) -> &Option<String>
pub fn get_network_interface_id(&self) -> &Option<String>
The ID of the network interface.
sourcepub fn build(self) -> Result<AssignIpv6AddressesInput, BuildError>
pub fn build(self) -> Result<AssignIpv6AddressesInput, BuildError>
Consumes the builder and constructs a AssignIpv6AddressesInput
.
source§impl AssignIpv6AddressesInputBuilder
impl AssignIpv6AddressesInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<AssignIpv6AddressesOutput, SdkError<AssignIpv6AddressesError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<AssignIpv6AddressesOutput, SdkError<AssignIpv6AddressesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for AssignIpv6AddressesInputBuilder
impl Clone for AssignIpv6AddressesInputBuilder
source§fn clone(&self) -> AssignIpv6AddressesInputBuilder
fn clone(&self) -> AssignIpv6AddressesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AssignIpv6AddressesInputBuilder
impl Default for AssignIpv6AddressesInputBuilder
source§fn default() -> AssignIpv6AddressesInputBuilder
fn default() -> AssignIpv6AddressesInputBuilder
source§impl PartialEq<AssignIpv6AddressesInputBuilder> for AssignIpv6AddressesInputBuilder
impl PartialEq<AssignIpv6AddressesInputBuilder> for AssignIpv6AddressesInputBuilder
source§fn eq(&self, other: &AssignIpv6AddressesInputBuilder) -> bool
fn eq(&self, other: &AssignIpv6AddressesInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.