Struct aws_sdk_ec2::types::builders::NatGatewayAddressBuilder
source · #[non_exhaustive]pub struct NatGatewayAddressBuilder { /* private fields */ }
Expand description
A builder for NatGatewayAddress
.
Implementations§
source§impl NatGatewayAddressBuilder
impl NatGatewayAddressBuilder
sourcepub fn allocation_id(self, input: impl Into<String>) -> Self
pub fn allocation_id(self, input: impl Into<String>) -> Self
[Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with the NAT gateway.
sourcepub fn set_allocation_id(self, input: Option<String>) -> Self
pub fn set_allocation_id(self, input: Option<String>) -> Self
[Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with the NAT gateway.
sourcepub fn get_allocation_id(&self) -> &Option<String>
pub fn get_allocation_id(&self) -> &Option<String>
[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, input: impl Into<String>) -> Self
pub fn network_interface_id(self, input: impl Into<String>) -> Self
The ID of the network interface associated with the NAT gateway.
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 associated with the NAT gateway.
sourcepub fn get_network_interface_id(&self) -> &Option<String>
pub fn get_network_interface_id(&self) -> &Option<String>
The ID of the network interface associated with the NAT gateway.
sourcepub fn private_ip(self, input: impl Into<String>) -> Self
pub fn private_ip(self, input: impl Into<String>) -> Self
The private IP address associated with the NAT gateway.
sourcepub fn set_private_ip(self, input: Option<String>) -> Self
pub fn set_private_ip(self, input: Option<String>) -> Self
The private IP address associated with the NAT gateway.
sourcepub fn get_private_ip(&self) -> &Option<String>
pub fn get_private_ip(&self) -> &Option<String>
The private IP address associated with the NAT gateway.
sourcepub fn public_ip(self, input: impl Into<String>) -> Self
pub fn public_ip(self, input: impl Into<String>) -> Self
[Public NAT gateway only] The Elastic IP address associated with the NAT gateway.
sourcepub fn set_public_ip(self, input: Option<String>) -> Self
pub fn set_public_ip(self, input: Option<String>) -> Self
[Public NAT gateway only] The Elastic IP address associated with the NAT gateway.
sourcepub fn get_public_ip(&self) -> &Option<String>
pub fn get_public_ip(&self) -> &Option<String>
[Public NAT gateway only] The Elastic IP address associated with the NAT gateway.
sourcepub fn association_id(self, input: impl Into<String>) -> Self
pub fn association_id(self, input: impl Into<String>) -> Self
[Public NAT gateway only] The association ID of the Elastic IP address that's associated with the NAT gateway.
sourcepub fn set_association_id(self, input: Option<String>) -> Self
pub fn set_association_id(self, input: Option<String>) -> Self
[Public NAT gateway only] The association ID of the Elastic IP address that's associated with the NAT gateway.
sourcepub fn get_association_id(&self) -> &Option<String>
pub fn get_association_id(&self) -> &Option<String>
[Public NAT gateway only] The association ID of the Elastic IP address that's associated with the NAT gateway.
sourcepub fn is_primary(self, input: bool) -> Self
pub fn is_primary(self, input: bool) -> Self
Defines if the IP address is the primary address.
sourcepub fn set_is_primary(self, input: Option<bool>) -> Self
pub fn set_is_primary(self, input: Option<bool>) -> Self
Defines if the IP address is the primary address.
sourcepub fn get_is_primary(&self) -> &Option<bool>
pub fn get_is_primary(&self) -> &Option<bool>
Defines if the IP address is the primary address.
sourcepub fn failure_message(self, input: impl Into<String>) -> Self
pub fn failure_message(self, input: impl Into<String>) -> Self
The address failure message.
sourcepub fn set_failure_message(self, input: Option<String>) -> Self
pub fn set_failure_message(self, input: Option<String>) -> Self
The address failure message.
sourcepub fn get_failure_message(&self) -> &Option<String>
pub fn get_failure_message(&self) -> &Option<String>
The address failure message.
sourcepub fn status(self, input: NatGatewayAddressStatus) -> Self
pub fn status(self, input: NatGatewayAddressStatus) -> Self
The address status.
sourcepub fn set_status(self, input: Option<NatGatewayAddressStatus>) -> Self
pub fn set_status(self, input: Option<NatGatewayAddressStatus>) -> Self
The address status.
sourcepub fn get_status(&self) -> &Option<NatGatewayAddressStatus>
pub fn get_status(&self) -> &Option<NatGatewayAddressStatus>
The address status.
sourcepub fn build(self) -> NatGatewayAddress
pub fn build(self) -> NatGatewayAddress
Consumes the builder and constructs a NatGatewayAddress
.
Trait Implementations§
source§impl Clone for NatGatewayAddressBuilder
impl Clone for NatGatewayAddressBuilder
source§fn clone(&self) -> NatGatewayAddressBuilder
fn clone(&self) -> NatGatewayAddressBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NatGatewayAddressBuilder
impl Debug for NatGatewayAddressBuilder
source§impl Default for NatGatewayAddressBuilder
impl Default for NatGatewayAddressBuilder
source§fn default() -> NatGatewayAddressBuilder
fn default() -> NatGatewayAddressBuilder
source§impl PartialEq for NatGatewayAddressBuilder
impl PartialEq for NatGatewayAddressBuilder
source§fn eq(&self, other: &NatGatewayAddressBuilder) -> bool
fn eq(&self, other: &NatGatewayAddressBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NatGatewayAddressBuilder
Auto Trait Implementations§
impl Freeze for NatGatewayAddressBuilder
impl RefUnwindSafe for NatGatewayAddressBuilder
impl Send for NatGatewayAddressBuilder
impl Sync for NatGatewayAddressBuilder
impl Unpin for NatGatewayAddressBuilder
impl UnwindSafe for NatGatewayAddressBuilder
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