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<NatGatewayAddressBuilder> for NatGatewayAddressBuilder
impl PartialEq<NatGatewayAddressBuilder> 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 ==
.