pub struct Builder { /* private fields */ }Expand description
A builder for DirectConnectGatewayAssociation.
Implementations§
source§impl Builder
impl Builder
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 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 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.
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.
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 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 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 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 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 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 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 build(self) -> DirectConnectGatewayAssociation
pub fn build(self) -> DirectConnectGatewayAssociation
Consumes the builder and constructs a DirectConnectGatewayAssociation.