Struct aws_sdk_ec2::operation::unassign_private_ip_addresses::builders::UnassignPrivateIpAddressesInputBuilder
source · #[non_exhaustive]pub struct UnassignPrivateIpAddressesInputBuilder { /* private fields */ }
Expand description
A builder for UnassignPrivateIpAddressesInput
.
Implementations§
source§impl UnassignPrivateIpAddressesInputBuilder
impl UnassignPrivateIpAddressesInputBuilder
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.
This field is required.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 private_ip_addresses(self, input: impl Into<String>) -> Self
pub fn private_ip_addresses(self, input: impl Into<String>) -> Self
Appends an item to private_ip_addresses
.
To override the contents of this collection use set_private_ip_addresses
.
The secondary private IP addresses to unassign from the network interface. You can specify this option multiple times to unassign more than one IP address.
sourcepub fn set_private_ip_addresses(self, input: Option<Vec<String>>) -> Self
pub fn set_private_ip_addresses(self, input: Option<Vec<String>>) -> Self
The secondary private IP addresses to unassign from the network interface. You can specify this option multiple times to unassign more than one IP address.
sourcepub fn get_private_ip_addresses(&self) -> &Option<Vec<String>>
pub fn get_private_ip_addresses(&self) -> &Option<Vec<String>>
The secondary private IP addresses to unassign from the network interface. You can specify this option multiple times to unassign more than one IP address.
sourcepub fn ipv4_prefixes(self, input: impl Into<String>) -> Self
pub fn ipv4_prefixes(self, input: impl Into<String>) -> Self
Appends an item to ipv4_prefixes
.
To override the contents of this collection use set_ipv4_prefixes
.
The IPv4 prefixes to unassign from the network interface.
sourcepub fn set_ipv4_prefixes(self, input: Option<Vec<String>>) -> Self
pub fn set_ipv4_prefixes(self, input: Option<Vec<String>>) -> Self
The IPv4 prefixes to unassign from the network interface.
sourcepub fn get_ipv4_prefixes(&self) -> &Option<Vec<String>>
pub fn get_ipv4_prefixes(&self) -> &Option<Vec<String>>
The IPv4 prefixes to unassign from the network interface.
sourcepub fn build(self) -> Result<UnassignPrivateIpAddressesInput, BuildError>
pub fn build(self) -> Result<UnassignPrivateIpAddressesInput, BuildError>
Consumes the builder and constructs a UnassignPrivateIpAddressesInput
.
source§impl UnassignPrivateIpAddressesInputBuilder
impl UnassignPrivateIpAddressesInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UnassignPrivateIpAddressesOutput, SdkError<UnassignPrivateIpAddressesError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UnassignPrivateIpAddressesOutput, SdkError<UnassignPrivateIpAddressesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UnassignPrivateIpAddressesInputBuilder
impl Clone for UnassignPrivateIpAddressesInputBuilder
source§fn clone(&self) -> UnassignPrivateIpAddressesInputBuilder
fn clone(&self) -> UnassignPrivateIpAddressesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UnassignPrivateIpAddressesInputBuilder
impl Default for UnassignPrivateIpAddressesInputBuilder
source§fn default() -> UnassignPrivateIpAddressesInputBuilder
fn default() -> UnassignPrivateIpAddressesInputBuilder
source§impl PartialEq for UnassignPrivateIpAddressesInputBuilder
impl PartialEq for UnassignPrivateIpAddressesInputBuilder
source§fn eq(&self, other: &UnassignPrivateIpAddressesInputBuilder) -> bool
fn eq(&self, other: &UnassignPrivateIpAddressesInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.