Struct aws_sdk_ec2::types::builders::SubnetConfigurationBuilder
source · #[non_exhaustive]pub struct SubnetConfigurationBuilder { /* private fields */ }
Expand description
A builder for SubnetConfiguration
.
Implementations§
source§impl SubnetConfigurationBuilder
impl SubnetConfigurationBuilder
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 get_subnet_id(&self) -> &Option<String>
pub fn get_subnet_id(&self) -> &Option<String>
The ID of the subnet.
sourcepub fn ipv4(self, input: impl Into<String>) -> Self
pub fn ipv4(self, input: impl Into<String>) -> Self
The IPv4 address to assign to the endpoint network interface in the subnet. You must provide an IPv4 address if the VPC endpoint supports IPv4.
If you specify an IPv4 address when modifying a VPC endpoint, we replace the existing endpoint network interface with a new endpoint network interface with this IP address. This process temporarily disconnects the subnet and the VPC endpoint.
sourcepub fn set_ipv4(self, input: Option<String>) -> Self
pub fn set_ipv4(self, input: Option<String>) -> Self
The IPv4 address to assign to the endpoint network interface in the subnet. You must provide an IPv4 address if the VPC endpoint supports IPv4.
If you specify an IPv4 address when modifying a VPC endpoint, we replace the existing endpoint network interface with a new endpoint network interface with this IP address. This process temporarily disconnects the subnet and the VPC endpoint.
sourcepub fn get_ipv4(&self) -> &Option<String>
pub fn get_ipv4(&self) -> &Option<String>
The IPv4 address to assign to the endpoint network interface in the subnet. You must provide an IPv4 address if the VPC endpoint supports IPv4.
If you specify an IPv4 address when modifying a VPC endpoint, we replace the existing endpoint network interface with a new endpoint network interface with this IP address. This process temporarily disconnects the subnet and the VPC endpoint.
sourcepub fn ipv6(self, input: impl Into<String>) -> Self
pub fn ipv6(self, input: impl Into<String>) -> Self
The IPv6 address to assign to the endpoint network interface in the subnet. You must provide an IPv6 address if the VPC endpoint supports IPv6.
If you specify an IPv6 address when modifying a VPC endpoint, we replace the existing endpoint network interface with a new endpoint network interface with this IP address. This process temporarily disconnects the subnet and the VPC endpoint.
sourcepub fn set_ipv6(self, input: Option<String>) -> Self
pub fn set_ipv6(self, input: Option<String>) -> Self
The IPv6 address to assign to the endpoint network interface in the subnet. You must provide an IPv6 address if the VPC endpoint supports IPv6.
If you specify an IPv6 address when modifying a VPC endpoint, we replace the existing endpoint network interface with a new endpoint network interface with this IP address. This process temporarily disconnects the subnet and the VPC endpoint.
sourcepub fn get_ipv6(&self) -> &Option<String>
pub fn get_ipv6(&self) -> &Option<String>
The IPv6 address to assign to the endpoint network interface in the subnet. You must provide an IPv6 address if the VPC endpoint supports IPv6.
If you specify an IPv6 address when modifying a VPC endpoint, we replace the existing endpoint network interface with a new endpoint network interface with this IP address. This process temporarily disconnects the subnet and the VPC endpoint.
sourcepub fn build(self) -> SubnetConfiguration
pub fn build(self) -> SubnetConfiguration
Consumes the builder and constructs a SubnetConfiguration
.
Trait Implementations§
source§impl Clone for SubnetConfigurationBuilder
impl Clone for SubnetConfigurationBuilder
source§fn clone(&self) -> SubnetConfigurationBuilder
fn clone(&self) -> SubnetConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SubnetConfigurationBuilder
impl Debug for SubnetConfigurationBuilder
source§impl Default for SubnetConfigurationBuilder
impl Default for SubnetConfigurationBuilder
source§fn default() -> SubnetConfigurationBuilder
fn default() -> SubnetConfigurationBuilder
source§impl PartialEq for SubnetConfigurationBuilder
impl PartialEq for SubnetConfigurationBuilder
source§fn eq(&self, other: &SubnetConfigurationBuilder) -> bool
fn eq(&self, other: &SubnetConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.