Struct aws_sdk_ec2::types::NatGatewayAddress
source · #[non_exhaustive]pub struct NatGatewayAddress {
pub allocation_id: Option<String>,
pub network_interface_id: Option<String>,
pub private_ip: Option<String>,
pub public_ip: Option<String>,
pub association_id: Option<String>,
pub is_primary: Option<bool>,
pub failure_message: Option<String>,
pub status: Option<NatGatewayAddressStatus>,
}
Expand description
Describes the IP addresses and network interface associated with a NAT gateway.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.allocation_id: Option<String>
[Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with the NAT gateway.
network_interface_id: Option<String>
The ID of the network interface associated with the NAT gateway.
private_ip: Option<String>
The private IP address associated with the NAT gateway.
public_ip: Option<String>
[Public NAT gateway only] The Elastic IP address associated with the NAT gateway.
association_id: Option<String>
[Public NAT gateway only] The association ID of the Elastic IP address that's associated with the NAT gateway.
is_primary: Option<bool>
Defines if the IP address is the primary address.
failure_message: Option<String>
The address failure message.
status: Option<NatGatewayAddressStatus>
The address status.
Implementations§
source§impl NatGatewayAddress
impl NatGatewayAddress
sourcepub fn allocation_id(&self) -> Option<&str>
pub fn allocation_id(&self) -> Option<&str>
[Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with the NAT gateway.
sourcepub fn network_interface_id(&self) -> Option<&str>
pub fn network_interface_id(&self) -> Option<&str>
The ID of the network interface associated with the NAT gateway.
sourcepub fn private_ip(&self) -> Option<&str>
pub fn private_ip(&self) -> Option<&str>
The private IP address associated with the NAT gateway.
sourcepub fn public_ip(&self) -> Option<&str>
pub fn public_ip(&self) -> Option<&str>
[Public NAT gateway only] The Elastic IP address associated with the NAT gateway.
sourcepub fn association_id(&self) -> Option<&str>
pub fn association_id(&self) -> Option<&str>
[Public NAT gateway only] The association ID of the Elastic IP address that's associated with the NAT gateway.
sourcepub fn is_primary(&self) -> Option<bool>
pub fn is_primary(&self) -> Option<bool>
Defines if the IP address is the primary address.
sourcepub fn failure_message(&self) -> Option<&str>
pub fn failure_message(&self) -> Option<&str>
The address failure message.
sourcepub fn status(&self) -> Option<&NatGatewayAddressStatus>
pub fn status(&self) -> Option<&NatGatewayAddressStatus>
The address status.
source§impl NatGatewayAddress
impl NatGatewayAddress
sourcepub fn builder() -> NatGatewayAddressBuilder
pub fn builder() -> NatGatewayAddressBuilder
Creates a new builder-style object to manufacture NatGatewayAddress
.
Trait Implementations§
source§impl Clone for NatGatewayAddress
impl Clone for NatGatewayAddress
source§fn clone(&self) -> NatGatewayAddress
fn clone(&self) -> NatGatewayAddress
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NatGatewayAddress
impl Debug for NatGatewayAddress
source§impl PartialEq for NatGatewayAddress
impl PartialEq for NatGatewayAddress
source§fn eq(&self, other: &NatGatewayAddress) -> bool
fn eq(&self, other: &NatGatewayAddress) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NatGatewayAddress
Auto Trait Implementations§
impl Freeze for NatGatewayAddress
impl RefUnwindSafe for NatGatewayAddress
impl Send for NatGatewayAddress
impl Sync for NatGatewayAddress
impl Unpin for NatGatewayAddress
impl UnwindSafe for NatGatewayAddress
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more