Struct aws_sdk_ec2::operation::assign_ipv6_addresses::builders::AssignIpv6AddressesFluentBuilder
source · pub struct AssignIpv6AddressesFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to AssignIpv6Addresses
.
Assigns one or more IPv6 addresses to the specified network interface. You can specify one or more specific IPv6 addresses, or you can specify the number of IPv6 addresses to be automatically assigned from within the subnet's IPv6 CIDR block range. You can assign as many IPv6 addresses to a network interface as you can assign private IPv4 addresses, and the limit varies per instance type. For information, see IP Addresses Per Network Interface Per Instance Type in the Amazon Elastic Compute Cloud User Guide.
You must specify either the IPv6 addresses or the IPv6 address count in the request.
You can optionally use Prefix Delegation on the network interface. You must specify either the IPV6 Prefix Delegation prefixes, or the IPv6 Prefix Delegation count. For information, see Assigning prefixes to Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide.
Implementations§
source§impl AssignIpv6AddressesFluentBuilder
impl AssignIpv6AddressesFluentBuilder
sourcepub fn as_input(&self) -> &AssignIpv6AddressesInputBuilder
pub fn as_input(&self) -> &AssignIpv6AddressesInputBuilder
Access the AssignIpv6Addresses as a reference.
sourcepub async fn send(
self
) -> Result<AssignIpv6AddressesOutput, SdkError<AssignIpv6AddressesError, HttpResponse>>
pub async fn send( self ) -> Result<AssignIpv6AddressesOutput, SdkError<AssignIpv6AddressesError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<AssignIpv6AddressesOutput, AssignIpv6AddressesError>, SdkError<AssignIpv6AddressesError>>
pub async fn customize( self ) -> Result<CustomizableOperation<AssignIpv6AddressesOutput, AssignIpv6AddressesError>, SdkError<AssignIpv6AddressesError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 Ipv6Addresses
.
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 Ipv6Prefixes
.
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.
Trait Implementations§
source§impl Clone for AssignIpv6AddressesFluentBuilder
impl Clone for AssignIpv6AddressesFluentBuilder
source§fn clone(&self) -> AssignIpv6AddressesFluentBuilder
fn clone(&self) -> AssignIpv6AddressesFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more