#[non_exhaustive]pub struct DirectConnectGatewayAttachmentBuilder { /* private fields */ }Expand description
A builder for DirectConnectGatewayAttachment.
Implementations§
source§impl DirectConnectGatewayAttachmentBuilder
impl DirectConnectGatewayAttachmentBuilder
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 virtual_interface_id(self, input: impl Into<String>) -> Self
pub fn virtual_interface_id(self, input: impl Into<String>) -> Self
The ID of the virtual interface.
sourcepub fn set_virtual_interface_id(self, input: Option<String>) -> Self
pub fn set_virtual_interface_id(self, input: Option<String>) -> Self
The ID of the virtual interface.
sourcepub fn get_virtual_interface_id(&self) -> &Option<String>
pub fn get_virtual_interface_id(&self) -> &Option<String>
The ID of the virtual interface.
sourcepub fn virtual_interface_region(self, input: impl Into<String>) -> Self
pub fn virtual_interface_region(self, input: impl Into<String>) -> Self
The Amazon Web Services Region where the virtual interface is located.
sourcepub fn set_virtual_interface_region(self, input: Option<String>) -> Self
pub fn set_virtual_interface_region(self, input: Option<String>) -> Self
The Amazon Web Services Region where the virtual interface is located.
sourcepub fn get_virtual_interface_region(&self) -> &Option<String>
pub fn get_virtual_interface_region(&self) -> &Option<String>
The Amazon Web Services Region where the virtual interface is located.
sourcepub fn virtual_interface_owner_account(self, input: impl Into<String>) -> Self
pub fn virtual_interface_owner_account(self, input: impl Into<String>) -> Self
The ID of the Amazon Web Services account that owns the virtual interface.
sourcepub fn set_virtual_interface_owner_account(self, input: Option<String>) -> Self
pub fn set_virtual_interface_owner_account(self, input: Option<String>) -> Self
The ID of the Amazon Web Services account that owns the virtual interface.
sourcepub fn get_virtual_interface_owner_account(&self) -> &Option<String>
pub fn get_virtual_interface_owner_account(&self) -> &Option<String>
The ID of the Amazon Web Services account that owns the virtual interface.
sourcepub fn attachment_state(
self,
input: DirectConnectGatewayAttachmentState
) -> Self
pub fn attachment_state( self, input: DirectConnectGatewayAttachmentState ) -> Self
The state of the attachment. The following are the possible values:
-
attaching: The initial state after a virtual interface is created using the Direct Connect gateway. -
attached: The Direct Connect gateway and virtual interface are attached and ready to pass traffic. -
detaching: The initial state after callingDeleteVirtualInterface. -
detached: The virtual interface is detached from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual interface is stopped.
sourcepub fn set_attachment_state(
self,
input: Option<DirectConnectGatewayAttachmentState>
) -> Self
pub fn set_attachment_state( self, input: Option<DirectConnectGatewayAttachmentState> ) -> Self
The state of the attachment. The following are the possible values:
-
attaching: The initial state after a virtual interface is created using the Direct Connect gateway. -
attached: The Direct Connect gateway and virtual interface are attached and ready to pass traffic. -
detaching: The initial state after callingDeleteVirtualInterface. -
detached: The virtual interface is detached from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual interface is stopped.
sourcepub fn get_attachment_state(
&self
) -> &Option<DirectConnectGatewayAttachmentState>
pub fn get_attachment_state( &self ) -> &Option<DirectConnectGatewayAttachmentState>
The state of the attachment. The following are the possible values:
-
attaching: The initial state after a virtual interface is created using the Direct Connect gateway. -
attached: The Direct Connect gateway and virtual interface are attached and ready to pass traffic. -
detaching: The initial state after callingDeleteVirtualInterface. -
detached: The virtual interface is detached from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual interface is stopped.
sourcepub fn attachment_type(self, input: DirectConnectGatewayAttachmentType) -> Self
pub fn attachment_type(self, input: DirectConnectGatewayAttachmentType) -> Self
The type of attachment.
sourcepub fn set_attachment_type(
self,
input: Option<DirectConnectGatewayAttachmentType>
) -> Self
pub fn set_attachment_type( self, input: Option<DirectConnectGatewayAttachmentType> ) -> Self
The type of attachment.
sourcepub fn get_attachment_type(&self) -> &Option<DirectConnectGatewayAttachmentType>
pub fn get_attachment_type(&self) -> &Option<DirectConnectGatewayAttachmentType>
The type of attachment.
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 build(self) -> DirectConnectGatewayAttachment
pub fn build(self) -> DirectConnectGatewayAttachment
Consumes the builder and constructs a DirectConnectGatewayAttachment.
Trait Implementations§
source§impl Clone for DirectConnectGatewayAttachmentBuilder
impl Clone for DirectConnectGatewayAttachmentBuilder
source§fn clone(&self) -> DirectConnectGatewayAttachmentBuilder
fn clone(&self) -> DirectConnectGatewayAttachmentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for DirectConnectGatewayAttachmentBuilder
impl Default for DirectConnectGatewayAttachmentBuilder
source§fn default() -> DirectConnectGatewayAttachmentBuilder
fn default() -> DirectConnectGatewayAttachmentBuilder
source§impl PartialEq for DirectConnectGatewayAttachmentBuilder
impl PartialEq for DirectConnectGatewayAttachmentBuilder
source§fn eq(&self, other: &DirectConnectGatewayAttachmentBuilder) -> bool
fn eq(&self, other: &DirectConnectGatewayAttachmentBuilder) -> bool
self and other values to be equal, and is used
by ==.