#[non_exhaustive]
pub struct NatGatewayBuilder { /* private fields */ }
Expand description

A builder for NatGateway.

Implementations§

source§

impl NatGatewayBuilder

source

pub fn create_time(self, input: DateTime) -> Self

The date and time the NAT gateway was created.

source

pub fn set_create_time(self, input: Option<DateTime>) -> Self

The date and time the NAT gateway was created.

source

pub fn get_create_time(&self) -> &Option<DateTime>

The date and time the NAT gateway was created.

source

pub fn delete_time(self, input: DateTime) -> Self

The date and time the NAT gateway was deleted, if applicable.

source

pub fn set_delete_time(self, input: Option<DateTime>) -> Self

The date and time the NAT gateway was deleted, if applicable.

source

pub fn get_delete_time(&self) -> &Option<DateTime>

The date and time the NAT gateway was deleted, if applicable.

source

pub fn failure_code(self, input: impl Into<String>) -> Self

If the NAT gateway could not be created, specifies the error code for the failure. (InsufficientFreeAddressesInSubnet | Gateway.NotAttached | InvalidAllocationID.NotFound | Resource.AlreadyAssociated | InternalError | InvalidSubnetID.NotFound)

source

pub fn set_failure_code(self, input: Option<String>) -> Self

If the NAT gateway could not be created, specifies the error code for the failure. (InsufficientFreeAddressesInSubnet | Gateway.NotAttached | InvalidAllocationID.NotFound | Resource.AlreadyAssociated | InternalError | InvalidSubnetID.NotFound)

source

pub fn get_failure_code(&self) -> &Option<String>

If the NAT gateway could not be created, specifies the error code for the failure. (InsufficientFreeAddressesInSubnet | Gateway.NotAttached | InvalidAllocationID.NotFound | Resource.AlreadyAssociated | InternalError | InvalidSubnetID.NotFound)

source

pub fn failure_message(self, input: impl Into<String>) -> Self

If the NAT gateway could not be created, specifies the error message for the failure, that corresponds to the error code.

  • For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free addresses to create this NAT gateway"

  • For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway attached"

  • For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx could not be associated with this NAT gateway"

  • For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx is already associated"

  • For InternalError: "Network interface eni-xxxxxxxx, created and used internally by this NAT gateway is in an invalid state. Please try again."

  • For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx does not exist or could not be found."

source

pub fn set_failure_message(self, input: Option<String>) -> Self

If the NAT gateway could not be created, specifies the error message for the failure, that corresponds to the error code.

  • For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free addresses to create this NAT gateway"

  • For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway attached"

  • For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx could not be associated with this NAT gateway"

  • For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx is already associated"

  • For InternalError: "Network interface eni-xxxxxxxx, created and used internally by this NAT gateway is in an invalid state. Please try again."

  • For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx does not exist or could not be found."

source

pub fn get_failure_message(&self) -> &Option<String>

If the NAT gateway could not be created, specifies the error message for the failure, that corresponds to the error code.

  • For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free addresses to create this NAT gateway"

  • For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway attached"

  • For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx could not be associated with this NAT gateway"

  • For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx is already associated"

  • For InternalError: "Network interface eni-xxxxxxxx, created and used internally by this NAT gateway is in an invalid state. Please try again."

  • For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx does not exist or could not be found."

source

pub fn nat_gateway_addresses(self, input: NatGatewayAddress) -> Self

Appends an item to nat_gateway_addresses.

To override the contents of this collection use set_nat_gateway_addresses.

Information about the IP addresses and network interface associated with the NAT gateway.

source

pub fn set_nat_gateway_addresses( self, input: Option<Vec<NatGatewayAddress>> ) -> Self

Information about the IP addresses and network interface associated with the NAT gateway.

source

pub fn get_nat_gateway_addresses(&self) -> &Option<Vec<NatGatewayAddress>>

Information about the IP addresses and network interface associated with the NAT gateway.

source

pub fn nat_gateway_id(self, input: impl Into<String>) -> Self

The ID of the NAT gateway.

source

pub fn set_nat_gateway_id(self, input: Option<String>) -> Self

The ID of the NAT gateway.

source

pub fn get_nat_gateway_id(&self) -> &Option<String>

The ID of the NAT gateway.

source

pub fn provisioned_bandwidth(self, input: ProvisionedBandwidth) -> Self

Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.

source

pub fn set_provisioned_bandwidth( self, input: Option<ProvisionedBandwidth> ) -> Self

Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.

source

pub fn get_provisioned_bandwidth(&self) -> &Option<ProvisionedBandwidth>

Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.

source

pub fn state(self, input: NatGatewayState) -> Self

The state of the NAT gateway.

  • pending: The NAT gateway is being created and is not ready to process traffic.

  • failed: The NAT gateway could not be created. Check the failureCode and failureMessage fields for the reason.

  • available: The NAT gateway is able to process traffic. This status remains until you delete the NAT gateway, and does not indicate the health of the NAT gateway.

  • deleting: The NAT gateway is in the process of being terminated and may still be processing traffic.

  • deleted: The NAT gateway has been terminated and is no longer processing traffic.

source

pub fn set_state(self, input: Option<NatGatewayState>) -> Self

The state of the NAT gateway.

  • pending: The NAT gateway is being created and is not ready to process traffic.

  • failed: The NAT gateway could not be created. Check the failureCode and failureMessage fields for the reason.

  • available: The NAT gateway is able to process traffic. This status remains until you delete the NAT gateway, and does not indicate the health of the NAT gateway.

  • deleting: The NAT gateway is in the process of being terminated and may still be processing traffic.

  • deleted: The NAT gateway has been terminated and is no longer processing traffic.

source

pub fn get_state(&self) -> &Option<NatGatewayState>

The state of the NAT gateway.

  • pending: The NAT gateway is being created and is not ready to process traffic.

  • failed: The NAT gateway could not be created. Check the failureCode and failureMessage fields for the reason.

  • available: The NAT gateway is able to process traffic. This status remains until you delete the NAT gateway, and does not indicate the health of the NAT gateway.

  • deleting: The NAT gateway is in the process of being terminated and may still be processing traffic.

  • deleted: The NAT gateway has been terminated and is no longer processing traffic.

source

pub fn subnet_id(self, input: impl Into<String>) -> Self

The ID of the subnet in which the NAT gateway is located.

source

pub fn set_subnet_id(self, input: Option<String>) -> Self

The ID of the subnet in which the NAT gateway is located.

source

pub fn get_subnet_id(&self) -> &Option<String>

The ID of the subnet in which the NAT gateway is located.

source

pub fn vpc_id(self, input: impl Into<String>) -> Self

The ID of the VPC in which the NAT gateway is located.

source

pub fn set_vpc_id(self, input: Option<String>) -> Self

The ID of the VPC in which the NAT gateway is located.

source

pub fn get_vpc_id(&self) -> &Option<String>

The ID of the VPC in which the NAT gateway is located.

source

pub fn tags(self, input: Tag) -> Self

Appends an item to tags.

To override the contents of this collection use set_tags.

The tags for the NAT gateway.

source

pub fn set_tags(self, input: Option<Vec<Tag>>) -> Self

The tags for the NAT gateway.

source

pub fn get_tags(&self) -> &Option<Vec<Tag>>

The tags for the NAT gateway.

source

pub fn connectivity_type(self, input: ConnectivityType) -> Self

Indicates whether the NAT gateway supports public or private connectivity.

source

pub fn set_connectivity_type(self, input: Option<ConnectivityType>) -> Self

Indicates whether the NAT gateway supports public or private connectivity.

source

pub fn get_connectivity_type(&self) -> &Option<ConnectivityType>

Indicates whether the NAT gateway supports public or private connectivity.

source

pub fn build(self) -> NatGateway

Consumes the builder and constructs a NatGateway.

Trait Implementations§

source§

impl Clone for NatGatewayBuilder

source§

fn clone(&self) -> NatGatewayBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for NatGatewayBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for NatGatewayBuilder

source§

fn default() -> NatGatewayBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq<NatGatewayBuilder> for NatGatewayBuilder

source§

fn eq(&self, other: &NatGatewayBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for NatGatewayBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more