#[non_exhaustive]pub struct DirectConnectGatewayAssociationBuilder { /* private fields */ }Expand description
A builder for DirectConnectGatewayAssociation.
Implementations§
source§impl DirectConnectGatewayAssociationBuilder
impl DirectConnectGatewayAssociationBuilder
sourcepub fn direct_connect_gateway_id(self, input: impl Into<String>) -> Self
pub fn direct_connect_gateway_id(self, input: impl Into<String>) -> Self
The ID of the Direct Connect gateway.
sourcepub fn set_direct_connect_gateway_id(self, input: Option<String>) -> Self
pub fn set_direct_connect_gateway_id(self, input: Option<String>) -> Self
The ID of the Direct Connect gateway.
sourcepub fn get_direct_connect_gateway_id(&self) -> &Option<String>
pub fn get_direct_connect_gateway_id(&self) -> &Option<String>
The ID of the Direct Connect gateway.
sourcepub fn direct_connect_gateway_owner_account(
self,
input: impl Into<String>,
) -> Self
pub fn direct_connect_gateway_owner_account( self, input: impl Into<String>, ) -> Self
The ID of the Amazon Web Services account that owns the associated gateway.
sourcepub fn set_direct_connect_gateway_owner_account(
self,
input: Option<String>,
) -> Self
pub fn set_direct_connect_gateway_owner_account( self, input: Option<String>, ) -> Self
The ID of the Amazon Web Services account that owns the associated gateway.
sourcepub fn get_direct_connect_gateway_owner_account(&self) -> &Option<String>
pub fn get_direct_connect_gateway_owner_account(&self) -> &Option<String>
The ID of the Amazon Web Services account that owns the associated gateway.
sourcepub fn association_state(
self,
input: DirectConnectGatewayAssociationState,
) -> Self
pub fn association_state( self, input: DirectConnectGatewayAssociationState, ) -> Self
The state of the association. The following are the possible values:
-
associating: The initial state after callingCreateDirectConnectGatewayAssociation. -
associated: The Direct Connect gateway and virtual private gateway or transit gateway are successfully associated and ready to pass traffic. -
disassociating: The initial state after callingDeleteDirectConnectGatewayAssociation. -
disassociated: The virtual private gateway or transit gateway is disassociated from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual private gateway or transit gateway is stopped. -
updating: The CIDR blocks for the virtual private gateway or transit gateway are currently being updated. This could be new CIDR blocks added or current CIDR blocks removed.
sourcepub fn set_association_state(
self,
input: Option<DirectConnectGatewayAssociationState>,
) -> Self
pub fn set_association_state( self, input: Option<DirectConnectGatewayAssociationState>, ) -> Self
The state of the association. The following are the possible values:
-
associating: The initial state after callingCreateDirectConnectGatewayAssociation. -
associated: The Direct Connect gateway and virtual private gateway or transit gateway are successfully associated and ready to pass traffic. -
disassociating: The initial state after callingDeleteDirectConnectGatewayAssociation. -
disassociated: The virtual private gateway or transit gateway is disassociated from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual private gateway or transit gateway is stopped. -
updating: The CIDR blocks for the virtual private gateway or transit gateway are currently being updated. This could be new CIDR blocks added or current CIDR blocks removed.
sourcepub fn get_association_state(
&self,
) -> &Option<DirectConnectGatewayAssociationState>
pub fn get_association_state( &self, ) -> &Option<DirectConnectGatewayAssociationState>
The state of the association. The following are the possible values:
-
associating: The initial state after callingCreateDirectConnectGatewayAssociation. -
associated: The Direct Connect gateway and virtual private gateway or transit gateway are successfully associated and ready to pass traffic. -
disassociating: The initial state after callingDeleteDirectConnectGatewayAssociation. -
disassociated: The virtual private gateway or transit gateway is disassociated from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual private gateway or transit gateway is stopped. -
updating: The CIDR blocks for the virtual private gateway or transit gateway are currently being updated. This could be new CIDR blocks added or current CIDR blocks removed.
sourcepub fn state_change_error(self, input: impl Into<String>) -> Self
pub fn state_change_error(self, input: impl Into<String>) -> Self
The error message if the state of an object failed to advance.
sourcepub fn set_state_change_error(self, input: Option<String>) -> Self
pub fn set_state_change_error(self, input: Option<String>) -> Self
The error message if the state of an object failed to advance.
sourcepub fn get_state_change_error(&self) -> &Option<String>
pub fn get_state_change_error(&self) -> &Option<String>
The error message if the state of an object failed to advance.
sourcepub fn associated_gateway(self, input: AssociatedGateway) -> Self
pub fn associated_gateway(self, input: AssociatedGateway) -> Self
Information about the associated gateway.
sourcepub fn set_associated_gateway(self, input: Option<AssociatedGateway>) -> Self
pub fn set_associated_gateway(self, input: Option<AssociatedGateway>) -> Self
Information about the associated gateway.
sourcepub fn get_associated_gateway(&self) -> &Option<AssociatedGateway>
pub fn get_associated_gateway(&self) -> &Option<AssociatedGateway>
Information about the associated gateway.
sourcepub fn association_id(self, input: impl Into<String>) -> Self
pub fn association_id(self, input: impl Into<String>) -> Self
The ID of the Direct Connect gateway association.
sourcepub fn set_association_id(self, input: Option<String>) -> Self
pub fn set_association_id(self, input: Option<String>) -> Self
The ID of the Direct Connect gateway association.
sourcepub fn get_association_id(&self) -> &Option<String>
pub fn get_association_id(&self) -> &Option<String>
The ID of the Direct Connect gateway association.
sourcepub fn allowed_prefixes_to_direct_connect_gateway(
self,
input: RouteFilterPrefix,
) -> Self
pub fn allowed_prefixes_to_direct_connect_gateway( self, input: RouteFilterPrefix, ) -> Self
Appends an item to allowed_prefixes_to_direct_connect_gateway.
To override the contents of this collection use set_allowed_prefixes_to_direct_connect_gateway.
The Amazon VPC prefixes to advertise to the Direct Connect gateway.
sourcepub fn set_allowed_prefixes_to_direct_connect_gateway(
self,
input: Option<Vec<RouteFilterPrefix>>,
) -> Self
pub fn set_allowed_prefixes_to_direct_connect_gateway( self, input: Option<Vec<RouteFilterPrefix>>, ) -> Self
The Amazon VPC prefixes to advertise to the Direct Connect gateway.
sourcepub fn get_allowed_prefixes_to_direct_connect_gateway(
&self,
) -> &Option<Vec<RouteFilterPrefix>>
pub fn get_allowed_prefixes_to_direct_connect_gateway( &self, ) -> &Option<Vec<RouteFilterPrefix>>
The Amazon VPC prefixes to advertise to the Direct Connect gateway.
sourcepub fn virtual_gateway_id(self, input: impl Into<String>) -> Self
pub fn virtual_gateway_id(self, input: impl Into<String>) -> Self
The ID of the virtual private gateway. Applies only to private virtual interfaces.
sourcepub fn set_virtual_gateway_id(self, input: Option<String>) -> Self
pub fn set_virtual_gateway_id(self, input: Option<String>) -> Self
The ID of the virtual private gateway. Applies only to private virtual interfaces.
sourcepub fn get_virtual_gateway_id(&self) -> &Option<String>
pub fn get_virtual_gateway_id(&self) -> &Option<String>
The ID of the virtual private gateway. Applies only to private virtual interfaces.
sourcepub fn virtual_gateway_region(self, input: impl Into<String>) -> Self
pub fn virtual_gateway_region(self, input: impl Into<String>) -> Self
The Amazon Web Services Region where the virtual private gateway is located.
sourcepub fn set_virtual_gateway_region(self, input: Option<String>) -> Self
pub fn set_virtual_gateway_region(self, input: Option<String>) -> Self
The Amazon Web Services Region where the virtual private gateway is located.
sourcepub fn get_virtual_gateway_region(&self) -> &Option<String>
pub fn get_virtual_gateway_region(&self) -> &Option<String>
The Amazon Web Services Region where the virtual private gateway is located.
sourcepub fn virtual_gateway_owner_account(self, input: impl Into<String>) -> Self
pub fn virtual_gateway_owner_account(self, input: impl Into<String>) -> Self
The ID of the Amazon Web Services account that owns the virtual private gateway.
sourcepub fn set_virtual_gateway_owner_account(self, input: Option<String>) -> Self
pub fn set_virtual_gateway_owner_account(self, input: Option<String>) -> Self
The ID of the Amazon Web Services account that owns the virtual private gateway.
sourcepub fn get_virtual_gateway_owner_account(&self) -> &Option<String>
pub fn get_virtual_gateway_owner_account(&self) -> &Option<String>
The ID of the Amazon Web Services account that owns the virtual private gateway.
sourcepub fn build(self) -> DirectConnectGatewayAssociation
pub fn build(self) -> DirectConnectGatewayAssociation
Consumes the builder and constructs a DirectConnectGatewayAssociation.
Trait Implementations§
source§impl Clone for DirectConnectGatewayAssociationBuilder
impl Clone for DirectConnectGatewayAssociationBuilder
source§fn clone(&self) -> DirectConnectGatewayAssociationBuilder
fn clone(&self) -> DirectConnectGatewayAssociationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for DirectConnectGatewayAssociationBuilder
impl Default for DirectConnectGatewayAssociationBuilder
source§fn default() -> DirectConnectGatewayAssociationBuilder
fn default() -> DirectConnectGatewayAssociationBuilder
source§impl PartialEq for DirectConnectGatewayAssociationBuilder
impl PartialEq for DirectConnectGatewayAssociationBuilder
source§fn eq(&self, other: &DirectConnectGatewayAssociationBuilder) -> bool
fn eq(&self, other: &DirectConnectGatewayAssociationBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DirectConnectGatewayAssociationBuilder
Auto Trait Implementations§
impl Freeze for DirectConnectGatewayAssociationBuilder
impl RefUnwindSafe for DirectConnectGatewayAssociationBuilder
impl Send for DirectConnectGatewayAssociationBuilder
impl Sync for DirectConnectGatewayAssociationBuilder
impl Unpin for DirectConnectGatewayAssociationBuilder
impl UnwindSafe for DirectConnectGatewayAssociationBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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